summaryrefslogtreecommitdiff
path: root/Source/WebCore/html/DOMTokenList.idl
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/html/DOMTokenList.idl
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
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;
+};