UNPKG

parse5

Version:

WHATWG HTML5 specification-compliant, fast and ready for production HTML parsing/serialization toolset for Node.

43 lines (31 loc) 1.55 kB
## 1.2.0 * Add: `<template>` support * `parseFragment` now uses `<template>` as default `contextElement`. This leads to the more "forgiving" parsing manner. * `TreeSerializer` was renamed to `Serializer`. However, serializer is accessible as `parse5.TreeSerializer` for backward compatibility . ## 1.1.6 * Fix: apply latest changes to the `htmlparser2` tree format (DOM Level1 node emulation). ## 1.1.5 * Add: [jsdom](https://github.com/tmpvar/jsdom)-specific parser with scripting support. Undocumented for `jsdom` internal use only. ## 1.1.4 * Add: logo * Fix: use fake `document` element for fragment parsing (required by [jsdom](https://github.com/tmpvar/jsdom)). ## 1.1.3 * Development files (e.g. `.travis.yml`, `.editorconfig`) are removed from NPM package. ## 1.1.2 * Fix: crash on Linux due to upper-case leading character in module name used in `require()` ## 1.1.1 * Add: [SimpleApiParser](https://github.com/inikulin/parse5/#class-simpleapiparser) * Fix: new line serialization in `<pre>` * Fix: `SYSTEM`-only `DOCTYPE` serialization * Fix: quotes serialization in `DOCTYPE` IDs ## 1.0.0 * First stable release, switch to semantic versioning. ## 0.8.3 * Fix: siblings calculation bug in `appendChild` in `htmlparser2` tree adapter. ## 0.8.1 * Add: [TreeSerializer](https://github.com/inikulin/parse5/#class-serializer). * Add: [htmlparser2 tree adapter](https://github.com/inikulin/parse5/#-treeadaptershtmlparser2). ## 0.6.1 * Fix: incorrect `<menuitem>` handling in `<body>`. ## 0.6.0 * Initial release.