| 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 17 matching lines...) Expand all Loading... |
| 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 | 37 |
| 38 // PointerEvent (http://www.w3.org/TR/pointerevents/#extensions-to-the-eleme
nt-interface) | 38 // PointerEvent |
| 39 //https://www.w3.org/TR/pointerevents/#extensions-to-the-element-interface |
| 39 [RuntimeEnabled=PointerEvent, RaisesException] void setPointerCapture (long
pointerId); | 40 [RuntimeEnabled=PointerEvent, RaisesException] void setPointerCapture (long
pointerId); |
| 40 [RuntimeEnabled=PointerEvent, RaisesException] void releasePointerCapture (l
ong pointerId); | 41 [RuntimeEnabled=PointerEvent, RaisesException] void releasePointerCapture (l
ong pointerId); |
| 41 [RuntimeEnabled=PointerEvent] attribute EventHandler ongotpointercapture; | 42 [RuntimeEnabled=PointerEvent] attribute EventHandler ongotpointercapture; |
| 42 [RuntimeEnabled=PointerEvent] attribute EventHandler onlostpointercapture; | 43 [RuntimeEnabled=PointerEvent] attribute EventHandler onlostpointercapture; |
| 43 | 44 |
| 44 // PointerEvent v2 (https://w3c.github.io/pointerevents/#extensions-to-the-e
lement-interface) | 45 // PointerEvent v2 |
| 46 // https://w3c.github.io/pointerevents/#extensions-to-the-element-interface |
| 45 [RuntimeEnabled=PointerEvent] boolean hasPointerCapture (long pointerId); | 47 [RuntimeEnabled=PointerEvent] boolean hasPointerCapture (long pointerId); |
| 46 | 48 |
| 47 boolean hasAttributes(); | 49 boolean hasAttributes(); |
| 48 [SameObject, PerWorldBindings, ImplementedAs=attributesForBindings] readonly
attribute NamedNodeMap attributes; | 50 [SameObject, PerWorldBindings, ImplementedAs=attributesForBindings] readonly
attribute NamedNodeMap attributes; |
| 49 DOMString? getAttribute(DOMString name); | 51 DOMString? getAttribute(DOMString name); |
| 50 DOMString? getAttributeNS(DOMString? namespaceURI, DOMString localName); | 52 DOMString? getAttributeNS(DOMString? namespaceURI, DOMString localName); |
| 51 [RaisesException, CEReactions, CustomElementCallbacks] void setAttribute(DOM
String name, DOMString value); | 53 [RaisesException, CEReactions, CustomElementCallbacks] void setAttribute(DOM
String name, DOMString value); |
| 52 [RaisesException, CEReactions, CustomElementCallbacks] void setAttributeNS(D
OMString? namespaceURI, DOMString name, DOMString value); | 54 [RaisesException, CEReactions, CustomElementCallbacks] void setAttributeNS(D
OMString? namespaceURI, DOMString name, DOMString value); |
| 53 [CEReactions, CustomElementCallbacks] void removeAttribute(DOMString name); | 55 [CEReactions, CustomElementCallbacks] void removeAttribute(DOMString name); |
| 54 [CEReactions, CustomElementCallbacks] void removeAttributeNS(DOMString? name
spaceURI, DOMString localName); | 56 [CEReactions, CustomElementCallbacks] void removeAttributeNS(DOMString? name
spaceURI, DOMString localName); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 72 [RaisesException, CEReactions, CustomElementCallbacks] Element? insertAdjace
ntElement(DOMString where, Element element); | 74 [RaisesException, CEReactions, CustomElementCallbacks] Element? insertAdjace
ntElement(DOMString where, Element element); |
| 73 [RaisesException] void insertAdjacentText(DOMString where, DOMString data); | 75 [RaisesException] void insertAdjacentText(DOMString where, DOMString data); |
| 74 | 76 |
| 75 // DOM Parsing and Serialization | 77 // DOM Parsing and Serialization |
| 76 // https://dvcs.w3.org/hg/innerhtml/raw-file/tip/index.html#extensions-to-th
e-element-interface | 78 // https://dvcs.w3.org/hg/innerhtml/raw-file/tip/index.html#extensions-to-th
e-element-interface |
| 77 [TreatNullAs=NullString, CEReactions, CustomElementCallbacks, RaisesExceptio
n=Setter] attribute DOMString innerHTML; | 79 [TreatNullAs=NullString, CEReactions, CustomElementCallbacks, RaisesExceptio
n=Setter] attribute DOMString innerHTML; |
| 78 [TreatNullAs=NullString, CEReactions, CustomElementCallbacks, RaisesExceptio
n=Setter] attribute DOMString outerHTML; | 80 [TreatNullAs=NullString, CEReactions, CustomElementCallbacks, RaisesExceptio
n=Setter] attribute DOMString outerHTML; |
| 79 [CEReactions, CustomElementCallbacks, RaisesException] void insertAdjacentHT
ML(DOMString position, DOMString text); | 81 [CEReactions, CustomElementCallbacks, RaisesException] void insertAdjacentHT
ML(DOMString position, DOMString text); |
| 80 | 82 |
| 81 // Shadow DOM | 83 // Shadow DOM |
| 82 // http://w3c.github.io/webcomponents/spec/shadow/#extensions-to-element-int
erface | 84 // https://w3c.github.io/webcomponents/spec/shadow/#extensions-to-element-in
terface |
| 83 [RaisesException, CallWith=ScriptState, MeasureAs=ElementCreateShadowRoot] S
hadowRoot createShadowRoot(); | 85 [RaisesException, CallWith=ScriptState, MeasureAs=ElementCreateShadowRoot] S
hadowRoot createShadowRoot(); |
| 84 [RaisesException, CallWith=ScriptState, MeasureAs=ElementAttachShadow] Shado
wRoot attachShadow(ShadowRootInit shadowRootInitDict); | 86 [RaisesException, CallWith=ScriptState, MeasureAs=ElementAttachShadow] Shado
wRoot attachShadow(ShadowRootInit shadowRootInitDict); |
| 85 NodeList getDestinationInsertionPoints(); | 87 NodeList getDestinationInsertionPoints(); |
| 86 [PerWorldBindings, ImplementedAs=openShadowRoot] readonly attribute ShadowRo
ot? shadowRoot; | 88 [PerWorldBindings, ImplementedAs=openShadowRoot] readonly attribute ShadowRo
ot? shadowRoot; |
| 87 [Unscopable, CEReactions, Reflect] attribute DOMString slot; | 89 [Unscopable, CEReactions, Reflect] attribute DOMString slot; |
| 88 [ImplementedAs=assignedSlotForBinding] readonly attribute HTMLSlotElement as
signedSlot; | 90 [ImplementedAs=assignedSlotForBinding] readonly attribute HTMLSlotElement as
signedSlot; |
| 89 | 91 |
| 90 // Pointer Lock | 92 // Pointer Lock |
| 91 // https://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html#extensions
-to-the-element-interface | 93 // https://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html#extensions
-to-the-element-interface |
| 92 [MeasureAs=ElementRequestPointerLock] void requestPointerLock(); | 94 [MeasureAs=ElementRequestPointerLock] void requestPointerLock(); |
| 93 | 95 |
| 94 // CSSOM View Module | 96 // CSSOM View Module |
| 95 // http://dev.w3.org/csswg/cssom-view/#extension-to-the-element-interface | 97 // https://dev.w3.org/csswg/cssom-view/#extension-to-the-element-interface |
| 96 // FIXME: getClientRect() and getBoundingClientRect() should | 98 // FIXME: getClientRect() and getBoundingClientRect() should |
| 97 // return DOMRectList and DOMRect respectively. | 99 // return DOMRectList and DOMRect respectively. |
| 98 ClientRectList getClientRects(); | 100 ClientRectList getClientRects(); |
| 99 ClientRect getBoundingClientRect(); | 101 ClientRect getBoundingClientRect(); |
| 100 // FIXME: scrollIntoView() should have a ScrollIntoViewOptions dictionary ar
gument. | 102 // FIXME: scrollIntoView() should have a ScrollIntoViewOptions dictionary ar
gument. |
| 101 void scrollIntoView(optional boolean alignWithTop); | 103 void scrollIntoView(optional boolean alignWithTop); |
| 102 [RuntimeEnabled=CSSOMSmoothScroll, ImplementedAs=scrollTo] void scroll(optio
nal ScrollToOptions options); | 104 [RuntimeEnabled=CSSOMSmoothScroll, ImplementedAs=scrollTo] void scroll(optio
nal ScrollToOptions options); |
| 103 [RuntimeEnabled=CSSOMSmoothScroll, ImplementedAs=scrollTo] void scroll(unres
tricted double x, unrestricted double y); | 105 [RuntimeEnabled=CSSOMSmoothScroll, ImplementedAs=scrollTo] void scroll(unres
tricted double x, unrestricted double y); |
| 104 [RuntimeEnabled=CSSOMSmoothScroll] void scrollTo(optional ScrollToOptions op
tions); | 106 [RuntimeEnabled=CSSOMSmoothScroll] void scrollTo(optional ScrollToOptions op
tions); |
| 105 [RuntimeEnabled=CSSOMSmoothScroll] void scrollTo(unrestricted double x, unre
stricted double y); | 107 [RuntimeEnabled=CSSOMSmoothScroll] void scrollTo(unrestricted double x, unre
stricted double y); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 133 attribute EventHandler oncut; | 135 attribute EventHandler oncut; |
| 134 attribute EventHandler onpaste; | 136 attribute EventHandler onpaste; |
| 135 attribute EventHandler onsearch; | 137 attribute EventHandler onsearch; |
| 136 attribute EventHandler onselectstart; | 138 attribute EventHandler onselectstart; |
| 137 attribute EventHandler onwheel; | 139 attribute EventHandler onwheel; |
| 138 }; | 140 }; |
| 139 | 141 |
| 140 Element implements ParentNode; | 142 Element implements ParentNode; |
| 141 Element implements ChildNode; | 143 Element implements ChildNode; |
| 142 Element implements NonDocumentTypeChildNode; | 144 Element implements NonDocumentTypeChildNode; |
| OLD | NEW |