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

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

Issue 972493002: Sync the DOMStringMap interface with the spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: drop creator keyword 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/DOMStringMap.idl
diff --git a/Source/core/dom/DOMStringMap.idl b/Source/core/dom/DOMStringMap.idl
index c8c7d15fc17325ae45e0f61e4f82660f08547216..0b8031ab06adfbf6740be0c96a343e42e951007a 100644
--- a/Source/core/dom/DOMStringMap.idl
+++ b/Source/core/dom/DOMStringMap.idl
@@ -23,16 +23,21 @@
* THE POSSIBILITY OF SUCH DAMAGE.
*/
+// https://html.spec.whatwg.org/#the-domstringmap-interface
+
[
OverrideBuiltins,
SetWrapperReferenceFrom=element,
WillBeGarbageCollected,
] interface DOMStringMap {
- [NotEnumerable] getter DOMString (unsigned long index);
- [RaisesException] setter DOMString (unsigned long index, DOMString value);
- deleter boolean (unsigned long index);
-
[ImplementedAs=item] getter DOMString (DOMString name);
- [RaisesException] setter DOMString (DOMString name, DOMString value);
+ [RaisesException] setter void (DOMString name, DOMString value);
+ // FIXME: The deleter return type should be void. crbug.com/462920
deleter boolean (DOMString name);
+
+ // FIXME: The indexed getter, setter and deleter are not in the
+ // spec and simply converts the index to a string.
+ [NotEnumerable] getter DOMString (unsigned long index);
+ [RaisesException] setter void (unsigned long index, DOMString value);
+ deleter boolean (unsigned long index);
};
« 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