- From: <bugzilla@jessica.w3.org>
- Date: Tue, 27 Nov 2012 18:56:53 +0000
- To: www-dom@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=20105
Bug ID: 20105
Summary: Nothing in the spec really defines how changes to
token lists change the underlying string
Classification: Unclassified
Product: WebAppsWG
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P2
Component: DOM
Assignee: annevk@annevk.nl
Reporter: bzbarsky@mit.edu
QA Contact: public-webapps-bugzilla@w3.org
CC: mike@w3.org, www-dom@w3.org
In particular, I see the following problems:
1) It's not clear at what point token list mutators call setAttribute in the
case of .classList. If I call remove("a", "b"), should that do two
setAttribute calls or just one? The difference is content-detectable using
mutation records.
2) Nothing really says that the underlying attribute is modified. For
example, http://dom.spec.whatwg.org/#dom-domtokenlist-remove just calls into
http://dom.spec.whatwg.org/#remove-a-token-from-a-string which produces a
string called "output" and never does anything with it. So per spec as
currently written, "output" should just be discarded, which is bogus.
--
You are receiving this mail because:
You are on the CC list for the bug.
Received on Tuesday, 27 November 2012 18:56:55 UTC