Giter VIP home page Giter VIP logo

Comments (4)

WebReflection avatar WebReflection commented on May 18, 2024

Node is already a DOM element so Node#toDOM looks redundant to me. toHTML looks like outerHTML property to me ... how about mocking on the server through require? that was my proposal about .. var document; if(!document) document = require('./document').document; which will work with node and browsers, isn't it?

from domo.

jed avatar jed commented on May 18, 2024

one problem is that it probably makes sense for the browser to generate HTML as well, since it's apparently much faster doing that than using DOM operations to create element for IE < 9, which means the HTML needs to be generated without a DOM.

is the perf improvement on IE worth the abstraction for everyone else?

from domo.

jed avatar jed commented on May 18, 2024

(if not, your approach is certainly the best!)

from domo.

WebReflection avatar WebReflection commented on May 18, 2024

this library looks a one shot operation per template, not a library to manipulate DOM, isn't it? I would not bother too much about IE < 9 then, those browsers are going to disappear soon while IE 10 for W8 requires already hell of hardware so it's going to be fast. Said that, I would try to understand adoption percentage and where ( client or server or both ) and when IE will become a bottleneck, if ever, you can improve it :-)

from domo.

Related Issues (9)

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.