hyperx icon indicating copy to clipboard operation
hyperx copied to clipboard

inline <style> tags that include direct descendant css selectors break parsing

Open mreinstein opened this issue 2 years ago • 0 comments

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>

➜ 

mreinstein avatar Jan 01 '22 03:01 mreinstein