d1a4aeb5e1f4f1dbead144a89e5ab8188afc558f
The parser is initialized with a HTML string which can be parsed as a document or a document fragment. When parsing a fragment a context element should be provided. It is also possible to parse the same string as a fragment for different context elements. In this case the parser reset its internal state and runs the parsing algorithm again. Parsing a fragment for the same context element runs the algorithm only once, since the parser caches the context element and the parsing results.
Description
Languages
HTML
54.8%
Objective-C
43.4%
C
1.1%
Swift
0.6%