1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-12 23:01:01 +00:00
serenity/Userland
Jonatan Klemets 04bc9b14d0 LibWeb: Use parse_non_negative_integer for colspan and rowspan parsing
`DeprecatedString::to_int` calls `StringUtils::convert_to_int`
internally. However, the integer parsing is not done in an HTML
spec-compliant way. For example, `colspan="2;"` is valid according to
the spec. But, with the current implementation, we will fail to parse
"2;", and instead fall back to using 1 as the colspan value.

This patch changes the `HTMLTableCellElement::col_span` and
`HTMLTableCellElement::row_span` methods to use the
`Web::HTML::parse_non_negative_integer` function that will parse the
attribute value in an HTML spec-compliant way.
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: Use parse_non_negative_integer for colspan and rowspan 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