Fyrd / caniuse

Raw browser/feature support data from caniuse.com
https://caniuse.com
Creative Commons Attribution 4.0 International
5.63k stars 1.38k forks source link

E4X: ECMAScript for XML #5929

Open TomasHubelbauer opened 3 years ago

TomasHubelbauer commented 3 years ago

https://en.wikipedia.org/wiki/ECMAScript_for_XML

This just surfaced on HN which reminded me that the last time I was looking into this, I was struggling to find any support data. There used to be an MDN page for this which I can't find anymore. The https://en.wikipedia.org/wiki/ECMAScript_for_XML#Browser_support chapter on wiki details current support: no support.

This is an ancient feature, deprecated completely. I am not sure if others will feel like this should be in CanIUse, but my first instinct was to go look for this there, hence this issue.

TomasHubelbauer commented 3 years ago

BTW why was I even looking this up in the first place: imagine if this was being supported and we could have JSX (or close to JSX) syntax without bundlers! One can dream...

Fyrd commented 3 years ago

I think template literals already provides a lot of the magic JSX does... the Lit library in particular makes use of these for near-JSX-like syntax. Given that I'm not sure browsers will be interested in returning to ES for XML support.

TomasHubelbauer commented 3 years ago

I'm not saying I expect browsers would. Just that I think this obsolete feature would be nice to show in CIU. You're right about available libraries, my day dream was specifically about native support though. 🙂