Giter VIP home page Giter VIP logo

Comments (9)

developit avatar developit commented on May 12, 2024 6

I have a custom parser I've converted htm over to, I'll publish it soon. Should run in any JS environment.

from htm.

developit avatar developit commented on May 12, 2024 5

It's necessary to avoid scripts running and Custom Elements being upgraded. The other option was to use DOMParser, but text/html wasn't supported by Safari until kinda recently.

from htm.

TejasQ avatar TejasQ commented on May 12, 2024 1

I'd +1 this because it'd be kind of cool to generate HTML (using vhtml in conjuction with this) on the server side for server-rendered UIs. Because of the dependency on document, this doesn't quite work in a node environment without extra dependencies, unless there's something I'm missing.

from htm.

TejasQ avatar TejasQ commented on May 12, 2024 1

Yes. Unfortunately though, I'm profiling performance (for science) and I'm afraid of adding overhead to my benchmarks. Oh well, I'm sure OUR BOI Jason will come up with something cool soon.

from htm.

tunnckoCore avatar tunnckoCore commented on May 12, 2024

I tried some mini dom implementations, such as nodom and undom and my one mindom, but non of them work. Strangely you can create template tag, but it not works for some reason ;d

So, I assume the only case is using jsdom, which is big but at least it is guaranteed to work.

from htm.

TejasQ avatar TejasQ commented on May 12, 2024

Dang, that was fast. Thank you! πŸ™

from htm.

azl397985856 avatar azl397985856 commented on May 12, 2024

I have a custom parser I've converted htm over to, I'll publish it soon. Should run in any JS environment.

too much to expect

from htm.

tunnckoCore avatar tunnckoCore commented on May 12, 2024

Cool. We can close, because v2. ;]

from htm.

TejasQ avatar TejasQ commented on May 12, 2024

@developit I love you ❀️

from htm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.