mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Implement DOMTokenList.supports API
This commit is contained in:
parent
3f7697690a
commit
2a4dd894de
20 changed files with 147 additions and 72 deletions
|
@ -1953,7 +1953,7 @@ impl ElementMethods for Element {
|
|||
// https://dom.spec.whatwg.org/#dom-element-classlist
|
||||
fn ClassList(&self) -> DomRoot<DOMTokenList> {
|
||||
self.class_list
|
||||
.or_init(|| DOMTokenList::new(self, &local_name!("class")))
|
||||
.or_init(|| DOMTokenList::new(self, &local_name!("class"), None))
|
||||
}
|
||||
|
||||
// https://dom.spec.whatwg.org/#dom-element-attributes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue