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 21 matching lines...) Expand all Loading... | |
32 readonly attribute DOMString tagName; | 32 readonly attribute DOMString tagName; |
33 | 33 |
34 [Reflect] attribute DOMString id; | 34 [Reflect] attribute DOMString id; |
35 [Reflect=class] attribute DOMString className; | 35 [Reflect=class] attribute DOMString className; |
36 [SameObject, PerWorldBindings, PutForwards=value] readonly attribute DOMToke nList classList; | 36 [SameObject, PerWorldBindings, PutForwards=value] readonly attribute DOMToke nList classList; |
37 | 37 |
38 // PointerEvent (http://www.w3.org/TR/pointerevents/#extensions-to-the-eleme nt-interface) | 38 // PointerEvent (http://www.w3.org/TR/pointerevents/#extensions-to-the-eleme nt-interface) |
39 [RuntimeEnabled=PointerEvent, RaisesException] void setPointerCapture (long pointerId); | 39 [RuntimeEnabled=PointerEvent, RaisesException] void setPointerCapture (long pointerId); |
40 [RuntimeEnabled=PointerEvent, RaisesException] void releasePointerCapture (l ong pointerId); | 40 [RuntimeEnabled=PointerEvent, RaisesException] void releasePointerCapture (l ong pointerId); |
41 | 41 |
42 [MeasureAs=HasAttributes] boolean hasAttributes(); | 42 boolean hasAttributes(); |
43 [SameObject, PerWorldBindings, ImplementedAs=attributesForBindings] readonly attribute NamedNodeMap attributes; | 43 [SameObject, PerWorldBindings, ImplementedAs=attributesForBindings] readonly attribute NamedNodeMap attributes; |
44 DOMString? getAttribute(DOMString name); | 44 DOMString? getAttribute(DOMString name); |
45 DOMString? getAttributeNS(DOMString? namespaceURI, DOMString localName); | 45 DOMString? getAttributeNS(DOMString? namespaceURI, DOMString localName); |
46 [RaisesException, CustomElementCallbacks] void setAttribute(DOMString name, DOMString value); | 46 [RaisesException, CustomElementCallbacks] void setAttribute(DOMString name, DOMString value); |
47 [RaisesException, CustomElementCallbacks] void setAttributeNS(DOMString? nam espaceURI, DOMString name, DOMString value); | 47 [RaisesException, CustomElementCallbacks] void setAttributeNS(DOMString? nam espaceURI, DOMString name, DOMString value); |
48 [CustomElementCallbacks] void removeAttribute(DOMString name); | 48 [CustomElementCallbacks] void removeAttribute(DOMString name); |
49 [CustomElementCallbacks] void removeAttributeNS(DOMString? namespaceURI, DOM String localName); | 49 [CustomElementCallbacks] void removeAttributeNS(DOMString? namespaceURI, DOM String localName); |
50 boolean hasAttribute(DOMString name); | 50 boolean hasAttribute(DOMString name); |
51 boolean hasAttributeNS(DOMString? namespaceURI, DOMString localName); | 51 boolean hasAttributeNS(DOMString? namespaceURI, DOMString localName); |
52 | 52 |
53 [MeasureAs=ElementGetAttributeNode] Attr? getAttributeNode(DOMString name); | 53 Attr? getAttributeNode(DOMString name); |
54 [MeasureAs=ElementGetAttributeNodeNS] Attr? getAttributeNodeNS(DOMString? na mespaceURI, DOMString localName); | 54 Attr? getAttributeNodeNS(DOMString? namespaceURI, DOMString localName); |
55 [RaisesException, CustomElementCallbacks, MeasureAs=ElementSetAttributeNode] Attr? setAttributeNode(Attr attr); | 55 [RaisesException, CustomElementCallbacks] Attr? setAttributeNode(Attr attr); |
56 [RaisesException, CustomElementCallbacks, MeasureAs=ElementSetAttributeNodeN S] Attr? setAttributeNodeNS(Attr attr); | 56 [RaisesException, CustomElementCallbacks] Attr? setAttributeNodeNS(Attr attr ); |
57 [RaisesException, CustomElementCallbacks, MeasureAs=ElementRemoveAttributeNo de] Attr removeAttributeNode(Attr attr); | 57 [RaisesException, CustomElementCallbacks] Attr removeAttributeNode(Attr attr ); |
58 | 58 |
59 [RaisesException] Element? closest(DOMString selectors); | 59 [RaisesException] Element? closest(DOMString selectors); |
60 [RaisesException] boolean matches(DOMString selectors); | 60 [RaisesException] boolean matches(DOMString selectors); |
61 [RaisesException, ImplementedAs=matches] boolean webkitMatchesSelector(DOMSt ring selectors); // historical alias of .matches | |
tkent
2016/03/16 23:57:45
Won't we discuss removing webkitMatchesSelector fr
philipj_slow
2016/03/17 10:41:42
Usage is now about 10%, and has for far roughly ha
| |
61 | 62 |
62 HTMLCollection getElementsByTagName(DOMString localName); | 63 HTMLCollection getElementsByTagName(DOMString localName); |
63 HTMLCollection getElementsByTagNameNS(DOMString? namespaceURI, DOMString loc alName); | 64 HTMLCollection getElementsByTagNameNS(DOMString? namespaceURI, DOMString loc alName); |
64 HTMLCollection getElementsByClassName(DOMString classNames); | 65 HTMLCollection getElementsByClassName(DOMString classNames); |
65 | 66 |
67 [RaisesException, CustomElementCallbacks] Element? insertAdjacentElement(DOM String where, Element element); | |
68 [RaisesException] void insertAdjacentText(DOMString where, DOMString data); | |
69 | |
66 // DOM Parsing and Serialization | 70 // DOM Parsing and Serialization |
67 // https://dvcs.w3.org/hg/innerhtml/raw-file/tip/index.html#extensions-to-th e-element-interface | 71 // https://dvcs.w3.org/hg/innerhtml/raw-file/tip/index.html#extensions-to-th e-element-interface |
68 [TreatNullAs=NullString, CustomElementCallbacks, RaisesException=Setter] att ribute DOMString innerHTML; | 72 [TreatNullAs=NullString, CustomElementCallbacks, RaisesException=Setter] att ribute DOMString innerHTML; |
69 [TreatNullAs=NullString, CustomElementCallbacks, RaisesException=Setter] att ribute DOMString outerHTML; | 73 [TreatNullAs=NullString, CustomElementCallbacks, RaisesException=Setter] att ribute DOMString outerHTML; |
70 [CustomElementCallbacks, RaisesException, MeasureAs=InsertAdjacentHTML] void insertAdjacentHTML(DOMString position, DOMString text); | 74 [CustomElementCallbacks, RaisesException] void insertAdjacentHTML(DOMString position, DOMString text); |
71 | 75 |
72 // Shadow DOM | 76 // Shadow DOM |
73 // http://w3c.github.io/webcomponents/spec/shadow/#extensions-to-element-int erface | 77 // http://w3c.github.io/webcomponents/spec/shadow/#extensions-to-element-int erface |
74 [RaisesException, CallWith=ScriptState, MeasureAs=ElementCreateShadowRoot] S hadowRoot createShadowRoot(); | 78 [RaisesException, CallWith=ScriptState, MeasureAs=ElementCreateShadowRoot] S hadowRoot createShadowRoot(); |
75 [RuntimeEnabled=ShadowDOMV1, RaisesException, CallWith=ScriptState, MeasureA s=ElementAttachShadow] ShadowRoot attachShadow(ShadowRootInit shadowRootInitDict ); | 79 [RuntimeEnabled=ShadowDOMV1, RaisesException, CallWith=ScriptState, MeasureA s=ElementAttachShadow] ShadowRoot attachShadow(ShadowRootInit shadowRootInitDict ); |
76 NodeList getDestinationInsertionPoints(); | 80 NodeList getDestinationInsertionPoints(); |
77 [PerWorldBindings, ImplementedAs=openShadowRoot] readonly attribute ShadowRo ot? shadowRoot; | 81 [PerWorldBindings, ImplementedAs=openShadowRoot] readonly attribute ShadowRo ot? shadowRoot; |
78 [RuntimeEnabled=ShadowDOMV1, Reflect] attribute DOMString slot; | 82 [RuntimeEnabled=ShadowDOMV1, Reflect] attribute DOMString slot; |
79 [RuntimeEnabled=ShadowDOMV1, ImplementedAs=assignedSlotForBinding] readonly attribute HTMLSlotElement assignedSlot; | 83 [RuntimeEnabled=ShadowDOMV1, ImplementedAs=assignedSlotForBinding] readonly attribute HTMLSlotElement assignedSlot; |
80 | 84 |
(...skipping 21 matching lines...) Expand all Loading... | |
102 readonly attribute long scrollHeight; | 106 readonly attribute long scrollHeight; |
103 readonly attribute long clientTop; | 107 readonly attribute long clientTop; |
104 readonly attribute long clientLeft; | 108 readonly attribute long clientLeft; |
105 readonly attribute long clientWidth; | 109 readonly attribute long clientWidth; |
106 readonly attribute long clientHeight; | 110 readonly attribute long clientHeight; |
107 | 111 |
108 // Scroll Customization API. See crbug.com/410974 for details. | 112 // Scroll Customization API. See crbug.com/410974 for details. |
109 [RuntimeEnabled=ScrollCustomization] void setApplyScroll(ScrollStateCallback scrollStateCallback, NativeScrollBehavior nativeScrollBehavior); | 113 [RuntimeEnabled=ScrollCustomization] void setApplyScroll(ScrollStateCallback scrollStateCallback, NativeScrollBehavior nativeScrollBehavior); |
110 [RuntimeEnabled=ScrollCustomization] void setDistributeScroll(ScrollStateCal lback scrollStateCallback, NativeScrollBehavior nativeScrollBehavior); | 114 [RuntimeEnabled=ScrollCustomization] void setDistributeScroll(ScrollStateCal lback scrollStateCallback, NativeScrollBehavior nativeScrollBehavior); |
111 | 115 |
112 // Non-standard APIs | 116 // Non-standard API |
113 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=19962 | |
114 [RaisesException, CustomElementCallbacks, MeasureAs=InsertAdjacentElement] E lement insertAdjacentElement(DOMString where, Element element); | |
115 [RaisesException, MeasureAs=InsertAdjacentText] void insertAdjacentText(DOMS tring where, DOMString text); | |
116 [MeasureAs=ElementScrollIntoViewIfNeeded] void scrollIntoViewIfNeeded(option al boolean centerIfNeeded); | 117 [MeasureAs=ElementScrollIntoViewIfNeeded] void scrollIntoViewIfNeeded(option al boolean centerIfNeeded); |
117 [RaisesException, ImplementedAs=matches, MeasureAs=ElementPrefixedMatchesSel ector] boolean webkitMatchesSelector(DOMString selectors); | |
118 | 118 |
119 // Experimental accessibility API | 119 // Experimental accessibility API |
120 [RuntimeEnabled=ComputedAccessibilityInfo] readonly attribute DOMString? com putedRole; | 120 [RuntimeEnabled=ComputedAccessibilityInfo] readonly attribute DOMString? com putedRole; |
121 [RuntimeEnabled=ComputedAccessibilityInfo] readonly attribute DOMString? com putedName; | 121 [RuntimeEnabled=ComputedAccessibilityInfo] readonly attribute DOMString? com putedName; |
122 | 122 |
123 // Event handler attributes | 123 // Event handler attributes |
124 attribute EventHandler onbeforecopy; | 124 attribute EventHandler onbeforecopy; |
125 attribute EventHandler onbeforecut; | 125 attribute EventHandler onbeforecut; |
126 attribute EventHandler onbeforepaste; | 126 attribute EventHandler onbeforepaste; |
127 attribute EventHandler oncopy; | 127 attribute EventHandler oncopy; |
128 attribute EventHandler oncut; | 128 attribute EventHandler oncut; |
129 attribute EventHandler onpaste; | 129 attribute EventHandler onpaste; |
130 attribute EventHandler onsearch; | 130 attribute EventHandler onsearch; |
131 attribute EventHandler onselectstart; | 131 attribute EventHandler onselectstart; |
132 attribute EventHandler onwheel; | 132 attribute EventHandler onwheel; |
133 | 133 |
134 // Pointerevent attributes (http://www.w3.org/TR/pointerevents/#extensions-t o-the-element-interface) | 134 // Pointerevent attributes (http://www.w3.org/TR/pointerevents/#extensions-t o-the-element-interface) |
135 [RuntimeEnabled=PointerEvent] attribute EventHandler ongotpointercapture; | 135 [RuntimeEnabled=PointerEvent] attribute EventHandler ongotpointercapture; |
136 [RuntimeEnabled=PointerEvent] attribute EventHandler onlostpointercapture; | 136 [RuntimeEnabled=PointerEvent] attribute EventHandler onlostpointercapture; |
137 | 137 |
138 }; | 138 }; |
139 | 139 |
140 Element implements ParentNode; | 140 Element implements ParentNode; |
141 Element implements ChildNode; | 141 Element implements ChildNode; |
142 Element implements NonDocumentTypeChildNode; | 142 Element implements NonDocumentTypeChildNode; |
OLD | NEW |