hyperscript icon indicating copy to clipboard operation
hyperscript copied to clipboard

Defined styles are not output by outerHTML

Open guiprav opened this issue 8 years ago • 2 comments

  • Node version: 6.2.0.
  • Hyperscript version: 1.4.7.

Steps to reproduce: Evaluate h('div', 'Test', { style: { display: 'none' } }).outerHTML

Expected: <div style="display: none">Test</div> (or something like that).

Got: <div>Test</div>

Am I missing something?

guiprav avatar Aug 09 '16 00:08 guiprav

This is running in node, right? so I think this bug is in https://github.com/1N50MN14/html-element can you post an issue there?

dominictarr avatar Aug 09 '16 10:08 dominictarr

Sure, thanks, but it looks like I'll have to try to make a PR for him, see https://github.com/1N50MN14/html-element/issues/31#issuecomment-237308344 :)

guiprav avatar Aug 09 '16 15:08 guiprav