3 ms·
I always found it interesting that style tags were designed as <style type="text/css">, implying that new style standards could be introduced down the road. (f
by Eric_WVGG 11y ago
I always found it interesting that style tags were designed as <style type="text/css">, implying that new style standards could be introduced down the road.
(for a while I thought <script type="text/dart"> might get real… oh sweet naivety)
- gopowerranger 11y agoThe script type is a possibility but you have to make it work. I've forgotten the details.
- toyg 11y agoSince the browser will not react to these nodes, you can add some JS code that will detect them and hand off content interpretation to other mechanisms.
- bsimpson 11y agoThat's how React's JSXTransformer worked. You can also do the same for WebGL shaders: <script type = "x-shader/x-fragment"> … </script>
- antod 11y agoBack in the day, IE4 supported both javascript and vbscript. And from memory if you installed other eg ActivePerl (and ActivePython too I think), you could use them as well.
- david-given 11y agoI have a toy which allows <script type="text/smalltalk">. The scripts get transpiled on-the-fly to Javascript. (Although the process you have to go through to hook a new script type is painful. There are, like, four different cases you need to consider, and scripts have to be processed in the right order but handled synchronously, and...)