auto merge of #3901 : Ms2ger/servo/title, r=jdm

This commit is contained in:
bors-servo 2014-11-05 14:33:36 -07:00
commit c9857d49dd
13 changed files with 6 additions and 15103 deletions

View file

@ -21,6 +21,8 @@ use dom::virtualmethods::VirtualMethods;
use servo_util::str::DOMString;
use string_cache::Atom;
#[dom_struct]
pub struct HTMLElement {
element: Element
@ -67,6 +69,9 @@ impl<'a> PrivateHTMLElementHelpers for JSRef<'a, HTMLElement> {
}
impl<'a> HTMLElementMethods for JSRef<'a, HTMLElement> {
make_getter!(Title)
make_setter!(SetTitle, "title")
event_handler!(click, GetOnclick, SetOnclick)
fn GetOnload(self) -> Option<EventHandlerNonNull> {

View file

@ -6,7 +6,7 @@
// http://www.whatwg.org/html/#htmlelement
interface HTMLElement : Element {
// metadata attributes
// attribute DOMString title;
attribute DOMString title;
// attribute DOMString lang;
// attribute boolean translate;
// attribute DOMString dir;