W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2010

[whatwg] Dataset contradiction - does "data-" generate an item in .dataset?

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 30 Jun 2010 09:11:24 -0700
Message-ID: <AANLkTiklBKEIXtv9Lk6-HpvARRmuffRlqr562DlByWcP@mail.gmail.com>
In the first paragraph of
it says that a custom data attribute is "an attribute in no namespace
whose name starts with the string "data-", has at least one character
after the hyphen,...".  Following this, <div data-=foo> would not put
anything in .dataset.

However, in the algorithm for getting the list of name-value pairs, it
says to process "each content attribute on the element whose first
five characters are the string "data-" and whose remaining characters
(if any)...".  Following this, <div data-=foo> would make

One of these references needs to be fixed, as webkit is implementing
dataset right now.

Received on Wednesday, 30 June 2010 09:11:24 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:24 UTC