Files
serenity/Userland/Libraries/LibWeb/CSS/Parser/Tokenizer.cpp
Sam Atkins c6c27bf2cf LibWeb/CSS: Tokenize comments as whitespace tokens
This is in a weird position where the spec tells us to discard the
comments, but then we have to preserve the original source text which
may include comments. As a compromise, I'm treating each comment as a
whitespace token - comments are functionally equivalent to whitespace
so this should not have any behaviour changes beyond preserving the
original text.

(cherry picked from commit f8995d37a2bf71e98e273f4aa0764d9c022ac127)
2024-11-17 23:31:49 -05:00

48 KiB