|
1 | 1 | # Version history
|
2 | 2 |
|
| 3 | +## 2.2.0 |
| 4 | +* SAXParser (by [@RReverser](https://github.com/RReverser)) |
| 5 | + * Fixed: Handling of `\n` in `<pre>`, `<textarea>` and `<listing>`. |
| 6 | + * Fixed: Tag names and attribute names adjustment in foreign content (GH [#99](https://github.com/inikulin/parse5/issues/99)). |
| 7 | + * Fixed: Handling of `<image>`. |
| 8 | + |
| 9 | +* Latest spec changes |
| 10 | + * Updated: `<isindex>` now don't have special handling (GH [#122](https://github.com/inikulin/parse5/issues/122)). |
| 11 | + * Updated: Adoption agency algorithm now preserves lexical order of text nodes (GH [#129](https://github.com/inikulin/parse5/issues/129)). |
| 12 | + * Updated: `<menuitem>` now behaves like `<option>`. |
| 13 | + |
| 14 | +* Fixed: Element nesting corrections now take namespaces into consideration. |
| 15 | + |
3 | 16 | ## 2.1.5
|
4 | 17 | * Fixed: ParserStream accidentally hangs up on scripts (GH [#101](https://github.com/inikulin/parse5/issues/101)).
|
5 | 18 |
|
|
17 | 30 | (by [@yyx990803](https://github.com/yyx990803)).
|
18 | 31 |
|
19 | 32 | ## 2.1.0
|
20 |
| - * Add: location info for attributes (GH [#43](https://github.com/inikulin/parse5/issues/43)) (by [@sakagg](https://github.com/sakagg) |
| 33 | + * Added: location info for attributes (GH [#43](https://github.com/inikulin/parse5/issues/43)) (by [@sakagg](https://github.com/sakagg) |
21 | 34 | and [@yyx990803](https://github.com/yyx990803)).
|
22 | 35 | * Fixed: `parseFragment` with `locationInfo` regression when parsing `<template>`(GH [#90](https://github.com/inikulin/parse5/issues/90))
|
23 | 36 | (by [@yyx990803](https://github.com/yyx990803)).
|
|
29 | 42 | * Fixed: `parseFragment` arguments processing (GH [#82](https://github.com/inikulin/parse5/issues/82)).
|
30 | 43 |
|
31 | 44 | ## 2.0.0
|
32 |
| - * Add: [ParserStream](https://github.com/inikulin/parse5/wiki/Documentation#parse5+ParserStream) with the scripting support. (GH [#26](https://github.com/inikulin/parse5/issues/26)). |
33 |
| - * Add: [SerializerStream](https://github.com/inikulin/parse5/wiki/Documentation#parse5+SerializerStream). (GH [#26](https://github.com/inikulin/parse5/issues/26)). |
34 |
| - * Add: Line/column location info. (GH [#67](https://github.com/inikulin/parse5/issues/67)). |
| 45 | + * Added: [ParserStream](https://github.com/inikulin/parse5/wiki/Documentation#parse5+ParserStream) with the scripting support. (GH [#26](https://github.com/inikulin/parse5/issues/26)). |
| 46 | + * Added: [SerializerStream](https://github.com/inikulin/parse5/wiki/Documentation#parse5+SerializerStream). (GH [#26](https://github.com/inikulin/parse5/issues/26)). |
| 47 | + * Added: Line/column location info. (GH [#67](https://github.com/inikulin/parse5/issues/67)). |
35 | 48 | * Update (**breaking**): Location info properties `start` and `end` were renamed to `startOffset` and `endOffset` respectively.
|
36 | 49 | * Update (**breaking**): `SimpleApiParser` was renamed to [SAXParser](https://github.com/inikulin/parse5/wiki/Documentation#parse5+SAXParser).
|
37 | 50 | * Update (**breaking**): [SAXParser](https://github.com/inikulin/parse5/wiki/Documentation#parse5+SAXParser) is the [transform stream](https://nodejs.org/api/stream.html#stream_class_stream_transform)
|
38 | 51 | now. (GH [#26](https://github.com/inikulin/parse5/issues/26)).
|
39 | 52 | * Update (**breaking**): [SAXParser](https://github.com/inikulin/parse5/wiki/Documentation#parse5+SAXParser) handler subscription is done via events now.
|
40 |
| - * Add: [SAXParser.stop()](https://github.com/inikulin/parse5/wiki/Documentation#parse5+SAXParser+stop). (GH [#47](https://github.com/inikulin/parse5/issues/47)). |
| 53 | + * Added: [SAXParser.stop()](https://github.com/inikulin/parse5/wiki/Documentation#parse5+SAXParser+stop). (GH [#47](https://github.com/inikulin/parse5/issues/47)). |
41 | 54 | * Add (**breaking**): [parse5.parse()](https://github.com/inikulin/parse5/wiki/Documentation#parse5+parse) and [parse5.parseFragment()](https://github.com/inikulin/parse5/wiki/Documentation#parse5+parseFragment)
|
42 | 55 | methods as replacement for the `Parser` class.
|
43 | 56 | * Add (**breaking**): [parse5.serialize()](https://github.com/inikulin/parse5/wiki/Documentation#parse5+serialized) method as replacement for the `Serializer` class.
|
44 |
| - * Update: parsing algorithm was updated with the latest [HTML spec](https://html.spec.whatwg.org/) changes. |
45 |
| - * Remove (**breaking**): `decodeHtmlEntities` and `encodeHtmlEntities` options. (GH [#75](https://github.com/inikulin/parse5/issues/75)). |
| 57 | + * Updated: parsing algorithm was updated with the latest [HTML spec](https://html.spec.whatwg.org/) changes. |
| 58 | + * Removed (**breaking**): `decodeHtmlEntities` and `encodeHtmlEntities` options. (GH [#75](https://github.com/inikulin/parse5/issues/75)). |
46 | 59 | * Add (**breaking**): [TreeAdapter.setTemplateContent()](https://github.com/inikulin/parse5/wiki/Documentation#TreeAdapter.setTemplateContent) and [TreeAdapter.getTemplateContent()](https://github.com/inikulin/parse5/wiki/Documentation#TreeAdapter.getTemplateContent) methods. (GH [#78](https://github.com/inikulin/parse5/issues/78)).
|
47 | 60 | * Update (**breaking**): `default` tree adapter now stores `<template>` content in `template.content` property instead of `template.childNodes[0]`.
|
48 | 61 |
|
49 | 62 | ## 1.5.1
|
50 |
| - * Fix: Qualified tag name emission in Serializer (GH [#79](https://github.com/inikulin/parse5/issues/79)). |
| 63 | + * Fixed: Qualified tag name emission in Serializer (GH [#79](https://github.com/inikulin/parse5/issues/79)). |
51 | 64 |
|
52 | 65 | ## 1.5.0
|
53 |
| - * Add: Location info for the element start and end tags (by [@sakagg](https://github.com/sakagg)). |
| 66 | + * Added: Location info for the element start and end tags (by [@sakagg](https://github.com/sakagg)). |
54 | 67 |
|
55 | 68 | ## 1.4.2
|
56 |
| - * Fix: htmlparser2 tree adapter `DocumentType.data` property rendering (GH [#45](https://github.com/inikulin/parse5/issues/45)). |
| 69 | + * Fixed: htmlparser2 tree adapter `DocumentType.data` property rendering (GH [#45](https://github.com/inikulin/parse5/issues/45)). |
57 | 70 |
|
58 | 71 | ## 1.4.1
|
59 |
| - * Fix: Location info handling for the implicitly generated `<html>` and `<body>` elements (GH [#44](https://github.com/inikulin/parse5/issues/44)). |
| 72 | + * Fixed: Location info handling for the implicitly generated `<html>` and `<body>` elements (GH [#44](https://github.com/inikulin/parse5/issues/44)). |
60 | 73 |
|
61 | 74 | ## 1.4.0
|
62 |
| - * Add: Parser [decodeHtmlEntities](https://github.com/inikulin/parse5#optionsdecodehtmlentities) option. |
63 |
| - * Add: SimpleApiParser [decodeHtmlEntities](https://github.com/inikulin/parse5#optionsdecodehtmlentities-1) option. |
64 |
| - * Add: Parser [locationInfo](https://github.com/inikulin/parse5#optionslocationinfo) option. |
65 |
| - * Add: SimpleApiParser [locationInfo](https://github.com/inikulin/parse5#optionslocationinfo-1) option. |
| 75 | + * Added: Parser [decodeHtmlEntities](https://github.com/inikulin/parse5#optionsdecodehtmlentities) option. |
| 76 | + * Added: SimpleApiParser [decodeHtmlEntities](https://github.com/inikulin/parse5#optionsdecodehtmlentities-1) option. |
| 77 | + * Added: Parser [locationInfo](https://github.com/inikulin/parse5#optionslocationinfo) option. |
| 78 | + * Added: SimpleApiParser [locationInfo](https://github.com/inikulin/parse5#optionslocationinfo-1) option. |
66 | 79 |
|
67 | 80 | ## 1.3.2
|
68 |
| - * Fix: `<form>` processing in `<template>` (GH [#40](https://github.com/inikulin/parse5/issues/40)). |
| 81 | + * Fixed: `<form>` processing in `<template>` (GH [#40](https://github.com/inikulin/parse5/issues/40)). |
69 | 82 |
|
70 | 83 | ## 1.3.1
|
71 |
| - * Fix: text node in `<template>` serialization problem with custom tree adapter (GH [#38](https://github.com/inikulin/parse5/issues/38)). |
| 84 | + * Fixed: text node in `<template>` serialization problem with custom tree adapter (GH [#38](https://github.com/inikulin/parse5/issues/38)). |
72 | 85 |
|
73 | 86 | ## 1.3.0
|
74 |
| - * Add: Serializer `encodeHtmlEntities` option. |
| 87 | + * Added: Serializer `encodeHtmlEntities` option. |
75 | 88 |
|
76 | 89 | ## 1.2.0
|
77 |
| - * Add: `<template>` support |
| 90 | + * Added: `<template>` support |
78 | 91 | * `parseFragment` now uses `<template>` as default `contextElement`. This leads to the more "forgiving" parsing manner.
|
79 | 92 | * `TreeSerializer` was renamed to `Serializer`. However, serializer is accessible as `parse5.TreeSerializer` for backward compatibility .
|
80 | 93 |
|
81 | 94 | ## 1.1.6
|
82 |
| - * Fix: apply latest changes to the `htmlparser2` tree format (DOM Level1 node emulation). |
| 95 | + * Fixed: apply latest changes to the `htmlparser2` tree format (DOM Level1 node emulation). |
83 | 96 |
|
84 | 97 | ## 1.1.5
|
85 |
| - * Add: [jsdom](https://github.com/tmpvar/jsdom)-specific parser with scripting support. Undocumented for `jsdom` internal use only. |
| 98 | + * Added: [jsdom](https://github.com/tmpvar/jsdom)-specific parser with scripting support. Undocumented for `jsdom` internal use only. |
86 | 99 |
|
87 | 100 | ## 1.1.4
|
88 |
| - * Add: logo |
89 |
| - * Fix: use fake `document` element for fragment parsing (required by [jsdom](https://github.com/tmpvar/jsdom)). |
| 101 | + * Added: logo |
| 102 | + * Fixed: use fake `document` element for fragment parsing (required by [jsdom](https://github.com/tmpvar/jsdom)). |
90 | 103 |
|
91 | 104 | ## 1.1.3
|
92 | 105 | * Development files (e.g. `.travis.yml`, `.editorconfig`) are removed from NPM package.
|
93 | 106 |
|
94 | 107 | ## 1.1.2
|
95 |
| - * Fix: crash on Linux due to upper-case leading character in module name used in `require()`. |
| 108 | + * Fixed: crash on Linux due to upper-case leading character in module name used in `require()`. |
96 | 109 |
|
97 | 110 | ## 1.1.1
|
98 |
| - * Add: [SimpleApiParser](https://github.com/inikulin/parse5/#class-simpleapiparser). |
99 |
| - * Fix: new line serialization in `<pre>`. |
100 |
| - * Fix: `SYSTEM`-only `DOCTYPE` serialization. |
101 |
| - * Fix: quotes serialization in `DOCTYPE` IDs. |
| 111 | + * Added: [SimpleApiParser](https://github.com/inikulin/parse5/#class-simpleapiparser). |
| 112 | + * Fixed: new line serialization in `<pre>`. |
| 113 | + * Fixed: `SYSTEM`-only `DOCTYPE` serialization. |
| 114 | + * Fixed: quotes serialization in `DOCTYPE` IDs. |
102 | 115 |
|
103 | 116 | ## 1.0.0
|
104 | 117 | * First stable release, switch to semantic versioning.
|
105 | 118 |
|
106 | 119 | ## 0.8.3
|
107 |
| - * Fix: siblings calculation bug in `appendChild` in `htmlparser2` tree adapter. |
| 120 | + * Fixed: siblings calculation bug in `appendChild` in `htmlparser2` tree adapter. |
108 | 121 |
|
109 | 122 | ## 0.8.1
|
110 |
| - * Add: [TreeSerializer](https://github.com/inikulin/parse5/#class-serializer). |
111 |
| - * Add: [htmlparser2 tree adapter](https://github.com/inikulin/parse5/#-treeadaptershtmlparser2). |
| 123 | + * Added: [TreeSerializer](https://github.com/inikulin/parse5/#class-serializer). |
| 124 | + * Added: [htmlparser2 tree adapter](https://github.com/inikulin/parse5/#-treeadaptershtmlparser2). |
112 | 125 |
|
113 | 126 | ## 0.6.1
|
114 |
| - * Fix: incorrect `<menuitem>` handling in `<body>`. |
| 127 | + * Fixed: incorrect `<menuitem>` handling in `<body>`. |
115 | 128 |
|
116 | 129 | ## 0.6.0
|
117 | 130 | * Initial release.
|
0 commit comments