Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: Source/core/dom/Element.idl

Issue 143453010: Have getElementsByClassName() / getElementsByTagName*() return an HTMLCollection (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/Document.idl ('k') | Source/core/dom/Node.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 14 matching lines...) Expand all
25 // DOM Level 1 Core 25 // DOM Level 1 Core
26 26
27 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr ing tagName; 27 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr ing tagName;
28 28
29 [TreatReturnedNullStringAs=Null] DOMString getAttribute(DOMString name); 29 [TreatReturnedNullStringAs=Null] DOMString getAttribute(DOMString name);
30 [RaisesException, CustomElementCallbacks] void setAttribute(DOMString name, DOMString value); 30 [RaisesException, CustomElementCallbacks] void setAttribute(DOMString name, DOMString value);
31 [CustomElementCallbacks] void removeAttribute(DOMString name); 31 [CustomElementCallbacks] void removeAttribute(DOMString name);
32 [MeasureAs=ElementGetAttributeNode] Attr getAttributeNode([Default=Undefined ] optional DOMString name); // Removed from DOM4. 32 [MeasureAs=ElementGetAttributeNode] Attr getAttributeNode([Default=Undefined ] optional DOMString name); // Removed from DOM4.
33 [RaisesException, CustomElementCallbacks, MeasureAs=ElementSetAttributeNode] Attr setAttributeNode([Default=Undefined, StrictTypeChecking] optional Attr new Attr); // Removed from DOM4. 33 [RaisesException, CustomElementCallbacks, MeasureAs=ElementSetAttributeNode] Attr setAttributeNode([Default=Undefined, StrictTypeChecking] optional Attr new Attr); // Removed from DOM4.
34 [RaisesException, CustomElementCallbacks, MeasureAs=ElementRemoveAttributeNo de] Attr removeAttributeNode([Default=Undefined, StrictTypeChecking] optional At tr oldAttr); // Removed from DOM4. 34 [RaisesException, CustomElementCallbacks, MeasureAs=ElementRemoveAttributeNo de] Attr removeAttributeNode([Default=Undefined, StrictTypeChecking] optional At tr oldAttr); // Removed from DOM4.
35 [PerWorldBindings] NodeList getElementsByTagName(DOMString name); 35 [PerWorldBindings] HTMLCollection getElementsByTagName(DOMString name);
36 36
37 [PerWorldBindings] readonly attribute NamedNodeMap attributes; 37 [PerWorldBindings] readonly attribute NamedNodeMap attributes;
38 [MeasureAs=HasAttributes] boolean hasAttributes(); 38 [MeasureAs=HasAttributes] boolean hasAttributes();
39 39
40 // DOM Level 2 Core 40 // DOM Level 2 Core
41 41
42 DOMString getAttributeNS([TreatNullAs=NullString] DOMString namespaceURI, DO MString localName); 42 DOMString getAttributeNS([TreatNullAs=NullString] DOMString namespaceURI, DO MString localName);
43 [RaisesException, CustomElementCallbacks] void setAttributeNS([TreatNullAs=N ullString] DOMString namespaceURI, DOMString qualifiedName, DOMString value); 43 [RaisesException, CustomElementCallbacks] void setAttributeNS([TreatNullAs=N ullString] DOMString namespaceURI, DOMString qualifiedName, DOMString value);
44 [CustomElementCallbacks] void removeAttributeNS([TreatNullAs=NullString] DOM String namespaceURI, DOMString localName); 44 [CustomElementCallbacks] void removeAttributeNS([TreatNullAs=NullString] DOM String namespaceURI, DOMString localName);
45 NodeList getElementsByTagNameNS([TreatNullAs=NullString] DOMString namespace URI, DOMString localName); 45 HTMLCollection getElementsByTagNameNS([TreatNullAs=NullString] DOMString nam espaceURI, DOMString localName);
46 [MeasureAs=ElementGetAttributeNodeNS] Attr getAttributeNodeNS([TreatNullAs=N ullString,Default=Undefined] optional DOMString namespaceURI, 46 [MeasureAs=ElementGetAttributeNodeNS] Attr getAttributeNodeNS([TreatNullAs=N ullString,Default=Undefined] optional DOMString namespaceURI,
47 [Default=Undef ined] optional DOMString localName); // Removed from DOM4. 47 [Default=Undef ined] optional DOMString localName); // Removed from DOM4.
48 [RaisesException, CustomElementCallbacks, MeasureAs=ElementSetAttributeNodeN S] Attr setAttributeNodeNS([Default=Undefined, StrictTypeChecking] optional Attr newAttr); // Removed from DOM4. 48 [RaisesException, CustomElementCallbacks, MeasureAs=ElementSetAttributeNodeN S] Attr setAttributeNodeNS([Default=Undefined, StrictTypeChecking] optional Attr newAttr); // Removed from DOM4.
49 boolean hasAttribute(DOMString name); 49 boolean hasAttribute(DOMString name);
50 boolean hasAttributeNS([TreatNullAs=NullString] DOMString namespaceURI, DOMS tring localName); 50 boolean hasAttributeNS([TreatNullAs=NullString] DOMString namespaceURI, DOMS tring localName);
51 51
52 [PerWorldBindings] readonly attribute CSSStyleDeclaration style; 52 [PerWorldBindings] readonly attribute CSSStyleDeclaration style;
53 53
54 // DOM4 54 // DOM4
55 [Reflect] attribute DOMString id; 55 [Reflect] attribute DOMString id;
(...skipping 23 matching lines...) Expand all
79 void blur(); 79 void blur();
80 void scrollIntoView(optional boolean alignWithTop); 80 void scrollIntoView(optional boolean alignWithTop);
81 81
82 // WebKit extensions 82 // WebKit extensions
83 83
84 void scrollIntoViewIfNeeded(optional boolean centerIfNeeded); 84 void scrollIntoViewIfNeeded(optional boolean centerIfNeeded);
85 void scrollByLines([Default=Undefined] optional long lines); 85 void scrollByLines([Default=Undefined] optional long lines);
86 void scrollByPages([Default=Undefined] optional long pages); 86 void scrollByPages([Default=Undefined] optional long pages);
87 87
88 // HTML 5 88 // HTML 5
89 NodeList getElementsByClassName(DOMString classNames); 89 HTMLCollection getElementsByClassName(DOMString classNames);
90 [TreatNullAs=NullString, CustomElementCallbacks, PerWorldBindings, ActivityL ogging=SetterForIsolatedWorlds, RaisesException=Setter] attribute DOMString inne rHTML; 90 [TreatNullAs=NullString, CustomElementCallbacks, PerWorldBindings, ActivityL ogging=SetterForIsolatedWorlds, RaisesException=Setter] attribute DOMString inne rHTML;
91 [TreatNullAs=NullString, CustomElementCallbacks, RaisesException=Setter] att ribute DOMString outerHTML; 91 [TreatNullAs=NullString, CustomElementCallbacks, RaisesException=Setter] att ribute DOMString outerHTML;
92 [CustomElementCallbacks, RaisesException] void insertAdjacentHTML(DOMString where, DOMString html); 92 [CustomElementCallbacks, RaisesException] void insertAdjacentHTML(DOMString where, DOMString html);
93 93
94 [Reflect=class, PerWorldBindings] attribute DOMString className; 94 [Reflect=class, PerWorldBindings] attribute DOMString className;
95 [PerWorldBindings] readonly attribute DOMTokenList classList; 95 [PerWorldBindings] readonly attribute DOMTokenList classList;
96 96
97 [PerWorldBindings] readonly attribute DOMStringMap dataset; 97 [PerWorldBindings] readonly attribute DOMStringMap dataset;
98 98
99 // NodeSelector - Selector API 99 // NodeSelector - Selector API
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; 142 [RuntimeEnabled=Touch] attribute EventHandler ontouchend;
143 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; 143 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove;
144 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; 144 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart;
145 attribute EventHandler onwebkitfullscreenchange; 145 attribute EventHandler onwebkitfullscreenchange;
146 attribute EventHandler onwebkitfullscreenerror; 146 attribute EventHandler onwebkitfullscreenerror;
147 [PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] attribute EventH andler onwheel; 147 [PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] attribute EventH andler onwheel;
148 }; 148 };
149 149
150 Element implements ParentNode; 150 Element implements ParentNode;
151 Element implements ChildNode; 151 Element implements ChildNode;
OLDNEW
« no previous file with comments | « Source/core/dom/Document.idl ('k') | Source/core/dom/Node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698