├── .gitignore
├── .npmignore
├── .travis.yml
├── LICENSE
├── README.md
├── basichtml.js
├── logo
├── basichtml.inkscape.svg
├── basichtml.png
└── basichtml.svg
├── package.json
├── src
├── Attr.js
├── CSSStyleDeclaration.js
├── CharacterData.js
├── ChildNode.js
├── Comment.js
├── CustomElementRegistry.js
├── CustomEvent.js
├── DOMStringMap.js
├── DOMTokenList.js
├── Document.js
├── DocumentFragment.js
├── DocumentType.js
├── Element.js
├── Event.js
├── EventTarget.js
├── HTMLCanvasElement.js
├── HTMLElement.js
├── HTMLHtmlElement.js
├── HTMLImageElement.js
├── HTMLNoComments.js
├── HTMLStyleElement.js
├── HTMLTemplateElement.js
├── HTMLTextAreaElement.js
├── HTMLUnknownElement.js
├── Image.js
├── ImageFactory.js
├── ImagePrototype.js
├── NamedNodeMap.js
├── Node.js
├── NodeFilter.js
├── ParentNode.js
├── Range.js
├── Text.js
├── TreeWalker.js
└── utils.js
├── test
├── all.js
├── custom-element.js
├── html.js
├── hyperhtml.js
├── issue-56.js
├── many-rows.js
├── sizzle.js
├── style.js
├── textarea.js
├── void.js
└── xmlish.js
└── web.js
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | coverage/
3 | .nyc_output/
4 | package-lock.json
5 |
6 |
--------------------------------------------------------------------------------
/.npmignore:
--------------------------------------------------------------------------------
1 | .nyc_output/*
2 | coverage/*
3 | logo/*
4 | node_modules/*
5 | test/*
6 | .DS_Store
7 | .gitignore
8 | .travis.yml
9 | package-lock.json
10 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - 13
4 | git:
5 | depth: 1
6 | branches:
7 | only:
8 | - master
9 | - /^greenkeeper/.*$/
10 | after_success:
11 | - "npm run coveralls"
12 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | ISC License
2 |
3 | Copyright (c) 2017-2020, Andrea Giammarchi, @WebReflection
4 |
5 | Permission to use, copy, modify, and/or distribute this software for any
6 | purpose with or without fee is hereby granted, provided that the above
7 | copyright notice and this permission notice appear in all copies.
8 |
9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
10 | REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11 | AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
12 | INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13 | LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14 | OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15 | PERFORMANCE OF THIS SOFTWARE.
16 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # basicHTML
2 |
3 | [](https://coveralls.io/github/WebReflection/basicHTML?branch=master)
4 | [](https://travis-ci.org/WebReflection/basicHTML)
5 | [](https://opensource.org/licenses/ISC)
6 |
7 |
8 | ## 📣 Announcement
9 |
10 | Be aware there is a shiny new module called **[LinkeDOM](https://github.com/WebReflection/linkedom#readme)** which is completely different, but better than *basicHTML*, at pretty much everything.
11 |
12 | All modules of mine are going to use *linkedom* instead, and *basicHTML* will be soon deprecated or put in maintainance mode.
13 |
14 | Feel free to read the [related post](https://webreflection.medium.com/linkedom-a-jsdom-alternative-53dd8f699311) to know more about this decision.
15 |
16 | - - -
17 |
18 | A NodeJS based, standard oriented, HTML implementation.
19 |
20 |
21 |
22 |
23 | ### Breaking V2 Changes
24 |
25 | As the `canvas` module brought in ~100MB of dependency, and as it's not even a common use case, I've decided to move the `canvas` package into `devDependencies`, so that you need to explicitly include it when you use _basicHTML_.
26 |
27 | ```js
28 | npm i basichtml canvas
29 | ```
30 |
31 | By default, no `canvas` module will be installed at all.
32 |
33 |
34 | ### New in v1
35 |
36 | Introduced optional [node-canvas](https://www.npmjs.com/package/canvas) dependency behind the `