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

Unified Diff: sdk/lib/html/dart2js/html_dart2js.dart

Issue 11855014: Removing the exclusion of all NamedNodeMap members as they were being used. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dart2js/html_dart2js.dart
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
index 2323f1e7e1f974709820a5bc3e7ce3f29c15400c..cc07f9bffc8ee64415d8046f0b796114ee86d9fc 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -14527,6 +14527,9 @@ class MutationRecord native "*MutationRecord" {
/// @domName NamedNodeMap; @docsEditable true
class NamedNodeMap implements JavaScriptIndexingBehavior, List<Node> native "*NamedNodeMap" {
+ /// @domName NamedNodeMap.length; @docsEditable true
+ int get length => JS("int", "#.length", this);
+
Node operator[](int index) => JS("Node", "#[#]", this, index);
void operator[]=(int index, Node value) {
@@ -14675,9 +14678,26 @@ class NamedNodeMap implements JavaScriptIndexingBehavior, List<Node> native "*Na
// -- end List<Node> mixins.
+ /// @domName NamedNodeMap.getNamedItem; @docsEditable true
+ Node getNamedItem(String name) native;
+
+ /// @domName NamedNodeMap.getNamedItemNS; @docsEditable true
+ Node getNamedItemNS(String namespaceURI, String localName) native;
+
/// @domName NamedNodeMap.item; @docsEditable true
- @JSName('item')
- Node _item(int index) native;
+ Node item(int index) native;
+
+ /// @domName NamedNodeMap.removeNamedItem; @docsEditable true
+ Node removeNamedItem(String name) native;
+
+ /// @domName NamedNodeMap.removeNamedItemNS; @docsEditable true
+ Node removeNamedItemNS(String namespaceURI, String localName) native;
+
+ /// @domName NamedNodeMap.setNamedItem; @docsEditable true
+ Node setNamedItem(Node node) native;
+
+ /// @domName NamedNodeMap.setNamedItemNS; @docsEditable true
+ Node setNamedItemNS(Node node) native;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698