Skip to content

Commit

Permalink
Fixed siblings calculation bug in htmlparser2 adapter. Version updated
Browse files Browse the repository at this point in the history
  • Loading branch information
inikulin committed Mar 3, 2014
1 parent 189812b commit 6b8e458
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/tree_adapters/htmlparser2.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ exports.isQuirksMode = function (document) {
};

var appendChild = exports.appendChild = function (parentNode, newNode) {
var prev = parentNode.children[parentNode.children.length];
var prev = parentNode.children[parentNode.children.length - 1];

if (prev) {
prev.next = newNode;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "parse5",
"description": "Fast full-featured HTML parser for Node. Based on WHATWG HTML5 specification.",
"version": "0.8.2",
"version": "0.8.3",
"author": "Ivan Nikulin (ifaaan@gmail.com, https://github.com/inikulin)",
"keywords": [
"html",
Expand Down

0 comments on commit 6b8e458

Please sign in to comment.