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

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

Issue 143453010: Have getElementsByClassName() / getElementsByTagName*() return an HTMLCollection (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Null HTMLCollection handling 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2006, 2007 Samuel Weinig <sam@webkit.org> 3 * Copyright (C) 2006, 2007 Samuel Weinig <sam@webkit.org>
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 18 matching lines...) Expand all
29 readonly attribute DOMImplementation implementation; 29 readonly attribute DOMImplementation implementation;
30 readonly attribute Element documentElement; 30 readonly attribute Element documentElement;
31 31
32 [CustomElementCallbacks, PerWorldBindings, ActivityLogging=ForIsolatedWorlds , RaisesException] Element createElement(DOMString tagName); 32 [CustomElementCallbacks, PerWorldBindings, ActivityLogging=ForIsolatedWorlds , RaisesException] Element createElement(DOMString tagName);
33 DocumentFragment createDocumentFragment(); 33 DocumentFragment createDocumentFragment();
34 [PerWorldBindings] Text createTextNode(DOMString data); 34 [PerWorldBindings] Text createTextNode(DOMString data);
35 Comment createComment(DOMString data); 35 Comment createComment(DOMString data);
36 [RaisesException, MeasureAs=DocumentCreateCDATASection] CDATASection createC DATASection([Default=Undefined] optional DOMString data); // Removed from DOM4. 36 [RaisesException, MeasureAs=DocumentCreateCDATASection] CDATASection createC DATASection([Default=Undefined] optional DOMString data); // Removed from DOM4.
37 [RaisesException] ProcessingInstruction createProcessingInstruction(DOMStrin g target, DOMString data); 37 [RaisesException] ProcessingInstruction createProcessingInstruction(DOMStrin g target, DOMString data);
38 [RaisesException, MeasureAs=DocumentCreateAttribute] Attr createAttribute([D efault=Undefined] optional DOMString name); // Removed from DOM4. 38 [RaisesException, MeasureAs=DocumentCreateAttribute] Attr createAttribute([D efault=Undefined] optional DOMString name); // Removed from DOM4.
39 [PerWorldBindings] NodeList getElementsByTagName(DOMString localName); 39 [PerWorldBindings] HTMLCollection getElementsByTagName(DOMString localName);
40 40
41 // Introduced in DOM Level 2: 41 // Introduced in DOM Level 2:
42 42
43 [CustomElementCallbacks, PerWorldBindings, ActivityLogging=ForIsolatedWorlds , RaisesException] Node importNode(Node node, optional boolean deep); 43 [CustomElementCallbacks, PerWorldBindings, ActivityLogging=ForIsolatedWorlds , RaisesException] Node importNode(Node node, optional boolean deep);
44 [CustomElementCallbacks, PerWorldBindings, ActivityLogging=ForIsolatedWorlds , RaisesException] Element createElementNS([TreatNullAs=NullString] DOMString na mespaceURI, DOMString qualifiedName); 44 [CustomElementCallbacks, PerWorldBindings, ActivityLogging=ForIsolatedWorlds , RaisesException] Element createElementNS([TreatNullAs=NullString] DOMString na mespaceURI, DOMString qualifiedName);
45 [RaisesException, MeasureAs=DocumentCreateAttributeNS] Attr createAttributeN S([TreatNullAs=NullString,Default=Undefined] optional DOMString namespaceURI, 45 [RaisesException, MeasureAs=DocumentCreateAttributeNS] Attr createAttributeN S([TreatNullAs=NullString,Default=Undefined] optional DOMString namespaceURI,
46 [TreatNullAs=NullString,Default=Undefined] optional DOMString qualifiedName); // Removed from DOM4. 46 [TreatNullAs=NullString,Default=Undefined] optional DOMString qualifiedName); // Removed from DOM4.
47 NodeList getElementsByTagNameNS([TreatNullAs=NullString] DOMString namespace URI, DOMString localName); 47 HTMLCollection getElementsByTagNameNS([TreatNullAs=NullString] DOMString nam espaceURI, DOMString localName);
48 [PerWorldBindings] Element getElementById(DOMString elementId); 48 [PerWorldBindings] Element getElementById(DOMString elementId);
49 49
50 // DOM Level 3 Core 50 // DOM Level 3 Core
51 51
52 [TreatReturnedNullStringAs=Null, MeasureAs=DocumentInputEncoding] readonly a ttribute DOMString inputEncoding; // Removed from DOM4. 52 [TreatReturnedNullStringAs=Null, MeasureAs=DocumentInputEncoding] readonly a ttribute DOMString inputEncoding; // Removed from DOM4.
53 53
54 [TreatReturnedNullStringAs=Null, MeasureAs=DocumentXMLEncoding] readonly att ribute DOMString xmlEncoding; // Removed from DOM4. 54 [TreatReturnedNullStringAs=Null, MeasureAs=DocumentXMLEncoding] readonly att ribute DOMString xmlEncoding; // Removed from DOM4.
55 [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, RaisesException=Set ter, MeasureAs=DocumentXMLVersion] attribute DOMString xmlVersion; // Removed fr om DOM4. 55 [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, RaisesException=Set ter, MeasureAs=DocumentXMLVersion] attribute DOMString xmlVersion; // Removed fr om DOM4.
56 [RaisesException=Setter, MeasureAs=DocumentXMLStandalone] attribute boolean xmlStandalone; // Removed from DOM4. 56 [RaisesException=Setter, MeasureAs=DocumentXMLStandalone] attribute boolean xmlStandalone; // Removed from DOM4.
57 57
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 [TreatReturnedNullStringAs=Null] readonly attribute DOMString characterSet; 139 [TreatReturnedNullStringAs=Null] readonly attribute DOMString characterSet;
140 140
141 // WebKit extensions 141 // WebKit extensions
142 142
143 [TreatReturnedNullStringAs=Null] readonly attribute DOMString preferredStyle sheetSet; 143 [TreatReturnedNullStringAs=Null] readonly attribute DOMString preferredStyle sheetSet;
144 [TreatReturnedNullStringAs=Null, TreatNullAs=NullString] attribute DOMString selectedStylesheetSet; 144 [TreatReturnedNullStringAs=Null, TreatNullAs=NullString] attribute DOMString selectedStylesheetSet;
145 145
146 CanvasRenderingContext getCSSCanvasContext(DOMString contextId, DOMString na me, long width, long height); 146 CanvasRenderingContext getCSSCanvasContext(DOMString contextId, DOMString na me, long width, long height);
147 147
148 // HTML 5 148 // HTML 5
149 NodeList getElementsByClassName(DOMString classNames); 149 HTMLCollection getElementsByClassName(DOMString classNames);
150 readonly attribute Element activeElement; 150 readonly attribute Element activeElement;
151 boolean hasFocus(); 151 boolean hasFocus();
152 152
153 readonly attribute DOMString compatMode; 153 readonly attribute DOMString compatMode;
154 154
155 // NodeSelector - Selector API 155 // NodeSelector - Selector API
156 [RaisesException] Element querySelector(DOMString selectors); 156 [RaisesException] Element querySelector(DOMString selectors);
157 [RaisesException] NodeList querySelectorAll(DOMString selectors); 157 [RaisesException] NodeList querySelectorAll(DOMString selectors);
158 158
159 void webkitExitPointerLock(); 159 void webkitExitPointerLock();
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 // document in the console. It's possible http://crbug.com/43394 will resolv e this. 210 // document in the console. It's possible http://crbug.com/43394 will resolv e this.
211 [MeasureAs=PrefixedPageVisibility, ImplementedAs=visibilityState] readonly a ttribute DOMString webkitVisibilityState; 211 [MeasureAs=PrefixedPageVisibility, ImplementedAs=visibilityState] readonly a ttribute DOMString webkitVisibilityState;
212 [MeasureAs=PrefixedPageVisibility, ImplementedAs=hidden] readonly attribute boolean webkitHidden; 212 [MeasureAs=PrefixedPageVisibility, ImplementedAs=hidden] readonly attribute boolean webkitHidden;
213 213
214 readonly attribute HTMLScriptElement currentScript; 214 readonly attribute HTMLScriptElement currentScript;
215 }; 215 };
216 216
217 Document implements GlobalEventHandlers; 217 Document implements GlobalEventHandlers;
218 Document implements ParentNode; 218 Document implements ParentNode;
219 219
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698