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

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

Issue 755213002: Let NamedNodeMap take and return Attr instead of Node (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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
Index: Source/core/dom/NamedNodeMap.idl
diff --git a/Source/core/dom/NamedNodeMap.idl b/Source/core/dom/NamedNodeMap.idl
index 62944049120990845f4c5f38c13cf2dbdb2783b6..0be64d1ef06c291d9aba0c4f1fdc0ec6de342339 100644
--- a/Source/core/dom/NamedNodeMap.idl
+++ b/Source/core/dom/NamedNodeMap.idl
@@ -20,30 +20,30 @@
[
SetWrapperReferenceFrom=element,
+ TypeChecking=Interface,
WillBeGarbageCollected,
] interface NamedNodeMap {
- [MeasureAs=NamedNodeMapGetNamedItem] Node getNamedItem([Default=Undefined] optional DOMString name);
- [NotEnumerable, ImplementedAs=getNamedItem] getter Node ([Default=Undefined] optional DOMString name);
+ [MeasureAs=NamedNodeMapGetNamedItem] Attr getNamedItem([Default=Undefined] optional DOMString name);
+ [NotEnumerable, ImplementedAs=getNamedItem] getter Attr ([Default=Undefined] optional DOMString name);
- [RaisesException, CustomElementCallbacks, MeasureAs=NamedNodeMapSetNamedItem] Node setNamedItem([Default=Undefined] optional Node node);
+ [RaisesException, CustomElementCallbacks, MeasureAs=NamedNodeMapSetNamedItem] Attr setNamedItem(Attr attr);
- [RaisesException, CustomElementCallbacks, MeasureAs=NamedNodeMapRemoveNamedItem] Node removeNamedItem([Default=Undefined] optional DOMString name);
+ [RaisesException, CustomElementCallbacks, MeasureAs=NamedNodeMapRemoveNamedItem] Attr removeNamedItem([Default=Undefined] optional DOMString name);
- [MeasureAs=NamedNodeMapItem] getter Node item([Default=Undefined] optional unsigned long index);
+ [MeasureAs=NamedNodeMapItem] getter Attr item([Default=Undefined] optional unsigned long index);
readonly attribute unsigned long length;
// Introduced in DOM Level 2:
- [MeasureAs=NamedNodeMapGetNamedItemNS] Node getNamedItemNS([Default=Undefined] optional DOMString? namespaceURI,
+ [MeasureAs=NamedNodeMapGetNamedItemNS] Attr getNamedItemNS([Default=Undefined] optional DOMString? namespaceURI,
[Default=Undefined] optional DOMString localName);
- [RaisesException, CustomElementCallbacks, MeasureAs=NamedNodeMapSetNamedItemNS] Node setNamedItemNS([Default=Undefined] optional Node node);
+ [RaisesException, CustomElementCallbacks, MeasureAs=NamedNodeMapSetNamedItemNS] Attr setNamedItemNS(Attr attr);
- [RaisesException, CustomElementCallbacks, MeasureAs=NamedNodeMapRemoveNamedItemNS] Node removeNamedItemNS([Default=Undefined] optional DOMString? namespaceURI,
+ [RaisesException, CustomElementCallbacks, MeasureAs=NamedNodeMapRemoveNamedItemNS] Attr removeNamedItemNS([Default=Undefined] optional DOMString? namespaceURI,
[Default=Undefined] optional DOMString localName);
};
-

Powered by Google App Engine
This is Rietveld 408576698