diff options
author | Bogdan Cuza <bogdan.cuza@hotmail.com> | 2015-07-21 18:53:01 +0300 |
---|---|---|
committer | Bogdan <boghison22@gmail.com> | 2015-07-28 13:28:41 +0200 |
commit | 233a769c67738942a0ac47c15465e36891883c3b (patch) | |
tree | f271b64c29addb4826feb098a03a0c6ce07eb4b3 /components/script/dom/domstringmap.rs | |
parent | f039827dcd618d1731f9cc0d91202690c28f10d1 (diff) | |
download | servo-233a769c67738942a0ac47c15465e36891883c3b.tar.gz servo-233a769c67738942a0ac47c15465e36891883c3b.zip |
Add spec links
Diffstat (limited to 'components/script/dom/domstringmap.rs')
-rw-r--r-- | components/script/dom/domstringmap.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/script/dom/domstringmap.rs b/components/script/dom/domstringmap.rs index 625d261b686..254bdccaf5e 100644 --- a/components/script/dom/domstringmap.rs +++ b/components/script/dom/domstringmap.rs @@ -35,20 +35,24 @@ impl DOMStringMap { // https://html.spec.whatwg.org/#domstringmap impl<'a> DOMStringMapMethods for &'a DOMStringMap { + // https://html.spec.whatwg.org/multipage/#dom-domstringmap-additem fn NamedCreator(self, name: DOMString, value: DOMString) -> ErrorResult { self.NamedSetter(name, value) } + // https://html.spec.whatwg.org/multipage/#dom-domstringmap-removeitem fn NamedDeleter(self, name: DOMString) { let element = self.element.root(); element.r().delete_custom_attr(name) } + // https://html.spec.whatwg.org/multipage/#dom-domstringmap-setitem fn NamedSetter(self, name: DOMString, value: DOMString) -> ErrorResult { let element = self.element.root(); element.r().set_custom_attr(name, value) } + // https://html.spec.whatwg.org/multipage/#dom-domstringmap-nameditem fn NamedGetter(self, name: DOMString, found: &mut bool) -> DOMString { let element = self.element.root(); match element.r().get_custom_attr(name) { |