Skip to content

Commit

Permalink
no misleading default
Browse files Browse the repository at this point in the history
  • Loading branch information
WebReflection committed Nov 14, 2023
1 parent b5b78b8 commit eda3bd5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* `uhtml` as default `{ Hole, render, html, svg, attr }` with smart auto-keyed nodes - read [keyed or not keyed](https://webreflection.github.io/uhtml/#tag) to know more
* `uhtml/keyed` with extras `{ Hole, render, html, svg, htmlFor, svgFor, attr }`, providing keyed utilities - read [keyed or not keyed](https://webreflection.github.io/uhtml/#tag) to know more
* `uhtml/node` with *same default* exports but it's for *one-off* nodes creation only so that no cache or updates are available and it's just an easy way to hook *uhtml* into your existing project for DOM creation (not manipulation!)
* `uhtml/init` which returns a default `document => uhtml/keyed` utility that can be bootstrapped with [LinkeDOM](https://github.com/WebReflection/linkedom), [JSDOM](https://github.com/jsdom/jsdom), or *Workers* support
* `uhtml/init` which returns a `document => uhtml/keyed` utility that can be bootstrapped with [LinkeDOM](https://github.com/WebReflection/linkedom), [JSDOM](https://github.com/jsdom/jsdom), or *Workers* support

**uhtml/init example**

Expand Down
3 changes: 1 addition & 2 deletions test/coverage.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ const {DOMParser, HTMLElement} = require('linkedom');

const document = (new DOMParser).parseFromString('<html />', 'text/html');
const { prototype } = document.createRange().constructor;
const { selectNode } = prototype;
prototype.selectNodeContents = selectNode;
prototype.selectNodeContents = prototype.selectNode;

const { render, html, svg, htmlFor } = require('../cjs/init.js')(document);

Expand Down

0 comments on commit eda3bd5

Please sign in to comment.