HTML parsing/serialization toolset for Node.js. WHATWG HTML Living Standard (aka HTML5)-compliant.
location.startTag
is not available if end tag is missing (GH #181).MarkupData.Location.col
description in TypeScript definition file (GH #170).document.quirksMode
property was replaced with document.mode
property which can have
'no-quirks'
, 'quirks'
and 'limited-quirks'
values. Tree adapter setQuirksMode
and isQuirksMode
methods were replaced with setDocumentMode
and getDocumentMode
methods (GH #83).<!DOCTYPE html>
as per spec (GH #137).__location.endTag
when the start tag contains newlines (GH #166) (by @webdesus).LocationInfo.endOffset
for implicitly closed <p>
element (GH #109).SAXParser (by @RReverser)
\n
in <pre>
, <textarea>
and <listing>
.<image>
.Latest spec changes
Fixed: Element nesting corrections now take namespaces into consideration.