auto merge of #4304 : ema-fox/servo/bytag, r=Ms2ger

Fixes #4249
This commit is contained in:
bors-servo 2014-12-09 06:33:59 -07:00
commit ef81fb13e7
2 changed files with 4 additions and 5 deletions

View file

@ -85,7 +85,10 @@ impl HTMLCollection {
ascii_lower_tag: Atom,
}
impl CollectionFilter for TagNameFilter {
fn filter(&self, elem: JSRef<Element>, _root: JSRef<Node>) -> bool {
fn filter(&self, elem: JSRef<Element>, root: JSRef<Node>) -> bool {
if NodeCast::from_ref(elem) == root {
return false
}
if elem.html_element_in_html_document() {
*elem.local_name() == self.ascii_lower_tag
} else {

View file

@ -8,7 +8,3 @@
[getElementsByTagName(\'*\')]
expected: FAIL
[Matching the context object]
expected: FAIL