From 07e9fc014ba54a185cb8c62016f088fd9181be6f Mon Sep 17 00:00:00 2001
From: Simon Pieters Yes, the names {{DOMTokenList}} and {{DOMSettableTokenList}}
-are unfortunate legacy mishaps.
+ Yes, the name {{DOMTokenList}} is an unfortunate legacy mishap.
Returns true if token is in the associated attribute's supported tokens. Returns
false otherwise.
Throws a Returns the associated set as string.
+ Can be set, to change the associated attribute.
The Return result.
- The stringification behavior
-must return the result of running context object's serialize steps.
-
-
- Returns the associated set as string.
- Can be set, to change the associated attribute.
- The The Setting the {{DOMSettableTokenList/value}} attribute must set an attribute value for the
+ Setting the {{DOMTokenList/value}} attribute must set an attribute value for the
associated element using associated attribute's local name and
the given value.
+ The stringification behavior
+must return the result of running context object's serialize steps.
Yes, the names Yes, the name Sets
-Interface {{DOMTokenList}}
@@ -8576,6 +8575,7 @@ interface DOMTokenList {
boolean toggle(DOMString token, optional boolean force);
void replace(DOMString token, DOMString newToken);
boolean supports(DOMString token);
+ attribute DOMString value;
stringifier;
iterable<DOMString>;
};
@@ -8690,6 +8690,11 @@ associated element's
TypeError
exception if the associated attribute has no supported tokens defined.
+
+ tokenlist . {{DOMTokenList/value}}
+ length
attribute' getter must return the
@@ -8822,32 +8827,15 @@ method, when invoked, must run these steps:
Interface {{DOMSettableTokenList}}
-
-
-interface DOMSettableTokenList : DOMTokenList {
- attribute DOMString value;
-};
-
-
-
-
-
-tokenlist . {{DOMSettableTokenList/value}}
- value
attribute must return the
+value
attribute must return the
result of running context object's serialize steps.
-Historical
@@ -9153,6 +9141,7 @@ Stig Halvorsen,
Tab Atkins,
timeless,
Timo Tijhof,
+Tobie Langel,
Tom Pixley,
Travis Leithead,
Vidur Apparao,
diff --git a/dom.html b/dom.html
index ba788f89..46d8d8fd 100644
--- a/dom.html
+++ b/dom.html
@@ -184,7 +184,6 @@ Table of Contents
7 Sets
id;
attribute DOMString className;
- [SameObject] readonly attribute DOMTokenList classList;
+ [SameObject, PutForwards=value] readonly attribute DOMTokenList classList;
boolean hasAttributes();
[SameObject] readonly attribute NamedNodeMap attributes;
@@ -4173,7 +4172,7 @@
SHOW_DOCUMENT_FRAGMENT (1024, 400 in hexadecimal).
7. Sets
- DOMTokenList
and DOMSettableTokenList
are unfortunate legacy mishaps. DOMTokenList
is an unfortunate legacy mishap. 7.1. Interface
DOMTokenList
interface DOMTokenList {
readonly attribute unsigned long length;
@@ -4184,6 +4183,7 @@
toggle(DOMString token, optional boolean force);
void replace(DOMString token, DOMString newToken);
boolean supports(DOMString token);
+ attribute DOMString value;
stringifier;
iterable<DOMString>;
};
@@ -4259,6 +4259,10 @@
Returns true if token is in the associated attribute’s supported tokens. Returns
false otherwise.
Throws a TypeError
exception if the associated attribute has no supported tokens defined.
tokenlist . value
+ Returns the associated set as string.
+Can be set, to change the associated attribute.
The length
attribute' getter must return the
number of tokens in the tokens.
Return result.
-The stringification behavior must return the result of running context object’s serialize steps.
-DOMSettableTokenList
interface DOMSettableTokenList : DOMTokenList { - attribute DOMString value; -}; --
tokenlist . value
- Returns the associated set as string.
-Can be set, to change the associated attribute.
-The value
attribute must return the
+
The value
attribute must return the
result of running context object’s serialize steps.
Setting the value
attribute must set an attribute value for the
+
Setting the value
attribute must set an attribute value for the
associated element using associated attribute’s local name and
the given value.
The stringification behavior must return the result of running context object’s serialize steps.
As explained in goals this specification is a significant revision of various DOM specifications. This section attempts to @@ -4600,6 +4593,7 @@