W3C home > Mailing lists > Public > public-webapps-bugzilla@w3.org > November 2012

[Bug 20105] New: Nothing in the spec really defines how changes to token lists change the underlying string

From: <bugzilla@jessica.w3.org>
Date: Tue, 27 Nov 2012 18:56:53 +0000
To: public-webapps-bugzilla@w3.org
Message-ID: <bug-20105-2532@http.www.w3.org/Bugs/Public/>
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 the QA Contact for the bug.
Received on Tuesday, 27 November 2012 18:56:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 November 2012 18:56:55 GMT