What about id's. Someone could argue that id's are too long.
...
Now personally I don't think we need to shorten id selectors. But if we shorten class selectors how do you justify not shortening id selectors?
Also how do you gaurd againts this being the first step of html converging into haml?
Thanks for the feedback! (Looking at your email address, are you the raynos I see on SO?)
What about id's. Someone could argue that id's are too long....
Now personally I don't think we need to shorten id selectors. But if we shorten class selectors how do you justify not shortening id selectors?For me it's a frequency thing (I use class a lot more than id). That said, I could happily support your id idea, but I'm worried about introducing that much complexity. Having both the class and id shorthands leads inevitably to interactions between them and specifying how that works, e.g.:<b#foo.bar>Hi</b>...instead of<b id="foo" class="bar">Hi</b>
...which I suppose is rational enough. HTML id values are allowed to contain dots, but the shorthand could be limited to the CSS definition (e.g., if you want a dot in your id -- shudder -- use id=).I'm a bit surprised neither I nor anyone I've talked to about this previously has had your id idea. Nice one! Want to keep scope contained, but as class and id are two of the three central concepts (tagname being the third), it could make sense. Needs further discussion and input from others, because it does seem to me it complicates things.Also how do you gaurd againts this being the first step of html converging into haml?
By ensuring that it isn't. :-) For me, your id idea is scope creep enough, the buck stops there.
On Tue, Oct 25, 2011 at 12:14 PM, T.J. Crowder <t...@crowdersoftware.com> wrote:Thanks for the feedback! (Looking at your email address, are you the raynos I see on SO?)Yes.
I think since id's are unique you shouldn't just be creating a lot of such elements. the need for slapping a class on a small token is useful (<b> was a very bad example! Please use semantic examples like <strong>) and we can imagine that you can have _a lot_ of small tokens.
Now in both these cases these tokens would not have any other attributes then id's and classes and if they did have other attributes then we can just use the long hand form `name='value'`
So basically to shut down scope creep you must justify why there are a lot of elements with no attributes other then the one you want shortened.
As an aside now that I've justified this shortened form I can actually see that it's useful and not a perversion of HTML so +1 on this idea.
Saying "and if you use this shorthand you can't have other attributes" complicates the parsing (reducing adoption by vendors) and doesn't seem on first glance to serve any purpose.
I also think we can we can stop scope creep at id and class merely because they (and tagname) are the 3 central concepts. It doesn't make sense to try propose any other useful shorthand.
This sounds like a very interesting idea - which I fully support. However, how would jQuery Standards be able to move it forward?
The jQuery Standards Team has three primary goals:
- To represent the web developer community, in particular jQuery users, to standards bodies such as the W3C and TC39 with the intention of improving existing standards and standards in progress to better meet the needs of web developers.
- To represent the web developer community, and especially jQuery users, to browser vendors with the intent of helping them identify standards that they should prioritize for implementing, and proofs of concept that they can build.
- To help the jQuery project adopt new standards and browser features as appropriate.
Have you ever tried to make a interpreter for that syntax?
My thoughts: anything that is easily done with a preprocessor is not worth the standards bodies' time. This adds no new features to the web, but simply gives a second way of doing something, that to some people's eyes is nicer. There is no objective gain, only subjective, and there is nothing here that is any better than the myriad of other alternatives as exhibited by other compiles-to-HTML languages already mentioned.
It will turn things even more complicated for XML+namespace based pre-processors as JSF or taglibs like JSTL.
This is really a bad idea.
-10
--
Filipi Zimermann
http://www.nextt.com.br/
Mobile: +55 (48) 8479-7900
Office: +55 (48) 4052-9556