1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:38:10 +00:00

LibWeb: Start implementing character token parsing

Now that we've gotten rid of the misguided character buffering in the
tokenizer, it actually spits out character tokens that we have to deal
with in the parser.

This patch implements enough to bring us back to speed with simple.html
This commit is contained in:
Andreas Kling 2020-05-24 19:51:50 +02:00
parent 53d2f4df70
commit 31db3f21ae
4 changed files with 132 additions and 34 deletions

View file

@ -36,6 +36,7 @@ public:
virtual ~CharacterData() override;
const String& data() const { return m_data; }
void set_data(const String& data) { m_data = data; }
virtual String text_content() const override { return m_data; }