hyperx
hyperx copied to clipboard
inline <style> tags that include direct descendant css selectors break parsing
oy.js:
var vdom = require('virtual-dom')
var hyperx = require('hyperx')
var hx = hyperx(vdom.h)
const tree = hx`<div>
<style>
.test > ul {
background-color: red;
}
</style>
</div>`
const r = vdom.create(tree).toString()
console.error(r)
output:
➜ node oy.js
<div>
<style> ul {
background-color: red;
}
</style>
</div>
➜