hyperscript icon indicating copy to clipboard operation
hyperscript copied to clipboard

Create HyperText with JavaScript.

Results 43 hyperscript issues
Sort by recently updated
recently updated
newest added

Hey, If I want to include custom attributes, it won't add them to the attributes array. I understand why, however sometimes it's important. Also, if my code looks like that:...

after cloning and opening index.html, the page is blank and the following errors are shown in the console: ``` Uncaught ReferenceError: require is not defined at index.js:1 index.html:15 Uncaught TypeError:...

I've got a project that uses JSDOM for some server-side DOM processing, and tests that emulated that environment by me adding JSDOM globals to Node's global scope and then using...

The tests seem to throw many errors: ```sh > [email protected] test /Users/dmitrizaitsev/Repos/hyperscript > set -e; for t in test/*.js; do node $t; done TAP version 13 # simple ok 1...

It could be nice if we could just pass one object, that contains a `tag` and `children` properties, like so: ``` javascript h({ tag: 'a', class: 'prev', href: prev.url, children:...

``` h('div#menu', { style: { 'background-color': '#2f2', 'opacity': 1 } }) ``` This won't work, style property's value must be string.

https://github.com/1N50MN14/html-element/commit/94f96bf08ddb3ec77206abac4be97a32772e8c3c Would be great if that requirement was also specified in the package-json here (or html-element dependency was specified to `2.0.0`, as opposed to `^2.0.0`).

I've found that when using number values in hyperscript it's normally a pixel value. would it make sense to just interpret a number as a pixel value? @juliangruber @Raynos @pfraze...

as of now there is no way to do something like this — ``` jsx ``` Can hyperscript support custom attributes as well? This is extremely useful when writing webcomponents....

- Node version: 6.2.0. - Hyperscript version: 1.4.7. Steps to reproduce: Evaluate `h('div', 'Test', { style: { display: 'none' } }).outerHTML` Expected: `Test` (or something like that). Got: `Test` Am...