[Webkit-unassigned] [Bug 41146] Implement the .dataset DOM property

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 30 09:05:46 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=41146





--- Comment #10 from Tab Atkins <tabatkins at google.com>  2010-06-30 09:05:45 PST ---
(In reply to comment #9)
> (In reply to comment #7)
> > (In reply to comment #2)
> > > - I am not sure the behavior for an attribute called "data-" (nothing following the hyphen) is correct.  (With this patch, for <div data-="value">, div.dataset[""] == "value"). This should also be included in the test.
> > 
> > "Custom data attributes" (the ones that should be included in .dataset) must have at least one character after the hyphen.  First paragraph of the relevant section of the spec, http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html#embedding-custom-non-visible-data
> > 
> > @data- isn't a valid custom data attribute, and so shouldn't be included.  It's just a random unstandardized attribute.
> 
> Interesting. In the section on "The algorithm for getting the list of name-value pairs" just below that it states "For each content attribute on the element whose first five characters are the string "data-" and whose remaining characters (if any)".

Ah, that's a spec bug.  I'll get it corrected one way or the other.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list