coz it's needed for accessing dom dataset properties?https://github.com/jquery/jquery/blob/master/src/core.js#L289 …
-
-
Replying to @zackster
can you give an example? thanks, and I hope this doesn't involve CSS :-P.
1 reply 0 retweets 0 likes -
Replying to @BrendanEich
it's described as part of the spec for data attributes (but jquery also uses it for css props) https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/data- …*
1 reply 0 retweets 0 likes -
Replying to @BrendanEich @zackster
So the dashed-words to camelCase and back functions? I guess those could be added, sure.
2 replies 0 retweets 2 likes -
could it be a new type?
1 reply 0 retweets 0 likes -
-
ah, I meant an interface https://developer.mozilla.org/en-US/docs/Web/API/CSSValue … rather than yet more toXXX methods
1 reply 0 retweets 0 likes -
Replying to @zackster @BrendanEich
So similar to how we have JSON.parse/stringify?
1 reply 0 retweets 0 likes -
yeah, I think that feels cleaner, how is it implemented in the browser?
2 replies 0 retweets 0 likes
In Gecko, just member methods on DOMStringMap. See http://searchfox.org/mozilla-central/rev/51aa673e28802fe6ea89f4793721fc55334a6ac8/dom/html/nsDOMStringMap.cpp#165 … and http://searchfox.org/mozilla-central/rev/51aa673e28802fe6ea89f4793721fc55334a6ac8/dom/html/nsDOMStringMap.cpp#208 …
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.