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

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 on the CC list for the bug.

Received on Tuesday, 27 November 2012 18:35:32 UTC