Implement trivial stringifiers

This commit is contained in:
Anthony Ramine 2015-04-29 17:56:37 +02:00
parent 2a2e8b176d
commit 3b82cba011
6 changed files with 12 additions and 35 deletions

View file

@ -159,4 +159,9 @@ impl<'a> DOMTokenListMethods for JSRef<'a, DOMTokenList> {
}
}
}
// https://dom.spec.whatwg.org/#stringification-behavior
fn Stringifier(self) -> DOMString {
self.element.root().r().get_string_attribute(&self.local_name)
}
}