parse5 1.5.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +69 -66
- package/docs/build/index.md +963 -0
- package/lib/common/doctype.js +134 -134
- package/lib/serialization/serializer.js +178 -179
- package/lib/simple_api/simple_api_parser.js +107 -107
- package/lib/simple_api/tokenizer_proxy.js +122 -122
- package/lib/tokenization/named_entity_trie.js +1 -54
- package/lib/tokenization/preprocessor.js +115 -115
- package/lib/tree_adapters/htmlparser2.js +317 -317
- package/lib/tree_construction/location_info_mixin.js +197 -197
- package/lib/tree_construction/parser.js +2827 -2827
- package/package.json +47 -47
package/CHANGELOG.md
CHANGED
|
@@ -1,66 +1,69 @@
|
|
|
1
|
-
## 1.5.
|
|
2
|
-
*
|
|
3
|
-
|
|
4
|
-
## 1.
|
|
5
|
-
*
|
|
6
|
-
|
|
7
|
-
## 1.4.
|
|
8
|
-
* Fix:
|
|
9
|
-
|
|
10
|
-
## 1.4.
|
|
11
|
-
*
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
* Add:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
*
|
|
18
|
-
|
|
19
|
-
## 1.3.
|
|
20
|
-
* Fix:
|
|
21
|
-
|
|
22
|
-
## 1.3.
|
|
23
|
-
*
|
|
24
|
-
|
|
25
|
-
## 1.
|
|
26
|
-
* Add:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
*
|
|
32
|
-
|
|
33
|
-
## 1.1.
|
|
34
|
-
*
|
|
35
|
-
|
|
36
|
-
## 1.1.
|
|
37
|
-
* Add:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
*
|
|
42
|
-
|
|
43
|
-
## 1.1.
|
|
44
|
-
*
|
|
45
|
-
|
|
46
|
-
## 1.1.
|
|
47
|
-
*
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
*
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
*
|
|
54
|
-
|
|
55
|
-
## 0.
|
|
56
|
-
*
|
|
57
|
-
|
|
58
|
-
## 0.8.
|
|
59
|
-
*
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
*
|
|
64
|
-
|
|
65
|
-
## 0.6.
|
|
66
|
-
*
|
|
1
|
+
## 1.5.1
|
|
2
|
+
* Fix: Qualified tag name emission in Serializer (GH [#79](https://github.com/inikulin/parse5/issues/79)).
|
|
3
|
+
|
|
4
|
+
## 1.5.0
|
|
5
|
+
* Add: Location info for the element start and end tags (by @sakagg).
|
|
6
|
+
|
|
7
|
+
## 1.4.2
|
|
8
|
+
* Fix: htmlparser2 tree adapter `DocumentType.data` property rendering (GH [#45](https://github.com/inikulin/parse5/issues/45)).
|
|
9
|
+
|
|
10
|
+
## 1.4.1
|
|
11
|
+
* Fix: Location info handling for the implicitly generated `<html>` and `<body>` elements (GH [#44](https://github.com/inikulin/parse5/issues/44)).
|
|
12
|
+
|
|
13
|
+
## 1.4.0
|
|
14
|
+
* Add: Parser [decodeHtmlEntities](https://github.com/inikulin/parse5#optionsdecodehtmlentities) option.
|
|
15
|
+
* Add: SimpleApiParser [decodeHtmlEntities](https://github.com/inikulin/parse5#optionsdecodehtmlentities-1) option.
|
|
16
|
+
* Add: Parser [locationInfo](https://github.com/inikulin/parse5#optionslocationinfo) option.
|
|
17
|
+
* Add: SimpleApiParser [locationInfo](https://github.com/inikulin/parse5#optionslocationinfo-1) option.
|
|
18
|
+
|
|
19
|
+
## 1.3.2
|
|
20
|
+
* Fix: `<form>` processing in `<template>` (GH [#40](https://github.com/inikulin/parse5/issues/40)).
|
|
21
|
+
|
|
22
|
+
## 1.3.1
|
|
23
|
+
* Fix: text node in `<template>` serialization problem with custom tree adapter (GH [#38](https://github.com/inikulin/parse5/issues/38)).
|
|
24
|
+
|
|
25
|
+
## 1.3.0
|
|
26
|
+
* Add: Serializer `encodeHtmlEntities` option.
|
|
27
|
+
|
|
28
|
+
## 1.2.0
|
|
29
|
+
* Add: `<template>` support
|
|
30
|
+
* `parseFragment` now uses `<template>` as default `contextElement`. This leads to the more "forgiving" parsing manner.
|
|
31
|
+
* `TreeSerializer` was renamed to `Serializer`. However, serializer is accessible as `parse5.TreeSerializer` for backward compatibility .
|
|
32
|
+
|
|
33
|
+
## 1.1.6
|
|
34
|
+
* Fix: apply latest changes to the `htmlparser2` tree format (DOM Level1 node emulation).
|
|
35
|
+
|
|
36
|
+
## 1.1.5
|
|
37
|
+
* Add: [jsdom](https://github.com/tmpvar/jsdom)-specific parser with scripting support. Undocumented for `jsdom` internal use only.
|
|
38
|
+
|
|
39
|
+
## 1.1.4
|
|
40
|
+
* Add: logo
|
|
41
|
+
* Fix: use fake `document` element for fragment parsing (required by [jsdom](https://github.com/tmpvar/jsdom)).
|
|
42
|
+
|
|
43
|
+
## 1.1.3
|
|
44
|
+
* Development files (e.g. `.travis.yml`, `.editorconfig`) are removed from NPM package.
|
|
45
|
+
|
|
46
|
+
## 1.1.2
|
|
47
|
+
* Fix: crash on Linux due to upper-case leading character in module name used in `require()`.
|
|
48
|
+
|
|
49
|
+
## 1.1.1
|
|
50
|
+
* Add: [SimpleApiParser](https://github.com/inikulin/parse5/#class-simpleapiparser).
|
|
51
|
+
* Fix: new line serialization in `<pre>`.
|
|
52
|
+
* Fix: `SYSTEM`-only `DOCTYPE` serialization.
|
|
53
|
+
* Fix: quotes serialization in `DOCTYPE` IDs.
|
|
54
|
+
|
|
55
|
+
## 1.0.0
|
|
56
|
+
* First stable release, switch to semantic versioning.
|
|
57
|
+
|
|
58
|
+
## 0.8.3
|
|
59
|
+
* Fix: siblings calculation bug in `appendChild` in `htmlparser2` tree adapter.
|
|
60
|
+
|
|
61
|
+
## 0.8.1
|
|
62
|
+
* Add: [TreeSerializer](https://github.com/inikulin/parse5/#class-serializer).
|
|
63
|
+
* Add: [htmlparser2 tree adapter](https://github.com/inikulin/parse5/#-treeadaptershtmlparser2).
|
|
64
|
+
|
|
65
|
+
## 0.6.1
|
|
66
|
+
* Fix: incorrect `<menuitem>` handling in `<body>`.
|
|
67
|
+
|
|
68
|
+
## 0.6.0
|
|
69
|
+
* Initial release.
|