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

[Bug 20104] New: Algorithm for DOMTokenList.add seems wrong if tokens are present multiple times in the list

From: <bugzilla@jessica.w3.org>
Date: Tue, 27 Nov 2012 18:35:31 +0000
To: public-webapps-bugzilla@w3.org
Message-ID: <bug-20104-2532@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=20104

            Bug ID: 20104
           Summary: Algorithm for DOMTokenList.add seems wrong if tokens
                    are present multiple times in the list
    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

Consider this script:

  var d = document.createElement("div");
  d.classList.add("a", "a");

If I read the spec right, the result of this will serialize as:

  <div class="a a"></div>

which seems slightly odd.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Tuesday, 27 November 2012 18:35:32 GMT

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