diff-renderer
diff-renderer copied to clipboard
urls in style tags break
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?
hah, didn't know someone is using this project, its an experiment, not battle tested, I would merge a pr though.
Cool, I'm happy to create one. Where would you start looking? ;)
Never mind, I found it. It's a problem with the serialize-html
. The slashes seems to be treated as closing tags. I think an exception for style and script tags could do it since they can't have children anyways.
slashes are possible anywhere
True that, I thought they would get encoded by the browser parser for some reason.