| 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 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 interface Element : Node { | 28 interface Element : Node { |
| 29 readonly attribute DOMString? namespaceURI; | 29 readonly attribute DOMString? namespaceURI; |
| 30 readonly attribute DOMString? prefix; | 30 readonly attribute DOMString? prefix; |
| 31 readonly attribute DOMString localName; | 31 readonly attribute DOMString localName; |
| 32 readonly attribute DOMString tagName; | 32 readonly attribute DOMString tagName; |
| 33 | 33 |
| 34 [CEReactions, Reflect] attribute DOMString id; | 34 [CEReactions, Reflect] attribute DOMString id; |
| 35 [CEReactions, Reflect=class] attribute DOMString className; | 35 [CEReactions, Reflect=class] attribute DOMString className; |
| 36 [SameObject, CEReactions, PerWorldBindings, PutForwards=value] readonly attr
ibute DOMTokenList classList; | 36 [SameObject, CEReactions, PerWorldBindings, PutForwards=value] readonly attr
ibute DOMTokenList classList; |
| 37 [Unscopable, CEReactions, Reflect] attribute DOMString slot; |
| 37 | 38 |
| 38 // PointerEvent | 39 // PointerEvent |
| 39 //https://www.w3.org/TR/pointerevents/#extensions-to-the-element-interface | 40 //https://www.w3.org/TR/pointerevents/#extensions-to-the-element-interface |
| 40 [RuntimeEnabled=PointerEvent, RaisesException] void setPointerCapture (long
pointerId); | 41 [RuntimeEnabled=PointerEvent, RaisesException] void setPointerCapture (long
pointerId); |
| 41 [RuntimeEnabled=PointerEvent, RaisesException] void releasePointerCapture (l
ong pointerId); | 42 [RuntimeEnabled=PointerEvent, RaisesException] void releasePointerCapture (l
ong pointerId); |
| 42 [RuntimeEnabled=PointerEvent] attribute EventHandler ongotpointercapture; | 43 [RuntimeEnabled=PointerEvent] attribute EventHandler ongotpointercapture; |
| 43 [RuntimeEnabled=PointerEvent] attribute EventHandler onlostpointercapture; | 44 [RuntimeEnabled=PointerEvent] attribute EventHandler onlostpointercapture; |
| 44 | 45 |
| 45 // PointerEvent v2 | 46 // PointerEvent v2 |
| 46 // https://w3c.github.io/pointerevents/#extensions-to-the-element-interface | 47 // https://w3c.github.io/pointerevents/#extensions-to-the-element-interface |
| (...skipping 13 matching lines...) Expand all Loading... |
| 60 Attr? getAttributeNode(DOMString name); | 61 Attr? getAttributeNode(DOMString name); |
| 61 Attr? getAttributeNodeNS(DOMString? namespaceURI, DOMString localName); | 62 Attr? getAttributeNodeNS(DOMString? namespaceURI, DOMString localName); |
| 62 [RaisesException, CEReactions, CustomElementCallbacks] Attr? setAttributeNod
e(Attr attr); | 63 [RaisesException, CEReactions, CustomElementCallbacks] Attr? setAttributeNod
e(Attr attr); |
| 63 [RaisesException, CEReactions, CustomElementCallbacks] Attr? setAttributeNod
eNS(Attr attr); | 64 [RaisesException, CEReactions, CustomElementCallbacks] Attr? setAttributeNod
eNS(Attr attr); |
| 64 [RaisesException, CEReactions, CustomElementCallbacks] Attr removeAttributeN
ode(Attr attr); | 65 [RaisesException, CEReactions, CustomElementCallbacks] Attr removeAttributeN
ode(Attr attr); |
| 65 | 66 |
| 66 [RaisesException] Element? closest(DOMString selectors); | 67 [RaisesException] Element? closest(DOMString selectors); |
| 67 [RaisesException] boolean matches(DOMString selectors); | 68 [RaisesException] boolean matches(DOMString selectors); |
| 68 [RaisesException, ImplementedAs=matches, MeasureAs=ElementPrefixedMatchesSel
ector] boolean webkitMatchesSelector(DOMString selectors); // historical alias o
f .matches | 69 [RaisesException, ImplementedAs=matches, MeasureAs=ElementPrefixedMatchesSel
ector] boolean webkitMatchesSelector(DOMString selectors); // historical alias o
f .matches |
| 69 | 70 |
| 71 [RaisesException, CallWith=ScriptState, MeasureAs=ElementAttachShadow] Shado
wRoot attachShadow(ShadowRootInit shadowRootInitDict); |
| 72 [PerWorldBindings, ImplementedAs=openShadowRoot] readonly attribute ShadowRo
ot? shadowRoot; |
| 73 |
| 70 HTMLCollection getElementsByTagName(DOMString localName); | 74 HTMLCollection getElementsByTagName(DOMString localName); |
| 71 HTMLCollection getElementsByTagNameNS(DOMString? namespaceURI, DOMString loc
alName); | 75 HTMLCollection getElementsByTagNameNS(DOMString? namespaceURI, DOMString loc
alName); |
| 72 HTMLCollection getElementsByClassName(DOMString classNames); | 76 HTMLCollection getElementsByClassName(DOMString classNames); |
| 73 | 77 |
| 74 [RaisesException, CEReactions, CustomElementCallbacks] Element? insertAdjace
ntElement(DOMString where, Element element); | 78 [RaisesException, CEReactions, CustomElementCallbacks] Element? insertAdjace
ntElement(DOMString where, Element element); |
| 75 [RaisesException] void insertAdjacentText(DOMString where, DOMString data); | 79 [RaisesException] void insertAdjacentText(DOMString where, DOMString data); |
| 76 | 80 |
| 81 // Mixin Slotable |
| 82 // https://dom.spec.whatwg.org/#mixin-slotable |
| 83 [ImplementedAs=assignedSlotForBinding] readonly attribute HTMLSlotElement? a
ssignedSlot; |
| 84 |
| 77 // DOM Parsing and Serialization | 85 // DOM Parsing and Serialization |
| 78 // https://dvcs.w3.org/hg/innerhtml/raw-file/tip/index.html#extensions-to-th
e-element-interface | 86 // https://dvcs.w3.org/hg/innerhtml/raw-file/tip/index.html#extensions-to-th
e-element-interface |
| 79 [TreatNullAs=NullString, CEReactions, CustomElementCallbacks, RaisesExceptio
n=Setter] attribute DOMString innerHTML; | 87 [TreatNullAs=NullString, CEReactions, CustomElementCallbacks, RaisesExceptio
n=Setter] attribute DOMString innerHTML; |
| 80 [TreatNullAs=NullString, CEReactions, CustomElementCallbacks, RaisesExceptio
n=Setter] attribute DOMString outerHTML; | 88 [TreatNullAs=NullString, CEReactions, CustomElementCallbacks, RaisesExceptio
n=Setter] attribute DOMString outerHTML; |
| 81 [CEReactions, CustomElementCallbacks, RaisesException] void insertAdjacentHT
ML(DOMString position, DOMString text); | 89 [CEReactions, CustomElementCallbacks, RaisesException] void insertAdjacentHT
ML(DOMString position, DOMString text); |
| 82 | 90 |
| 83 // Shadow DOM | |
| 84 // https://w3c.github.io/webcomponents/spec/shadow/#extensions-to-element-in
terface | |
| 85 [RaisesException, CallWith=ScriptState, MeasureAs=ElementCreateShadowRoot] S
hadowRoot createShadowRoot(); | |
| 86 [RaisesException, CallWith=ScriptState, MeasureAs=ElementAttachShadow] Shado
wRoot attachShadow(ShadowRootInit shadowRootInitDict); | |
| 87 NodeList getDestinationInsertionPoints(); | |
| 88 [PerWorldBindings, ImplementedAs=openShadowRoot] readonly attribute ShadowRo
ot? shadowRoot; | |
| 89 [Unscopable, CEReactions, Reflect] attribute DOMString slot; | |
| 90 [ImplementedAs=assignedSlotForBinding] readonly attribute HTMLSlotElement as
signedSlot; | |
| 91 | |
| 92 // Pointer Lock | 91 // Pointer Lock |
| 93 // https://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html#extensions
-to-the-element-interface | 92 // https://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html#extensions
-to-the-element-interface |
| 94 [MeasureAs=ElementRequestPointerLock] void requestPointerLock(); | 93 [MeasureAs=ElementRequestPointerLock] void requestPointerLock(); |
| 95 | 94 |
| 96 // CSSOM View Module | 95 // CSSOM View Module |
| 97 // https://dev.w3.org/csswg/cssom-view/#extension-to-the-element-interface | 96 // https://dev.w3.org/csswg/cssom-view/#extension-to-the-element-interface |
| 98 // FIXME: getClientRect() and getBoundingClientRect() should | 97 // FIXME: getClientRect() and getBoundingClientRect() should |
| 99 // return DOMRectList and DOMRect respectively. | 98 // return DOMRectList and DOMRect respectively. |
| 100 ClientRectList getClientRects(); | 99 ClientRectList getClientRects(); |
| 101 ClientRect getBoundingClientRect(); | 100 ClientRect getBoundingClientRect(); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 115 readonly attribute long clientLeft; | 114 readonly attribute long clientLeft; |
| 116 readonly attribute long clientWidth; | 115 readonly attribute long clientWidth; |
| 117 readonly attribute long clientHeight; | 116 readonly attribute long clientHeight; |
| 118 | 117 |
| 119 // Scroll Customization API. See crbug.com/410974 for details. | 118 // Scroll Customization API. See crbug.com/410974 for details. |
| 120 [RuntimeEnabled=ScrollCustomization] void setApplyScroll(ScrollStateCallback
scrollStateCallback, NativeScrollBehavior nativeScrollBehavior); | 119 [RuntimeEnabled=ScrollCustomization] void setApplyScroll(ScrollStateCallback
scrollStateCallback, NativeScrollBehavior nativeScrollBehavior); |
| 121 [RuntimeEnabled=ScrollCustomization] void setDistributeScroll(ScrollStateCal
lback scrollStateCallback, NativeScrollBehavior nativeScrollBehavior); | 120 [RuntimeEnabled=ScrollCustomization] void setDistributeScroll(ScrollStateCal
lback scrollStateCallback, NativeScrollBehavior nativeScrollBehavior); |
| 122 | 121 |
| 123 // Non-standard API | 122 // Non-standard API |
| 124 [MeasureAs=ElementScrollIntoViewIfNeeded] void scrollIntoViewIfNeeded(option
al boolean centerIfNeeded); | 123 [MeasureAs=ElementScrollIntoViewIfNeeded] void scrollIntoViewIfNeeded(option
al boolean centerIfNeeded); |
| 124 [RaisesException, CallWith=ScriptState, MeasureAs=ElementCreateShadowRoot] S
hadowRoot createShadowRoot(); |
| 125 NodeList getDestinationInsertionPoints(); |
| 125 | 126 |
| 126 // Experimental accessibility API | 127 // Experimental accessibility API |
| 127 [RuntimeEnabled=ComputedAccessibilityInfo] readonly attribute DOMString? com
putedRole; | 128 [RuntimeEnabled=ComputedAccessibilityInfo] readonly attribute DOMString? com
putedRole; |
| 128 [RuntimeEnabled=ComputedAccessibilityInfo] readonly attribute DOMString? com
putedName; | 129 [RuntimeEnabled=ComputedAccessibilityInfo] readonly attribute DOMString? com
putedName; |
| 129 | 130 |
| 130 // Event handler attributes | 131 // Event handler attributes |
| 131 attribute EventHandler onbeforecopy; | 132 attribute EventHandler onbeforecopy; |
| 132 attribute EventHandler onbeforecut; | 133 attribute EventHandler onbeforecut; |
| 133 attribute EventHandler onbeforepaste; | 134 attribute EventHandler onbeforepaste; |
| 134 attribute EventHandler oncopy; | 135 attribute EventHandler oncopy; |
| 135 attribute EventHandler oncut; | 136 attribute EventHandler oncut; |
| 136 attribute EventHandler onpaste; | 137 attribute EventHandler onpaste; |
| 137 attribute EventHandler onsearch; | 138 attribute EventHandler onsearch; |
| 138 attribute EventHandler onselectstart; | 139 attribute EventHandler onselectstart; |
| 139 attribute EventHandler onwheel; | 140 attribute EventHandler onwheel; |
| 140 }; | 141 }; |
| 141 | 142 |
| 142 Element implements ParentNode; | 143 Element implements ParentNode; |
| 143 Element implements ChildNode; | 144 Element implements ChildNode; |
| 144 Element implements NonDocumentTypeChildNode; | 145 Element implements NonDocumentTypeChildNode; |
| OLD | NEW |