Giter Site home page Giter Site logo

dompatch's People

Contributors

jesseskinner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dompatch's Issues

Deal with attributes (eg. type, name) that the browser refuses to change.

You usually can't change the type of an input, so I'll need to test that and maybe have a special condition on input elements.

Apparently older Internet Explorer won't allow the name attribute to change either so will need to test that.

Perhaps a generic solution would be to catch errors in updating attributes or child nodes, and simply revert to replacing the element in that case. That'd probably make it future-proof in case HTML6+ introduces any read-only attributes or other such restrictions.

Garbage collection can be brutally slow

If we're generating and abandoning a large number of documents and nodes in a short time, garbage collection can be a major performance bottleneck.

Technically, this problem is out of the scope of this project, as dompatch only compares two documents/elements and updates them accordingly. But in practical terms, it'd be great to have an example that gets around this bottleneck, and the solution may likely need changes made to dompatch to allow this workaround.

Alternatively, this may be an acceptable limitation of dompatch's overall approach. If so, we may need to add a warning about it, that dompatch can be janky in some circumstances.

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.