})
describe('Errors', () => {
+ // HTML parsing errors as specified at
+ // https://html.spec.whatwg.org/multipage/parsing.html#parse-errors
+ // We ignore some errors that do NOT affect parse result in meaningful ways
+ // but have non-trivial implementation cost.
const patterns: {
[key: string]: Array<{
code: string
if (currentElement && currentProp) {
if (quote !== QuoteType.NoValue) {
if (__BROWSER__ && currentAttrValue.includes('&')) {
- // TODO should not do this in <script> or <style>
currentAttrValue = currentOptions.decodeEntities!(
currentAttrValue,
true