librelist archives

« back to archive

Fwd: Error in JSONSelect Documentation

Fwd: Error in JSONSelect Documentation

From:
Tab Atkins Jr.
Date:
2011-05-21 @ 01:34
In the docs for JSONSelect, you have the following:

.foo -- ID selectors, which match against object keys
."a string" -- ID selectors with JSON-string quoted ids

In Selectors, the . indicates a class selector, not an id selector.
These lines should describe the selectors as class selectors.

I must say, as a member of the CSS Working Group, that I approve of
how you've mapped JSON into a CSS element-tree.  You made good
decisions.  ^_^

~TJ

Re: [jsonselect] Fwd: Error in JSONSelect Documentation

From:
Lloyd Hilaiel
Date:
2011-05-21 @ 02:49
Hi Tab!

On May 20, 2011, at 7:34 PM, Tab Atkins Jr. wrote:

> In the docs for JSONSelect, you have the following:
> 
> .foo -- ID selectors, which match against object keys
> ."a string" -- ID selectors with JSON-string quoted ids

> In Selectors, the . indicates a class selector, not an id selector.
> These lines should describe the selectors as class selectors.

Thank you for reporting this.  I originally conceptually mapping JSON 
object keys to CSS IDs, but Mike Hanson suggested that classes were a 
tighter fit:


https://github.com/lloyd/JSONSelect/commit/0722de8b45e8c158a32f3fd2726fa85791fcae8c

> I must say, as a member of the CSS Working Group, that I approve of
> how you've mapped JSON into a CSS element-tree.  You made good
> decisions.  ^_^

Wow, that reallly means a lot to me.  I hope I can help refine it into 
something that's useful for people!

very best,
lloyd

> ~TJ