[Webkit-unassigned] [Bug 41146] Implement the .dataset DOM property
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jun 30 09:04:26 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=41146
Sam Weinig <sam at webkit.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ian at hixie.ch,
| |sam at webkit.org
--- Comment #9 from Sam Weinig <sam at webkit.org> 2010-06-30 09:04:26 PST ---
(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)".
--
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