You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In jsonselect in its current form is a huge ideological problem.
In the query language jsonselect swapped up (or mixed up) the names of the elements and classes.
For example, on page http://jsonselect.org/#tryit selector string.favoriteColor
shows yellow although ideologically correct to favoriteColor.string cause favoriteColor - name of the element, and string - his class (type).
Instead of string can be used number, array, hash, language-pseudotypes etc.
Again, that key to json should act as the names of the and types - as classes.
Take, for example jQuery and HTML DOM.
HTML has elements (such as <a>, <div>, etc.) and attributes of these elements (such as class, rel, src, id)
jQuery uses CSS Selectors. For example, to get the tag <div class="foo2"> in the following code:
We can use the following selectors: div.foo2 or . bar2>. foo2 or body. foo2, etc.
In json have no attributes, such as class. There is only the element names (tags), compared with json html dom. It would be logical to use the types of classes as values.
In the end, what we have now - like the css selectors with very confused logic.
Urge to release a new edition of the standard, which will take into account this remark and focus on the new version.
Because if taken as a basis jQuery / CSS selectors, you must comply with this idea.
The text was updated successfully, but these errors were encountered:
In jsonselect in its current form is a huge ideological problem.
In the query language jsonselect swapped up (or mixed up) the names of the elements and classes.
For example, on page http://jsonselect.org/#tryit selector
string.favoriteColor
shows
yellow
although ideologically correct tofavoriteColor.string
causefavoriteColor
- name of the element, andstring
- his class (type).Instead of
string
can be usednumber
,array
,hash
, language-pseudotypes etc.Again, that key to json should act as the names of the and types - as classes.
Take, for example jQuery and HTML DOM.
HTML has elements (such as
<a>
,<div>
, etc.) and attributes of these elements (such asclass
,rel
,src
,id
)jQuery uses CSS Selectors. For example, to get the tag
<div class="foo2">
in the following code:We can use the following selectors:
div.foo2
or. bar2>. foo2
orbody. foo2
, etc.In json have no attributes, such as class. There is only the element names (tags), compared with json html dom.
It would be logical to use the types of classes as values.
In general, if we take the example of page http://jsonselect.org/#tryit, it should be so:
In the end, what we have now - like the css selectors with very confused logic.
Urge to release a new edition of the standard, which will take into account this remark and focus on the new version.
Because if taken as a basis jQuery / CSS selectors, you must comply with this idea.
The text was updated successfully, but these errors were encountered: