mirror of
https://github.com/servo/servo.git
synced 2025-06-28 11:03:39 +01:00
Implemented {Document,Element}.getElementsByTagName
This commit is contained in:
parent
c768097adc
commit
d22dbb53ca
4 changed files with 11 additions and 6 deletions
|
@ -46,6 +46,10 @@ impl HTMLCollection {
|
|||
}
|
||||
HTMLCollection::new(window, elements)
|
||||
}
|
||||
|
||||
pub fn by_tag_name(window: &JS<Window>, root: &JS<Node>, tag_name: DOMString) -> JS<HTMLCollection> {
|
||||
HTMLCollection::create(window, root, |elem| elem.get().tag_name == tag_name)
|
||||
}
|
||||
}
|
||||
|
||||
impl HTMLCollection {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue