mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
commit
ef81fb13e7
2 changed files with 4 additions and 5 deletions
|
@ -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 {
|
||||
|
|
|
@ -8,7 +8,3 @@
|
|||
|
||||
[getElementsByTagName(\'*\')]
|
||||
expected: FAIL
|
||||
|
||||
[Matching the context object]
|
||||
expected: FAIL
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue