[Webkit-unassigned] [Bug 110612] Enumerating an HTMLCollection needs to enumerate the named properties

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Mar 4 16:34:09 PST 2013


https://bugs.webkit.org/show_bug.cgi?id=110612





--- Comment #17 from Arko Saha <arko at motorola.com>  2013-03-04 16:36:32 PST ---
(In reply to comment #15)

> We don't want to hard-code interface names in an ad-hoc manner. Can't you use CodeGenerator::InheritsInterface($interface, "HTMLCollection")?
> 

Done.

> > Source/WebCore/bindings/scripts/CodeGeneratorV8.pm:2626
> > +    if ($interfaceName =~ /^HTML\w*Collection$/) {
> 
> Ditto.

Done.

> > Source/WebCore/html/HTMLCollection.cpp:734
> > +    for (NodeCacheMap::iterator it = m_nameCache.begin(); it != m_nameCache.end(); ++it)
> > +        propertyNameStrings.append(it->key);
> > +    for (NodeCacheMap::iterator it = m_idCache.begin(); it != m_idCache.end(); ++it)
> > +        propertyNameStrings.append(it->key);
> 
> Just to confirm: This order does not matter, right? i.e. The spec does not specify the order of enumeration, right?

Yes you are right, the spec doesn't specify the order of enumeration.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list