summaryrefslogtreecommitdiff
path: root/Source/WebCore/html/DOMTokenList.idl
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/html/DOMTokenList.idl')
-rw-r--r--Source/WebCore/html/DOMTokenList.idl20
1 files changed, 11 insertions, 9 deletions
diff --git a/Source/WebCore/html/DOMTokenList.idl b/Source/WebCore/html/DOMTokenList.idl
index d7ace2e84..db99e93be 100644
--- a/Source/WebCore/html/DOMTokenList.idl
+++ b/Source/WebCore/html/DOMTokenList.idl
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2010, Google Inc. All rights reserved.
+ * Copyright (C) 2016, Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -27,14 +28,15 @@
SkipVTableValidation,
] interface DOMTokenList {
readonly attribute unsigned long length;
- [TreatReturnedNullStringAs=Null] getter DOMString item(unsigned long index);
- [RaisesException] boolean contains(DOMString token);
- [RaisesException] void add(DOMString... tokens);
- [RaisesException] void remove(DOMString... tokens);
- [RaisesException] boolean toggle(DOMString token, optional boolean force);
+ getter DOMString? item(unsigned long index);
+ boolean contains(DOMString token);
+ [CEReactions, MayThrowException] void add(DOMString... tokens);
+ [CEReactions, MayThrowException] void remove(DOMString... tokens);
+ [CEReactions, MayThrowException] boolean toggle(DOMString token, optional boolean force);
+ [CEReactions, MayThrowException] void replace(DOMString token, DOMString newToken);
+ [MayThrowException] boolean supports(DOMString token);
-#if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT
- [NotEnumerable] DOMString toString();
-#endif
-};
+ iterable<DOMString>;
+ [CEReactions] stringifier attribute DOMString value;
+};