The noNestedTags seems to be used for tree-construction but also subsets the list of tags changing the context of the parser to either RCData or RAWText, both of which seem to be missing in the implementation. This is a limitation since none of these tags can be parsed correctly: title, xmp, iframe, noembed, noframes, noscript, plaintext.
|
export const noNestedTags = createMap<true>('li,option,select,textarea', true); |
The
noNestedTagsseems to be used for tree-construction but also subsets the list of tags changing the context of the parser to either RCData or RAWText, both of which seem to be missing in the implementation. This is a limitation since none of these tags can be parsed correctly:title,xmp,iframe,noembed,noframes,noscript,plaintext.html5parser/src/config.ts
Line 23 in cc95ffc