| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> | 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 // https://dom.spec.whatwg.org/#interface-element | 21 // https://dom.spec.whatwg.org/#interface-element |
| 22 | 22 |
| 23 [ | 23 [ |
| 24 TypeChecking=Interface, | 24 TypeChecking=Interface, |
| 25 ] interface Element : Node { | 25 ] interface Element : Node { |
| 26 readonly attribute DOMString? namespaceURI; | 26 readonly attribute DOMString? namespaceURI; |
| 27 readonly attribute DOMString? prefix; | 27 readonly attribute DOMString? prefix; |
| 28 readonly attribute DOMString localName; | 28 readonly attribute DOMString localName; |
| 29 readonly attribute DOMString tagName; | 29 readonly attribute DOMString tagName; |
| 30 | 30 |
| 31 [Reflect, ExposeJSAccessors] attribute DOMString id; | 31 [Reflect] attribute DOMString id; |
| 32 [Reflect=class] attribute DOMString className; | 32 [Reflect=class] attribute DOMString className; |
| 33 [SameObject, PerWorldBindings] readonly attribute DOMTokenList classList; | 33 [SameObject, PerWorldBindings] readonly attribute DOMTokenList classList; |
| 34 | 34 |
| 35 [MeasureAs=HasAttributes] boolean hasAttributes(); | 35 [MeasureAs=HasAttributes] boolean hasAttributes(); |
| 36 [SameObject, PerWorldBindings, ImplementedAs=attributesForBindings] readonly
attribute NamedNodeMap attributes; | 36 [SameObject, PerWorldBindings, ImplementedAs=attributesForBindings] readonly
attribute NamedNodeMap attributes; |
| 37 DOMString? getAttribute(DOMString name); | 37 DOMString? getAttribute(DOMString name); |
| 38 DOMString? getAttributeNS(DOMString? namespaceURI, DOMString localName); | 38 DOMString? getAttributeNS(DOMString? namespaceURI, DOMString localName); |
| 39 [RaisesException, CustomElementCallbacks] void setAttribute(DOMString name,
DOMString value); | 39 [RaisesException, CustomElementCallbacks] void setAttribute(DOMString name,
DOMString value); |
| 40 [RaisesException, CustomElementCallbacks] void setAttributeNS(DOMString? nam
espaceURI, DOMString name, DOMString value); | 40 [RaisesException, CustomElementCallbacks] void setAttributeNS(DOMString? nam
espaceURI, DOMString name, DOMString value); |
| 41 [CustomElementCallbacks] void removeAttribute(DOMString name); | 41 [CustomElementCallbacks] void removeAttribute(DOMString name); |
| 42 [CustomElementCallbacks] void removeAttributeNS(DOMString? namespaceURI, DOM
String localName); | 42 [CustomElementCallbacks] void removeAttributeNS(DOMString? namespaceURI, DOM
String localName); |
| 43 boolean hasAttribute(DOMString name); | 43 boolean hasAttribute(DOMString name); |
| 44 boolean hasAttributeNS(DOMString? namespaceURI, DOMString localName); | 44 boolean hasAttributeNS(DOMString? namespaceURI, DOMString localName); |
| 45 | 45 |
| 46 [MeasureAs=ElementGetAttributeNode] Attr? getAttributeNode(DOMString name); | 46 [MeasureAs=ElementGetAttributeNode] Attr? getAttributeNode(DOMString name); |
| 47 [MeasureAs=ElementGetAttributeNodeNS] Attr? getAttributeNodeNS(DOMString? na
mespaceURI, DOMString localName); | 47 [MeasureAs=ElementGetAttributeNodeNS] Attr? getAttributeNodeNS(DOMString? na
mespaceURI, DOMString localName); |
| 48 [RaisesException, CustomElementCallbacks, MeasureAs=ElementSetAttributeNode]
Attr? setAttributeNode(Attr attr); | 48 [RaisesException, CustomElementCallbacks, MeasureAs=ElementSetAttributeNode]
Attr? setAttributeNode(Attr attr); |
| 49 [RaisesException, CustomElementCallbacks, MeasureAs=ElementSetAttributeNodeN
S] Attr? setAttributeNodeNS(Attr attr); | 49 [RaisesException, CustomElementCallbacks, MeasureAs=ElementSetAttributeNodeN
S] Attr? setAttributeNodeNS(Attr attr); |
| 50 [RaisesException, CustomElementCallbacks, MeasureAs=ElementRemoveAttributeNo
de] Attr removeAttributeNode(Attr attr); | 50 [RaisesException, CustomElementCallbacks, MeasureAs=ElementRemoveAttributeNo
de] Attr removeAttributeNode(Attr attr); |
| 51 | 51 |
| 52 [RaisesException] Element? closest(DOMString selectors); | 52 [RaisesException] Element? closest(DOMString selectors); |
| 53 [RaisesException] boolean matches(DOMString selectors); | 53 [RaisesException] boolean matches(DOMString selectors); |
| 54 | 54 |
| 55 HTMLCollection getElementsByTagName(DOMString localName); | 55 HTMLCollection getElementsByTagName(DOMString localName); |
| 56 HTMLCollection getElementsByTagNameNS(DOMString? namespaceURI, DOMString loc
alName); | 56 HTMLCollection getElementsByTagNameNS(DOMString? namespaceURI, DOMString loc
alName); |
| 57 HTMLCollection getElementsByClassName(DOMString classNames); | 57 HTMLCollection getElementsByClassName(DOMString classNames); |
| 58 | 58 |
| 59 // DOM Parsing and Serialization | 59 // DOM Parsing and Serialization |
| 60 // https://dvcs.w3.org/hg/innerhtml/raw-file/tip/index.html#extensions-to-th
e-element-interface | 60 // https://dvcs.w3.org/hg/innerhtml/raw-file/tip/index.html#extensions-to-th
e-element-interface |
| 61 [TreatNullAs=NullString, CustomElementCallbacks, RaisesException=Setter, Exp
oseJSAccessors] attribute DOMString innerHTML; | 61 [TreatNullAs=NullString, CustomElementCallbacks, RaisesException=Setter] att
ribute DOMString innerHTML; |
| 62 [TreatNullAs=NullString, CustomElementCallbacks, RaisesException=Setter] att
ribute DOMString outerHTML; | 62 [TreatNullAs=NullString, CustomElementCallbacks, RaisesException=Setter] att
ribute DOMString outerHTML; |
| 63 [CustomElementCallbacks, RaisesException, MeasureAs=InsertAdjacentHTML] void
insertAdjacentHTML(DOMString position, DOMString text); | 63 [CustomElementCallbacks, RaisesException, MeasureAs=InsertAdjacentHTML] void
insertAdjacentHTML(DOMString position, DOMString text); |
| 64 | 64 |
| 65 // Shadow DOM | 65 // Shadow DOM |
| 66 // http://w3c.github.io/webcomponents/spec/shadow/#extensions-to-element-int
erface | 66 // http://w3c.github.io/webcomponents/spec/shadow/#extensions-to-element-int
erface |
| 67 [RaisesException, CallWith=ScriptState, MeasureAs=ElementCreateShadowRoot] S
hadowRoot createShadowRoot(); | 67 [RaisesException, CallWith=ScriptState, MeasureAs=ElementCreateShadowRoot] S
hadowRoot createShadowRoot(); |
| 68 [RuntimeEnabled=CreateShadowRootWithParameter, RaisesException, CallWith=Scr
iptState, MeasureAs=ElementCreateShadowRoot] ShadowRoot createShadowRoot(ShadowR
ootInit shadowRootInitDict); | 68 [RuntimeEnabled=CreateShadowRootWithParameter, RaisesException, CallWith=Scr
iptState, MeasureAs=ElementCreateShadowRoot] ShadowRoot createShadowRoot(ShadowR
ootInit shadowRootInitDict); |
| 69 NodeList getDestinationInsertionPoints(); | 69 NodeList getDestinationInsertionPoints(); |
| 70 [PerWorldBindings] readonly attribute ShadowRoot? shadowRoot; | 70 [PerWorldBindings] readonly attribute ShadowRoot? shadowRoot; |
| 71 | 71 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel; | 126 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel; |
| 127 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; | 127 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; |
| 128 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; | 128 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; |
| 129 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; | 129 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; |
| 130 attribute EventHandler onwheel; | 130 attribute EventHandler onwheel; |
| 131 }; | 131 }; |
| 132 | 132 |
| 133 Element implements ParentNode; | 133 Element implements ParentNode; |
| 134 Element implements ChildNode; | 134 Element implements ChildNode; |
| 135 Element implements NonDocumentTypeChildNode; | 135 Element implements NonDocumentTypeChildNode; |
| OLD | NEW |