ladybird/Userland/Libraries/LibWeb/HTML/Parser
Timothy Flynn 5a2bf7fdd1 LibWeb: Set the correct end position of HTML attribute names
We were previously setting the end position of attribute names in self-
closing HTML tags to the end of the attribute value. To illustrate the
previous behavior, consider this tag and its attribute's start and end
positions (shown inclusively below):

    <meta charset="UTF-8" />
          ^ name start
                  ^ value start
                        ^ value end
                        ^ name end

Rather than setting the end position of the attribute name when we parse
the closing slash, ensure the end position is already set while we are
in the AttributeName state. We now have:

    <meta charset="UTF-8" />
          ^ name start
                ^ name end
                  ^ value start
                        ^ value end

The tokenizer unit test has been extended to test these positions.
2023-08-25 08:22:24 +02:00
..
Entities.cpp Everywhere: Use nested namespace qualifiers 2023-07-12 10:05:42 +03:30
Entities.h Everywhere: Use nested namespace qualifiers 2023-07-12 10:05:42 +03:30
HTMLEncodingDetection.cpp LibJS: Make Heap::allocate<T>() infallible 2023-08-13 15:38:42 +02:00
HTMLEncodingDetection.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
HTMLParser.cpp LibWeb: Make StyleValue constructors infallible 2023-08-19 17:34:22 +02:00
HTMLParser.h LibWeb: Add Web::HTML::parse_legacy_color_value 2023-05-28 13:24:37 +02:00
HTMLToken.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
HTMLToken.h LibWeb: Set the correct end position of HTML attribute names 2023-08-25 08:22:24 +02:00
HTMLTokenizer.cpp LibWeb: Set the correct end position of HTML attribute names 2023-08-25 08:22:24 +02:00
HTMLTokenizer.h LibJS+LibWeb: Wrap raw JS::Cell*/& fields in GCPtr/NonnullGCPtr 2023-03-15 08:48:49 +01:00
ListOfActiveFormattingElements.cpp AK+Everywhere: Rename FlyString to DeprecatedFlyString 2023-01-09 23:00:24 +00:00
ListOfActiveFormattingElements.h Everywhere: Remove NonnullRefPtr.h includes 2023-03-06 23:46:35 +01:00
StackOfOpenElements.cpp AK+Everywhere: Rename FlyString to DeprecatedFlyString 2023-01-09 23:00:24 +00:00
StackOfOpenElements.h Everywhere: Remove NonnullRefPtr.h includes 2023-03-06 23:46:35 +01:00