implement HTMLDataElement#value

This commit is contained in:
Ofek 2016-08-25 02:48:04 +03:00
parent 5b46a59194
commit cc23f9a87a
6 changed files with 82 additions and 136 deletions

View file

@ -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");
}