mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
auto merge of #3901 : Ms2ger/servo/title, r=jdm
This commit is contained in:
commit
c9857d49dd
13 changed files with 6 additions and 15103 deletions
|
@ -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> {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue