kof / diff-renderer Goto Github PK
View Code? Open in Web Editor NEWSmart innerHTML for your views.
Home Page: http://kof.github.io/diff-renderer/
License: MIT License
Smart innerHTML for your views.
Home Page: http://kof.github.io/diff-renderer/
License: MIT License
I'm unable to update an element with an SVG and get it to actually render. Using the Inspector, the DOM shows an svg element, but it is never rendered to screen.
Example:
Go to the playground and add a basic svg element to the "New html" input and click "Render diff".
Here is the svg I added: <svg width="400" height="180"> <rect x="50" y="20" width="150" height="150" style="fill:blue;stroke:pink;stroke-width:5;fill-opacity:0.1;stroke-opacity:0.9" /> </svg>
https://s3.amazonaws.com/zwss/DiffRenderer_playground._2020-09-02_14-58-40.png
When I update element containing style urls I get weird results, for example:
<style>
div {
background-image: url(http://some.image.jpg)
}
</style>
becomes:
<style>
div {
background-image: url(http:</style>
Am I missing something?
f.e. use tests from sax-js
Ensure every dom node has always just one virtual node so that changes are always applied just once.
Its usefull when dom has changed from external lib.
When insert a node at the beginning, it causes modifications to all downstream nodes. This needs to be optimized.
Hello there!
I am wondering situations when to create more instances manually.
If there's no possible benefits from making more than one instance, I will definitely render all of my things with new DiffRenderer(document.body)
.
What do you think?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.