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

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

Issue 952863003: Sync the NamedNodeMap interface with the spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/NamedNodeMap.idl
diff --git a/Source/core/dom/NamedNodeMap.idl b/Source/core/dom/NamedNodeMap.idl
index 4391e65082f7d0d0b5012ebd1e3dcb23c5ff0756..65a1cf3b5fe6b8b3d899947b0773f4b01f41f7a6 100644
--- a/Source/core/dom/NamedNodeMap.idl
+++ b/Source/core/dom/NamedNodeMap.idl
@@ -18,30 +18,21 @@
* Boston, MA 02110-1301, USA.
*/
+// https://dom.spec.whatwg.org/#interface-namednodemap
+
[
SetWrapperReferenceFrom=element,
TypeChecking=Interface,
WillBeGarbageCollected,
] interface NamedNodeMap {
-
- [MeasureAs=NamedNodeMapGetNamedItem] Attr getNamedItem(DOMString name);
- [NotEnumerable, ImplementedAs=getNamedItem] getter Attr (DOMString name);
-
- [RaisesException, CustomElementCallbacks, MeasureAs=NamedNodeMapSetNamedItem] Attr setNamedItem(Attr attr);
-
- [RaisesException, CustomElementCallbacks, MeasureAs=NamedNodeMapRemoveNamedItem] Attr removeNamedItem(DOMString name);
-
- [MeasureAs=NamedNodeMapItem] getter Attr item(unsigned long index);
-
readonly attribute unsigned long length;
-
-
- // Introduced in DOM Level 2:
-
- [MeasureAs=NamedNodeMapGetNamedItemNS] Attr getNamedItemNS(DOMString? namespaceURI, DOMString localName);
-
- [RaisesException, CustomElementCallbacks, MeasureAs=NamedNodeMapSetNamedItemNS] Attr setNamedItemNS(Attr attr);
-
+ [MeasureAs=NamedNodeMapItem] getter Attr? item(unsigned long index);
+ // FIXME: getNamedItem should be an enumerable getter.
+ [MeasureAs=NamedNodeMapGetNamedItem] Attr? getNamedItem(DOMString name);
+ [NotEnumerable, ImplementedAs=getNamedItem] getter Attr? (DOMString name);
+ [MeasureAs=NamedNodeMapGetNamedItemNS] Attr? getNamedItemNS(DOMString? namespaceURI, DOMString localName);
+ [RaisesException, CustomElementCallbacks, MeasureAs=NamedNodeMapSetNamedItem] Attr? setNamedItem(Attr attr);
+ [RaisesException, CustomElementCallbacks, MeasureAs=NamedNodeMapSetNamedItemNS] Attr? setNamedItemNS(Attr attr);
+ [RaisesException, CustomElementCallbacks, MeasureAs=NamedNodeMapRemoveNamedItem] Attr removeNamedItem(DOMString name);
[RaisesException, CustomElementCallbacks, MeasureAs=NamedNodeMapRemoveNamedItemNS] Attr removeNamedItemNS(DOMString? namespaceURI, DOMString localName);
-
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698