1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-16 06:05:02 +00:00

LibWeb: Unbreak character reference and DOCTYPE parsing post-UTF-8

Oops, these were still using the byte-offset cursor. My goodness is it
unergonomic to index into UTF-8 strings, but Dr. Bugaev says it's good.

There is lots of room for improvement here. Just like the rest of the
tokenizer and parser. We'll have to do a few optimization passes over
them once they mature.
This commit is contained in:
Andreas Kling 2020-06-04 22:02:54 +02:00
parent b6288163f1
commit b59f4632d5
2 changed files with 24 additions and 12 deletions

View file

@ -169,7 +169,6 @@ private:
String m_decoded_input;
StringView m_input;
size_t m_cursor { 0 };
Utf8View m_utf8_view;
AK::Utf8CodepointIterator m_utf8_iterator;