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

Looks like any element created with an event handler in its props is not going to get gc'd unless you manually call "cleanup." The "cleanupFuncs" array has references in the...

[Deno](https://deno.land) is a new JS server environment that was created from ground up in attempt to fix Node.js's drawbacks. It looks like this library somehow confused it with a browser...

Treat false attribute values like null/undefined I noticed that when an attribute value is `null` or `undefined`, it's omitted entirely: const x = require('hyperaxe') x.input({name: null, id: undefined, type: 'a'}).outerHTML...

Before this commit, the following code: const h = require('hyperscript') h('.c1.c2', {class: 'c2 c3'}, 'Hello').outerHTML ...yields: 'Hello' This is actually incorrect HTML according to the [W3C Markup Validator](https://validator.w3.org/#validate_by_input). The correct...

It's funny how if you used hyperscript and observables at the correct levels of abstraction, you could very easily build something like angular. And that doing it using these libraries...

I'm creating an `Element` using ... `let node = h('a', { 'attributes': { 'href': 'http:www.google.com' } }, 'Google')` ... which is the style of hyperscript generated by [html-to-hyperscript](https://github.com/ivan-kleshnin/html-to-hyperscript) and [html2hscript](https://github.com/twilson63/html2hscript)....

Improves support for `aria-*` attributes without having to nest in `attrs`. Implementation is the same as `data-*` attributes.

The example in the README shows (selector, content, attributes). ``` h('h1.classy', 'h', { style: {'background-color': '#22f'} })) ``` But the API documentation shows (selector, attributes, content). ``` h (tag, attrs,...

Anyone know why this might be happening? ```javascript const h = require("hyperscript"); const el = h("input", { type: "text", minlength: 42, maxlength: 420 }); console.log(el.outerHTML); ``` ```html ```

Custom tag's innerHTML doesn't work as argument, but does work as innerHTML attribute. This doesn't work ``` console.log(h("template", {attrs: {slot: "button-content"}}, [ h("i.fas.fa-school.nav-icon", {attrs: { style: "transform: scale(0.8); margin-left: -0.1em;",...