Closed Bug 1347998 Opened 7 years ago Closed 7 years ago

Align DOMTokenList with the DOM Standard

Categories

(Core :: DOM: Core & HTML, enhancement, P2)

enhancement

Tracking

()

RESOLVED DUPLICATE of bug 869788

People

(Reporter: annevk, Unassigned)

Details

It looks per those tests the DOMTokenList can't just be built directly on top of our attribute value, because the former doesn't have duplicates but the latter does.  In particular, computing its length is actually a potentially expensive operation in the spec, unlike what we have right now.  :(
Priority: -- → P2
Reference: https://github.com/whatwg/dom/issues/105

Anne, why is this not a duplicate of bug 869788?  It looks like the spec requires that all operations get rid of duplicates/whitespace, which seems exactly the same as bug 869788?
Flags: needinfo?(annevk)
Okay, so stringification does not get rid of duplicates/whitespace, that's what's different.  Is that all?  It's still basically the same change as bug 869788, it just needs tweaking.
I think that's all yes. I could probably have refocused that bug instead. Do you want me to reopen it and add comment 0 there?
Flags: needinfo?(annevk)
I'll do that, yes, since there was a whole bunch of technical work that already went on in that bug.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.