DescriptionMake it clear a DocumentNameCollection can only contain HTMLElements
Make it clear a DocumentNameCollection can only contain HTMLElements.
Only pass HTMLElements to DocumentNameCollection::elementMatches() as
DocumentNameCollection can only contain HTMLElements.
DocumentNameCollection was being handled in HTMLCollection::elementMatches() as
matching any time of Elements, which was inaccurate. Its handling is now moved
to isMatchingHTMLElement(), with other collections matching only HTMLElements.
DocumentNameCollection::item() also now returns an HTMLElement instead of an
Element.
R=adamk@chromium.org
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=180653
Patch Set 1 #Patch Set 2 : Clean up #
Messages
Total messages: 7 (0 generated)
|