mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
LibWeb: Don't verify that a dimension unit isn't whitespace
Raw whitespace is not allowed inside a name, but escaped whitespace is, for example `\9`, which is the tab character. This stops yakzz.com from crashing the Browser, since it was using `\9` in various places as a hack to only apply those properties to IE8/9.
This commit is contained in:
parent
d93ffe3cf8
commit
2a7a8d2cab
Notes:
sideshowbarker
2024-07-17 19:52:41 +09:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/SerenityOS/serenity/commit/2a7a8d2cabc Pull-request: https://github.com/SerenityOS/serenity/pull/12256
1 changed files with 1 additions and 1 deletions
|
@ -841,7 +841,7 @@ Token Tokenizer::consume_a_numeric_token()
|
|||
|
||||
// 2. Consume a name. Set the <dimension-token>’s unit to the returned value.
|
||||
auto unit = consume_a_name();
|
||||
VERIFY(!unit.is_empty() && !unit.is_whitespace());
|
||||
VERIFY(!unit.is_empty());
|
||||
token.m_unit = move(unit);
|
||||
|
||||
// 3. Return the <dimension-token>.
|
||||
|
|
Loading…
Reference in a new issue