3 ms·
One suggestion - it would be really cool to allow FFI. Something like <script type="text/javascript"> const foo = (bar) => { document.getEle
by gemstones 3y ago
One suggestion - it would be really cool to allow FFI. Something like
<script type="text/javascript">
const foo = (bar) => {
document.getElementById('my-element');
// More here!
};
</script>
That way you could really leverage the full power of HTML, the programming language!
- cantSpellSober 3y agoThe contents should be wrapped in a dangerouslySetInnerJS attr to prevent XSS
- recursivedoubts 3y agoHTML, the programming language, is fully interoperable w/ JavaScript, the programming langauge (sic): https://html-lang.org/#js https://html-lang.org/#js functions defined in HTML, the programming language, can be invoked by JavaScript, the programming language (sic) and vice versa.