Files
ladybird/Userland/Libraries/LibWeb/HTML/HTMLTextAreaElement.cpp
Piotr 205155a7ab LibWeb: Set textarea rows and cols default value if 0
The cols and rows attributes are limited to only positive numbers with
fallback. The cols IDL attribute's default value is 20. The rows IDL
attribute's default value is 2.

The default value was returned only for the negative number. I added an
additional check for the case when the attribute is 0 to match the
specification.
2024-10-29 16:05:32 +01:00

19 KiB