mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Implement HTMLElement#lang.
This commit is contained in:
parent
44fa9f9b18
commit
bb9cad938b
12 changed files with 4 additions and 15100 deletions
|
@ -72,6 +72,9 @@ impl<'a> HTMLElementMethods for JSRef<'a, HTMLElement> {
|
|||
make_getter!(Title)
|
||||
make_setter!(SetTitle, "title")
|
||||
|
||||
make_getter!(Lang)
|
||||
make_setter!(SetLang, "lang")
|
||||
|
||||
event_handler!(click, GetOnclick, SetOnclick)
|
||||
|
||||
fn GetOnload(self) -> Option<EventHandlerNonNull> {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
interface HTMLElement : Element {
|
||||
// metadata attributes
|
||||
attribute DOMString title;
|
||||
// attribute DOMString lang;
|
||||
attribute DOMString lang;
|
||||
// attribute boolean translate;
|
||||
// attribute DOMString dir;
|
||||
//readonly attribute DOMStringMap dataset;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue