mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:18:12 +00:00
LibWeb: Pass correct values to would_start_a_number()
This fixes the crash that Luke found using Domato: ```css . foo { mso-border-alt: solid .-1pt; } ``` The spec distinguishes between "If the next 3 code points would start..." and "If the input stream starts with..." but we were treating them the same way, skipping the first code point in the process.
This commit is contained in:
parent
981badb45f
commit
bb82ee5530
2 changed files with 3 additions and 9 deletions
|
@ -101,7 +101,6 @@ private:
|
|||
[[nodiscard]] static bool is_valid_escape_sequence(U32Twin);
|
||||
[[nodiscard]] bool would_start_an_identifier();
|
||||
[[nodiscard]] bool would_start_an_identifier(U32Triplet);
|
||||
[[nodiscard]] bool would_start_a_number() const;
|
||||
[[nodiscard]] static bool would_start_a_number(U32Triplet);
|
||||
|
||||
String m_decoded_input;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue