diff options
author | Andreas Kling <kling@serenityos.org> | 2020-05-22 21:46:13 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-22 21:46:13 +0200 |
commit | 272b35d2e109b5ad17af2e3b62e693da4bbc8440 (patch) | |
tree | 602b42d4086cb73a42e12a88eab9503bd80b0d60 /Libraries/LibGemini/GeminiJob.cpp | |
parent | 120cd44011f15bb101a94d181822b1de8eb82d73 (diff) | |
download | serenity-272b35d2e109b5ad17af2e3b62e693da4bbc8440.zip |
LibWeb: Begin work on a spec-compliant HTML parser
In order to actually view the web as it is, we're gonna need a proper
HTML parser. So let's build one!
This patch introduces the Web::HTMLTokenizer class, which currently
operates on a StringView input stream where it fetches (ASCII only atm)
codepoints and tokenizes acccording to the HTML spec tokenization algo.
The tokenizer state machine looks a bit weird but is written in a way
that tries to mimic the spec as closely as possible, in order to make
development easier and bugs less likely.
This initial version is far from finished, but it can parse a trivial
document with a DOCTYPE and open/close tags. :^)
Diffstat (limited to 'Libraries/LibGemini/GeminiJob.cpp')
0 files changed, 0 insertions, 0 deletions