Repository navigation
v0.0.214
v0.0.214
Fixture 214: extended html.parser.HTMLParser — processing instructions, CDATA/unknown_decl, entity/charref callbacks, convert_charrefs kwarg, getpos(), and incremental feed buffering.
Changes
src/vm/html_mod.zig:ParserStategainsline/colfields for position trackingparserGetposFn: newgetpos()method returning(line, col)tupleemitTexthelper: whenconvert_charrefs=True(default), unescape entities in text data; whenFalse, emithandle_entityref/handle_charrefcallbacks for&name;and&#NNN;patternsparserFeedrewritten: usesstate.buffor incremental buffering, handles<?...?>(PI),<![...]>(unknown_decl/CDATA), all existing token types; leaves incomplete tokens in buffer across feed() calls- New base class no-ops:
handle_pi,unknown_decl,handle_entityref,handle_charref buildParser: registers all new methods
tests/fixtures/fixtures.zig: added214_html_parsertests/fixtures/214_html_parser.*: fixture files
All 214 fixtures pass. All 5 cross-compilation targets clean.
Full Changelog: v0.0.213...v0.0.214