top | item 38522094

(no title)

gemstones | 2 years 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!

discuss

order

cantSpellSober|2 years ago

The contents should be wrapped in a dangerouslySetInnerJS attr to prevent XSS

recursivedoubts|2 years ago

HTML, the programming language, is fully interoperable w/ JavaScript, the programming langauge (sic):

https://html-lang.org/#js

functions defined in HTML, the programming language, can be invoked by JavaScript, the programming language (sic) and vice versa.