mirror of
https://github.com/servo/servo.git
synced 2025-08-08 23:15:33 +01:00
Implement value for DOMTokenList
This commit is contained in:
parent
39502d6bed
commit
b29b2d6d73
7 changed files with 44 additions and 15 deletions
|
@ -129,6 +129,16 @@ impl DOMTokenListMethods for DOMTokenList {
|
|||
}
|
||||
}
|
||||
|
||||
// https://dom.spec.whatwg.org/#dom-domtokenlist-value
|
||||
fn Value(&self) -> DOMString {
|
||||
self.element.get_string_attribute(&self.local_name)
|
||||
}
|
||||
|
||||
// https://dom.spec.whatwg.org/#dom-domtokenlist-value
|
||||
fn SetValue(&self, value: DOMString) {
|
||||
self.element.set_tokenlist_attribute(&self.local_name, value);
|
||||
}
|
||||
|
||||
// https://dom.spec.whatwg.org/#concept-dtl-serialize
|
||||
fn Stringifier(&self) -> DOMString {
|
||||
self.element.get_string_attribute(&self.local_name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue