News for hackers. Stuff that matters.
Re:Languages Which Almost Became CSS by tannhaeuser on Friday August 04, 2017 @04:46AM (#14927266)
You don't need XML for that. HTML can be parsed using SGML precisely and elegantly [1] (if I may say so for a project of mine).

If you see value in XML, you really should look into XML's big sister SGML. It gives you downward compat with XML, tag inference, type-aware (injection-free) variable and macro expansion, custom Wiki syntaxes (markdown and others), an integrated stylesheet language without new ad-hoc syntax, full HTML 5 parsing with short forms for attributes etc., and more. You might actually like it.

[1]: http://sgmljs.net/blog/blog1701.html

Re:Languages Which Almost Became CSS by pjmlp on Friday August 04, 2017 @04:57AM (#14927303)
I was a big fan of Docbook, back when SGML was more well known, thanks for the heads up.

However this is meaningless if the browsers keep being a document engine, full of workarounds to translate a mix of document tags, coupled with some generic <div> and <span> into some kind of general purpose GUI layout engine.

Having to find the proper incantation of CSS3 transforms to portably trigger GUI acceleration is a good example of such hacks.

Even if it is yet another hack, webcomponents + shadowdom looked it would be the solution, even if a bit hackish, but it is Chrome only.