Skip to content

Commit

Permalink
Fixed: location.startTag is not available if end tag is missing. Bu…
Browse files Browse the repository at this point in the history
…mp version. (closes #181)
  • Loading branch information
inikulin committed Feb 25, 2017
1 parent f605e9b commit 969ed22
Show file tree
Hide file tree
Showing 39 changed files with 557 additions and 536 deletions.
3 changes: 3 additions & 0 deletions DOC_INDEX.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ Just try it in the latest version of your browser before submitting an issue.

## Version history

### 3.0.2
* Fixed: `location.startTag` is not available if end tag is missing (GH [#181](https://github.com/inikulin/parse5/issues/181));

### 3.0.1
* Fixed: `MarkupData.Location.col` description in TypeScript definition file (GH [#170](https://github.com/inikulin/parse5/issues/170));

Expand Down
2 changes: 1 addition & 1 deletion docs/assets/js/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/assets/js/search.js

Large diffs are not rendered by default.

137 changes: 61 additions & 76 deletions docs/classes/parserstream.html

Large diffs are not rendered by default.

137 changes: 61 additions & 76 deletions docs/classes/plaintextconversionstream.html

Large diffs are not rendered by default.

117 changes: 62 additions & 55 deletions docs/classes/saxparser.html

Large diffs are not rendered by default.

163 changes: 85 additions & 78 deletions docs/classes/serializerstream.html

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions docs/globals.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ <h3>tree<wbr>Adapters</h3>
<div class="tsd-signature tsd-kind-icon">tree<wbr>Adapters<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">object</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in index.d.ts:749</li>
<li>Defined in <a href="https://github.com/inikulin/parse5/blob/f605e9b/lib/index.d.ts#L749">index.d.ts:749</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -168,7 +168,7 @@ <h3>parse</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in index.d.ts:781</li>
<li>Defined in <a href="https://github.com/inikulin/parse5/blob/f605e9b/lib/index.d.ts#L781">index.d.ts:781</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -217,7 +217,7 @@ <h3>parse<wbr>Fragment</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in index.d.ts:805</li>
<li>Defined in <a href="https://github.com/inikulin/parse5/blob/f605e9b/lib/index.d.ts#L805">index.d.ts:805</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -267,7 +267,7 @@ <h4 class="tsd-returns-title">Returns <a href="modules/ast.html#documentfragment
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in index.d.ts:806</li>
<li>Defined in <a href="https://github.com/inikulin/parse5/blob/f605e9b/lib/index.d.ts#L806">index.d.ts:806</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -293,7 +293,7 @@ <h3>serialize</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in index.d.ts:830</li>
<li>Defined in <a href="https://github.com/inikulin/parse5/blob/f605e9b/lib/index.d.ts#L830">index.d.ts:830</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
4 changes: 4 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ <h3 id="q-i-have-some-weird-output-from-the-parser-seems-like-a-bug-">Q: I have
</code></pre>
<p>Just try it in the latest version of your browser before submitting an issue.</p>
<h2 id="version-history">Version history</h2>
<h3 id="3-0-2">3.0.2</h3>
<ul>
<li>Fixed: <code>location.startTag</code> is not available if end tag is missing (GH <a href="https://github.com/inikulin/parse5/issues/181">#181</a>);</li>
</ul>
<h3 id="3-0-1">3.0.1</h3>
<ul>
<li>Fixed: <code>MarkupData.Location.col</code> description in TypeScript definition file (GH <a href="https://github.com/inikulin/parse5/issues/170">#170</a>);</li>
Expand Down
8 changes: 4 additions & 4 deletions docs/interfaces/ast.default.attribute.html
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ <h3>name</h3>
<div class="tsd-signature tsd-kind-icon">name<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in index.d.ts:109</li>
<li>Defined in <a href="https://github.com/inikulin/parse5/blob/f605e9b/lib/index.d.ts#L109">index.d.ts:109</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -124,7 +124,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> namespace</h3>
<div class="tsd-signature tsd-kind-icon">namespace<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in index.d.ts:117</li>
<li>Defined in <a href="https://github.com/inikulin/parse5/blob/f605e9b/lib/index.d.ts#L117">index.d.ts:117</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -139,7 +139,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> prefix</h3>
<div class="tsd-signature tsd-kind-icon">prefix<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in index.d.ts:121</li>
<li>Defined in <a href="https://github.com/inikulin/parse5/blob/f605e9b/lib/index.d.ts#L121">index.d.ts:121</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -154,7 +154,7 @@ <h3>value</h3>
<div class="tsd-signature tsd-kind-icon">value<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in index.d.ts:113</li>
<li>Defined in <a href="https://github.com/inikulin/parse5/blob/f605e9b/lib/index.d.ts#L113">index.d.ts:113</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
8 changes: 4 additions & 4 deletions docs/interfaces/ast.default.commentnode.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> ___location</h3>
<div class="tsd-signature tsd-kind-icon">___location<span class="tsd-signature-symbol">:</span> <a href="markupdata.location.html" class="tsd-signature-type">Location</a></div>
<aside class="tsd-sources">
<ul>
<li>Defined in index.d.ts:239</li>
<li>Defined in <a href="https://github.com/inikulin/parse5/blob/f605e9b/lib/index.d.ts#L239">index.d.ts:239</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -129,7 +129,7 @@ <h3>data</h3>
<div class="tsd-signature tsd-kind-icon">data<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in index.d.ts:231</li>
<li>Defined in <a href="https://github.com/inikulin/parse5/blob/f605e9b/lib/index.d.ts#L231">index.d.ts:231</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -145,7 +145,7 @@ <h3>node<wbr>Name</h3>
<aside class="tsd-sources">
<p>Overrides <a href="ast.default.node.html">Node</a>.<a href="ast.default.node.html#nodename">nodeName</a></p>
<ul>
<li>Defined in index.d.ts:227</li>
<li>Defined in <a href="https://github.com/inikulin/parse5/blob/f605e9b/lib/index.d.ts#L227">index.d.ts:227</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -160,7 +160,7 @@ <h3>parent<wbr>Node</h3>
<div class="tsd-signature tsd-kind-icon">parent<wbr>Node<span class="tsd-signature-symbol">:</span> <a href="ast.default.parentnode.html" class="tsd-signature-type">ParentNode</a></div>
<aside class="tsd-sources">
<ul>
<li>Defined in index.d.ts:235</li>
<li>Defined in <a href="https://github.com/inikulin/parse5/blob/f605e9b/lib/index.d.ts#L235">index.d.ts:235</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
6 changes: 3 additions & 3 deletions docs/interfaces/ast.default.document.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ <h3>child<wbr>Nodes</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="ast.default.parentnode.html">ParentNode</a>.<a href="ast.default.parentnode.html#childnodes">childNodes</a></p>
<ul>
<li>Defined in index.d.ts:141</li>
<li>Defined in <a href="https://github.com/inikulin/parse5/blob/f605e9b/lib/index.d.ts#L141">index.d.ts:141</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -129,7 +129,7 @@ <h3>mode</h3>
<div class="tsd-signature tsd-kind-icon">mode<span class="tsd-signature-symbol">:</span> <a href="../modules/ast.html#documentmode" class="tsd-signature-type">DocumentMode</a></div>
<aside class="tsd-sources">
<ul>
<li>Defined in index.d.ts:177</li>
<li>Defined in <a href="https://github.com/inikulin/parse5/blob/f605e9b/lib/index.d.ts#L177">index.d.ts:177</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -144,7 +144,7 @@ <h3>node<wbr>Name</h3>
<div class="tsd-signature tsd-kind-icon">node<wbr>Name<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"#document"</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in index.d.ts:173</li>
<li>Defined in <a href="https://github.com/inikulin/parse5/blob/f605e9b/lib/index.d.ts#L173">index.d.ts:173</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
4 changes: 2 additions & 2 deletions docs/interfaces/ast.default.documentfragment.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ <h3>child<wbr>Nodes</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="ast.default.parentnode.html">ParentNode</a>.<a href="ast.default.parentnode.html#childnodes">childNodes</a></p>
<ul>
<li>Defined in index.d.ts:141</li>
<li>Defined in <a href="https://github.com/inikulin/parse5/blob/f605e9b/lib/index.d.ts#L141">index.d.ts:141</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -128,7 +128,7 @@ <h3>node<wbr>Name</h3>
<div class="tsd-signature tsd-kind-icon">node<wbr>Name<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"#document-fragment"</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in index.d.ts:187</li>
<li>Defined in <a href="https://github.com/inikulin/parse5/blob/f605e9b/lib/index.d.ts#L187">index.d.ts:187</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
8 changes: 4 additions & 4 deletions docs/interfaces/ast.default.documenttype.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ <h3>name</h3>
<div class="tsd-signature tsd-kind-icon">name<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in index.d.ts:155</li>
<li>Defined in <a href="https://github.com/inikulin/parse5/blob/f605e9b/lib/index.d.ts#L155">index.d.ts:155</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -130,7 +130,7 @@ <h3>node<wbr>Name</h3>
<aside class="tsd-sources">
<p>Overrides <a href="ast.default.node.html">Node</a>.<a href="ast.default.node.html#nodename">nodeName</a></p>
<ul>
<li>Defined in index.d.ts:151</li>
<li>Defined in <a href="https://github.com/inikulin/parse5/blob/f605e9b/lib/index.d.ts#L151">index.d.ts:151</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -145,7 +145,7 @@ <h3>public<wbr>Id</h3>
<div class="tsd-signature tsd-kind-icon">public<wbr>Id<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in index.d.ts:159</li>
<li>Defined in <a href="https://github.com/inikulin/parse5/blob/f605e9b/lib/index.d.ts#L159">index.d.ts:159</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -160,7 +160,7 @@ <h3>system<wbr>Id</h3>
<div class="tsd-signature tsd-kind-icon">system<wbr>Id<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in index.d.ts:163</li>
<li>Defined in <a href="https://github.com/inikulin/parse5/blob/f605e9b/lib/index.d.ts#L163">index.d.ts:163</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
14 changes: 7 additions & 7 deletions docs/interfaces/ast.default.element.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> ___location</h3>
<div class="tsd-signature tsd-kind-icon">___location<span class="tsd-signature-symbol">:</span> <a href="markupdata.elementlocation.html" class="tsd-signature-type">ElementLocation</a></div>
<aside class="tsd-sources">
<ul>
<li>Defined in index.d.ts:217</li>
<li>Defined in <a href="https://github.com/inikulin/parse5/blob/f605e9b/lib/index.d.ts#L217">index.d.ts:217</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -132,7 +132,7 @@ <h3>attrs</h3>
<div class="tsd-signature tsd-kind-icon">attrs<span class="tsd-signature-symbol">:</span> <a href="ast.default.attribute.html" class="tsd-signature-type">Attribute</a><span class="tsd-signature-symbol">[]</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in index.d.ts:209</li>
<li>Defined in <a href="https://github.com/inikulin/parse5/blob/f605e9b/lib/index.d.ts#L209">index.d.ts:209</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -148,7 +148,7 @@ <h3>child<wbr>Nodes</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="ast.default.parentnode.html">ParentNode</a>.<a href="ast.default.parentnode.html#childnodes">childNodes</a></p>
<ul>
<li>Defined in index.d.ts:141</li>
<li>Defined in <a href="https://github.com/inikulin/parse5/blob/f605e9b/lib/index.d.ts#L141">index.d.ts:141</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -163,7 +163,7 @@ <h3>namespaceURI</h3>
<div class="tsd-signature tsd-kind-icon">namespaceURI<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in index.d.ts:205</li>
<li>Defined in <a href="https://github.com/inikulin/parse5/blob/f605e9b/lib/index.d.ts#L205">index.d.ts:205</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -178,7 +178,7 @@ <h3>node<wbr>Name</h3>
<div class="tsd-signature tsd-kind-icon">node<wbr>Name<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in index.d.ts:197</li>
<li>Defined in <a href="https://github.com/inikulin/parse5/blob/f605e9b/lib/index.d.ts#L197">index.d.ts:197</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -193,7 +193,7 @@ <h3>parent<wbr>Node</h3>
<div class="tsd-signature tsd-kind-icon">parent<wbr>Node<span class="tsd-signature-symbol">:</span> <a href="ast.default.parentnode.html" class="tsd-signature-type">ParentNode</a></div>
<aside class="tsd-sources">
<ul>
<li>Defined in index.d.ts:213</li>
<li>Defined in <a href="https://github.com/inikulin/parse5/blob/f605e9b/lib/index.d.ts#L213">index.d.ts:213</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -208,7 +208,7 @@ <h3>tag<wbr>Name</h3>
<div class="tsd-signature tsd-kind-icon">tag<wbr>Name<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in index.d.ts:201</li>
<li>Defined in <a href="https://github.com/inikulin/parse5/blob/f605e9b/lib/index.d.ts#L201">index.d.ts:201</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
2 changes: 1 addition & 1 deletion docs/interfaces/ast.default.node.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ <h3>node<wbr>Name</h3>
<div class="tsd-signature tsd-kind-icon">node<wbr>Name<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in index.d.ts:131</li>
<li>Defined in <a href="https://github.com/inikulin/parse5/blob/f605e9b/lib/index.d.ts#L131">index.d.ts:131</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
2 changes: 1 addition & 1 deletion docs/interfaces/ast.default.parentnode.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ <h3>child<wbr>Nodes</h3>
<div class="tsd-signature tsd-kind-icon">child<wbr>Nodes<span class="tsd-signature-symbol">:</span> <a href="ast.default.node.html" class="tsd-signature-type">Node</a><span class="tsd-signature-symbol">[]</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in index.d.ts:141</li>
<li>Defined in <a href="https://github.com/inikulin/parse5/blob/f605e9b/lib/index.d.ts#L141">index.d.ts:141</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
8 changes: 4 additions & 4 deletions docs/interfaces/ast.default.textnode.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> ___location</h3>
<div class="tsd-signature tsd-kind-icon">___location<span class="tsd-signature-symbol">:</span> <a href="markupdata.location.html" class="tsd-signature-type">Location</a></div>
<aside class="tsd-sources">
<ul>
<li>Defined in index.d.ts:261</li>
<li>Defined in <a href="https://github.com/inikulin/parse5/blob/f605e9b/lib/index.d.ts#L261">index.d.ts:261</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -130,7 +130,7 @@ <h3>node<wbr>Name</h3>
<aside class="tsd-sources">
<p>Overrides <a href="ast.default.node.html">Node</a>.<a href="ast.default.node.html#nodename">nodeName</a></p>
<ul>
<li>Defined in index.d.ts:249</li>
<li>Defined in <a href="https://github.com/inikulin/parse5/blob/f605e9b/lib/index.d.ts#L249">index.d.ts:249</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -145,7 +145,7 @@ <h3>parent<wbr>Node</h3>
<div class="tsd-signature tsd-kind-icon">parent<wbr>Node<span class="tsd-signature-symbol">:</span> <a href="ast.default.parentnode.html" class="tsd-signature-type">ParentNode</a></div>
<aside class="tsd-sources">
<ul>
<li>Defined in index.d.ts:257</li>
<li>Defined in <a href="https://github.com/inikulin/parse5/blob/f605e9b/lib/index.d.ts#L257">index.d.ts:257</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -160,7 +160,7 @@ <h3>value</h3>
<div class="tsd-signature tsd-kind-icon">value<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in index.d.ts:253</li>
<li>Defined in <a href="https://github.com/inikulin/parse5/blob/f605e9b/lib/index.d.ts#L253">index.d.ts:253</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
Loading

0 comments on commit 969ed22

Please sign in to comment.