diff options
author | Ofek <ofek@outlook.com> | 2016-08-25 02:48:04 +0300 |
---|---|---|
committer | Ofek <ofek@outlook.com> | 2016-08-25 16:08:09 +0300 |
commit | cc23f9a87aadcd6f14956282cb929e26bba99df7 (patch) | |
tree | b1a8044a0d9ed29a61d20a03480a6905d967654a /components/script/dom/htmldataelement.rs | |
parent | 5b46a591946e4fc72461481ab361970f49d5af6b (diff) | |
download | servo-cc23f9a87aadcd6f14956282cb929e26bba99df7.tar.gz servo-cc23f9a87aadcd6f14956282cb929e26bba99df7.zip |
implement HTMLDataElement#value
Diffstat (limited to 'components/script/dom/htmldataelement.rs')
-rw-r--r-- | components/script/dom/htmldataelement.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/components/script/dom/htmldataelement.rs b/components/script/dom/htmldataelement.rs index f412fd57570..c4bd0bfd173 100644 --- a/components/script/dom/htmldataelement.rs +++ b/components/script/dom/htmldataelement.rs @@ -3,6 +3,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ use dom::bindings::codegen::Bindings::HTMLDataElementBinding; +use dom::bindings::codegen::Bindings::HTMLDataElementBinding::HTMLDataElementMethods; use dom::bindings::js::Root; use dom::bindings::str::DOMString; use dom::document::Document; @@ -33,3 +34,11 @@ impl HTMLDataElement { HTMLDataElementBinding::Wrap) } } + +impl HTMLDataElementMethods for HTMLDataElement { + // https://html.spec.whatwg.org/multipage/#dom-data-value + make_getter!(Value, "value"); + + // https://html.spec.whatwg.org/multipage/#dom-data-value + make_setter!(SetValue, "value"); +} |