Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

replace __isIdDeclaration__ with Attr.isId

#148

ok this is not a really major problem, but...

in dom/domimplementation.js we have the function:

function __isIdDeclaration__(attributeName) {
  // test if attributeName is 'id' (case insensitive)                           
  return attributeName?(attributeName.toLowerCase() == 'id'):false;
}

ala DOM Core Level 3:

getElementById introduced in DOM Level 2

Returns the Element that has an ID attribute with the given value. If no such element exists, this returns null. If more than one element has an ID attribute with that value, what is returned is undefined. 

The DOM implementation is expected to use the attribute Attr.isId to determine if an attribute is of type ID.

Note: Attributes with the name "ID" or "id" are not of type ID unless so defined.

So seems like we can move the custom function into dom/attr.js itself.

yeah it's minor cleanup task

Reported by nickg · April 7th, 2010 @ 04:58 PM

State: new
Milestone: none
Assigned to: nobody

Activity

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.