5 ms·
Don't forget XML Data islands. https://developer.mozilla.org/en/docs/Using_XML_Data_Islands_in_Mozilla https://developer.mozilla.org/en/docs/Using_XML_Data_Isla
by est 10y ago
Don't forget XML Data islands. https://developer.mozilla.org/en/docs/Using_XML_Data_Islands_in_Mozilla https://developer.mozilla.org/en/docs/Using_XML_Data_Islands...
You can write HTML literals directly in Javascript in an ancient version of Firefox I forgot its name it's similar to JSX
Edit: It's called E4X. Thanks @woogley
- woogley 10y agoE4X: https://developer.mozilla.org/en-US/docs/Archive/Web/E4X https://developer.mozilla.org/en-US/docs/Archive/Web/E4X
- dorianm 10y agoAnd with examples: https://developer.mozilla.org/en-US/docs/Archive/Web/E4X/Processing_XML_with_E4X https://developer.mozilla.org/en-US/docs/Archive/Web/E4X/Pro... It's crazy how similar this is with JSX
- sdegutis 10y agoSomething something history doomed to repeat something.
- johnhenry 10y agoI don't think you are thinking of E4X -- it allowed one to convert XML strings into native objects, but I don't believe that it allowed for direct XML literals in Javascript as does JSX?
- woogley 10y agoIt did, as an alternative to XML('string') constructor. Check it out: https://developer.mozilla.org/en-US/docs/Archive/Web/E4X/Processing_XML_with_E4X#Creating_an_XML_object https://developer.mozilla.org/en-US/docs/Archive/Web/E4X/Pro...
- tbranyen 10y agoThat is pretty mind blowing. Not such a revolutionary idea in the JS space after all.
- deleted 10y ago[deleted]