parse5 2.2.2 → 2.2.3

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.
@@ -50,7 +50,10 @@ function setEndLocation(element, closingToken, treeAdapter) {
50
50
  };
51
51
  }
52
52
 
53
- loc.endOffset = ctLocation.startOffset;
53
+ if (isClosingEndTag)
54
+ loc.endOffset = ctLocation.endOffset;
55
+ else
56
+ loc.endOffset = ctLocation.startOffset;
54
57
  }
55
58
  }
56
59
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "parse5",
3
3
  "description": "WHATWG HTML5 specification-compliant, fast and ready for production HTML parsing/serialization toolset for Node.js",
4
- "version": "2.2.2",
4
+ "version": "2.2.3",
5
5
  "author": "Ivan Nikulin <ifaaan@gmail.com> (https://github.com/inikulin)",
6
6
  "contributors": [
7
7
  "Alan Clarke (https://github.com/alanclarke)",