Implement HTMLElement#lang.

This commit is contained in:
Ms2ger 2014-11-06 15:19:26 +01:00
parent 44fa9f9b18
commit bb9cad938b
12 changed files with 4 additions and 15100 deletions

View file

@ -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> {

View file

@ -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;