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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 30 08:44:34 PDT 2010


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


Tab Atkins <tabatkins at google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tabatkins at google.com




--- Comment #7 from Tab Atkins <tabatkins at google.com>  2010-06-30 08:44:34 PST ---
(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.

-- 
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