mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
implement HTMLDataElement#value
This commit is contained in:
parent
5b46a59194
commit
cc23f9a87a
6 changed files with 82 additions and 136 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue