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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 [RaisesException, CustomElementCallbacks] Attr setAttributeNodeNS([Default=U
ndefined, StrictTypeChecking] optional Attr newAttr); | 52 [RaisesException, CustomElementCallbacks] Attr setAttributeNodeNS([Default=U
ndefined, StrictTypeChecking] optional Attr newAttr); |
53 boolean hasAttribute(DOMString name); | 53 boolean hasAttribute(DOMString name); |
54 boolean hasAttributeNS([TreatNullAs=NullString,Default=Undefined] optional D
OMString namespaceURI, | 54 boolean hasAttributeNS([TreatNullAs=NullString,Default=Undefined] optional D
OMString namespaceURI, |
55 [Default=Undefined] optional DOMString localName); | 55 [Default=Undefined] optional DOMString localName); |
56 | 56 |
57 [PerWorldBindings] readonly attribute CSSStyleDeclaration style; | 57 [PerWorldBindings] readonly attribute CSSStyleDeclaration style; |
58 | 58 |
59 // DOM4 | 59 // DOM4 |
60 // iht.com relies on id returning the empty string when no id is present. | 60 // iht.com relies on id returning the empty string when no id is present. |
61 // Other browsers do this as well. So we don't convert null to JS null. | 61 // Other browsers do this as well. So we don't convert null to JS null. |
62 [Reflect, TreatNullAs=NullString, ExposeJSAccessors] attribute DOMString id; | 62 [Reflect, TreatNullAs=NullString] attribute DOMString id; |
63 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr
ing namespaceURI; | 63 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr
ing namespaceURI; |
64 [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, PerWorldBindings, R
aisesException=Setter] attribute DOMString prefix; | 64 [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, PerWorldBindings, R
aisesException=Setter] attribute DOMString prefix; |
65 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr
ing localName; | 65 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr
ing localName; |
66 | 66 |
67 // Common extensions | 67 // Common extensions |
68 | 68 |
69 [PerWorldBindings] readonly attribute long offsetLeft; | 69 [PerWorldBindings] readonly attribute long offsetLeft; |
70 [PerWorldBindings] readonly attribute long offsetTop; | 70 [PerWorldBindings] readonly attribute long offsetTop; |
71 [PerWorldBindings] readonly attribute long offsetWidth; | 71 [PerWorldBindings] readonly attribute long offsetWidth; |
72 [PerWorldBindings] readonly attribute long offsetHeight; | 72 [PerWorldBindings] readonly attribute long offsetHeight; |
(...skipping 12 matching lines...) Expand all Loading... |
85 void scrollIntoView(optional boolean alignWithTop); | 85 void scrollIntoView(optional boolean alignWithTop); |
86 | 86 |
87 // WebKit extensions | 87 // WebKit extensions |
88 | 88 |
89 void scrollIntoViewIfNeeded(optional boolean centerIfNeeded); | 89 void scrollIntoViewIfNeeded(optional boolean centerIfNeeded); |
90 void scrollByLines([Default=Undefined] optional long lines); | 90 void scrollByLines([Default=Undefined] optional long lines); |
91 void scrollByPages([Default=Undefined] optional long pages); | 91 void scrollByPages([Default=Undefined] optional long pages); |
92 | 92 |
93 // HTML 5 | 93 // HTML 5 |
94 NodeList getElementsByClassName([Default=Undefined] optional DOMString name)
; | 94 NodeList getElementsByClassName([Default=Undefined] optional DOMString name)
; |
95 [TreatNullAs=NullString, CustomElementCallbacks, PerWorldBindings, ActivityL
ogging=SetterForIsolatedWorlds, RaisesException=Setter, ExposeJSAccessors] attri
bute DOMString innerHTML; | 95 [TreatNullAs=NullString, CustomElementCallbacks, PerWorldBindings, ActivityL
ogging=SetterForIsolatedWorlds, RaisesException=Setter] attribute DOMString inne
rHTML; |
96 [TreatNullAs=NullString, CustomElementCallbacks, RaisesException=Setter] att
ribute DOMString outerHTML; | 96 [TreatNullAs=NullString, CustomElementCallbacks, RaisesException=Setter] att
ribute DOMString outerHTML; |
97 | 97 |
98 [Reflect=class, TreatNullAs=NullString, PerWorldBindings] attribute DOMStrin
g className; | 98 [Reflect=class, TreatNullAs=NullString, PerWorldBindings] attribute DOMStrin
g className; |
99 [PerWorldBindings] readonly attribute DOMTokenList classList; | 99 [PerWorldBindings] readonly attribute DOMTokenList classList; |
100 | 100 |
101 [PerWorldBindings] readonly attribute DOMStringMap dataset; | 101 [PerWorldBindings] readonly attribute DOMStringMap dataset; |
102 | 102 |
103 // NodeSelector - Selector API | 103 // NodeSelector - Selector API |
104 [RaisesException] Element querySelector(DOMString selectors); | 104 [RaisesException] Element querySelector(DOMString selectors); |
105 [RaisesException] NodeList querySelectorAll(DOMString selectors); | 105 [RaisesException] NodeList querySelectorAll(DOMString selectors); |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; | 148 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; |
149 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; | 149 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; |
150 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; | 150 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; |
151 attribute EventHandler onwebkitfullscreenchange; | 151 attribute EventHandler onwebkitfullscreenchange; |
152 attribute EventHandler onwebkitfullscreenerror; | 152 attribute EventHandler onwebkitfullscreenerror; |
153 [PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] attribute EventH
andler onwheel; | 153 [PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] attribute EventH
andler onwheel; |
154 }; | 154 }; |
155 | 155 |
156 Element implements ParentNode; | 156 Element implements ParentNode; |
157 Element implements ChildNode; | 157 Element implements ChildNode; |
OLD | NEW |