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

Unified Diff: Source/core/dom/ParentNode.idl

Issue 1092113004: Sync the ChildNode and ParentNode interfaces with the spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/ChildNode.idl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ParentNode.idl
diff --git a/Source/core/dom/ParentNode.idl b/Source/core/dom/ParentNode.idl
index dea4bfd282a91f388ebc0b4201a5acb7df7f38df..e660f6c33f04458ec92704375e453308d81ea266 100644
--- a/Source/core/dom/ParentNode.idl
+++ b/Source/core/dom/ParentNode.idl
@@ -28,16 +28,22 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+// https://dom.spec.whatwg.org/#interface-parentnode
+
[
LegacyTreatAsPartialInterface,
NoInterfaceObject, // Always used on target of 'implements'
] interface ParentNode {
- [PerWorldBindings] readonly attribute HTMLCollection children;
- [PerWorldBindings] readonly attribute Element firstElementChild;
- [PerWorldBindings] readonly attribute Element lastElementChild;
+ [SameObject, PerWorldBindings] readonly attribute HTMLCollection children;
+ [PerWorldBindings] readonly attribute Element? firstElementChild;
+ [PerWorldBindings] readonly attribute Element? lastElementChild;
readonly attribute unsigned long childElementCount;
- // NodeSelector - Selector API
- [RaisesException] Element querySelector(DOMString selectors);
- [RaisesException] NodeList querySelectorAll(DOMString selectors);
+ // [Unscopeable] void prepend((Node or DOMString)... nodes);
+ // [Unscopeable] void append((Node or DOMString)... nodes);
+
+ // [Unscopeable] Element? query(DOMString relativeSelectors);
+ // [NewObject, Unscopeable] Elements queryAll(DOMString relativeSelectors);
Jens Widell 2015/04/18 07:04:25 What is 'Elements'?
philipj_slow 2015/04/18 18:38:38 https://dom.spec.whatwg.org/#element-collections
+ [RaisesException] Element? querySelector(DOMString selectors);
+ [NewObject, RaisesException] NodeList querySelectorAll(DOMString selectors);
};
« no previous file with comments | « Source/core/dom/ChildNode.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698