mirror of
https://github.com/RGBCube/serenity
synced 2025-05-29 17:45:11 +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
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…
Add table
Add a link
Reference in a new issue