1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 10:38:13 +00:00
serenity/Userland
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
..
Applets LibGUI: Add deprecated suffix to {set_,}tooltip in Widget 2023-08-18 10:43:37 +01:00
Applications Ladybird+LibWebView: Rename some "on get" notifications to "on received" 2023-08-23 12:07:02 -04:00
BuggieBox Userland: Pretty print the help text in BuggieBox 2023-08-09 02:10:02 +02:00
Demos Mandelbrot: Pledge unix to enable image export 2023-08-17 07:14:54 +02:00
DevTools LibGUI: Replace DeprecatedString usage in Widget 2023-08-18 10:43:37 +01:00
DynamicLoader LibC+LibELF: Support loading shared libraries compiled with dynamic TLS 2023-08-18 16:20:13 +02:00
Games Flood: Replace usage of DeprecatedString 2023-08-23 13:28:07 +02:00
Libraries LibWeb: Implement spec-compliant integer parsing 2023-08-24 22:26:53 +01:00
Services WebContent+LibWebView: Add support for user style sheets 2023-08-23 05:32:10 +02:00
Shell Shell: Add builtin command to reset the internal state 2023-08-11 18:48:53 +03:30
Utilities Ladybird+LibWebView: Migrate input completions to LibWebView callbacks 2023-08-23 12:07:02 -04:00
CMakeLists.txt Userland: Add the BuggieBox program 2022-11-26 12:41:47 -07:00