ladybird/Tests/LibWeb
Jonatan Klemets 9812031a02 LibWeb: Implement spec-compliant integer parsing
We have code inside LibWeb that uses the
`AK::StringUtils::convert_to_uint`and `AK::StringUtils::convert_to_int`
methods for parsing integers. This works well for the most part, but
according to the spec, trailing characters are allowed and should be
ignored, but this is not how the `StringUtil` methods are implemented.

This patch adds two new methods named `parse_integer` and
`parse_non_negative_integer` inside the `Web::HTML` namespace that uses
`StringUtils` under the hood but adds a bit more logic to make it spec
compliant.
2023-08-24 22:26:53 +01:00
..
Layout Tests/LibWeb: Split grid/positions-and-spans.html into smaller tests 2023-08-24 20:18:00 +02:00
Ref Tests/LibWeb: Adjust "clip-abspos-children" ref-test to actually pass 2023-08-24 15:48:34 +02:00
Text LibWeb: Add DOMQuad and text tests 2023-08-23 12:11:21 +01:00
WPT Tests: Convert WebDriver patch to a git patch and clean up assumptions 2023-08-20 03:20:54 +02:00
CMakeLists.txt LibWeb: Implement spec-compliant integer parsing 2023-08-24 22:26:53 +01:00
rebaseline-libweb-test Tests/LibWeb: Update rebaseline-libweb-test for path changes 2023-06-10 21:46:33 +02:00
TestCSSIDSpeed.cpp LibWeb: Make value_id_from_string() return Optional 2023-05-25 06:36:10 +02:00
TestCSSPixels.cpp LibWeb: Fix a rounding issue on CSSPixels multiplication 2023-08-18 17:58:44 +02:00
TestHTMLTokenizer.cpp Everywhere: Remove unintentional partial stream reads and writes 2023-03-13 15:16:20 +00:00
TestNumbers.cpp LibWeb: Implement spec-compliant integer parsing 2023-08-24 22:26:53 +01:00
tokenizer-test.html LibWeb: Fix assertion failure when tokenizing JS regex literals 2021-07-15 01:47:22 +02:00