ladybird/Userland/Libraries/LibWeb/HTML/Parser
Timothy Flynn 9fe35ddddf LibWeb: Use an infallible method to add attributes to nodes
In the HTML parser spec, there are 2 instances of the following text:

    add the attribute and its corresponding value to that element

The "add the attribute" text does not have a corresponding spec link to
actually specify what to do. We currently use `set_attribute`, which can
throw an exception if the attribute name contains an invalid character
(such as '<'). Instead, switch to `append_attribute`, which allows such
attribute names. This behavior matches Firefox.

Note we cannot yet make the unclosed-html-element.html test match the
expectations of the unclosed-body-element.html due to another bug that
would prevent checking if the expected element has the right attribute.
That will be fixed in an upcoming commit.
2024-07-30 09:41:35 +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 LibWeb: Fix utf16-be check in HTMLEncodingDetection 2024-01-08 23:35:09 +01:00
HTMLEncodingDetection.h Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
HTMLParser.cpp LibWeb: Use an infallible method to add attributes to nodes 2024-07-30 09:41:35 +02:00
HTMLParser.h LibWeb: Implement unsafe HTML parsing methods 2024-06-26 06:13:29 +02:00
HTMLToken.cpp LibWeb: Port HTMLToken::to_deprecated_string to new AK String 2023-11-06 11:37:08 +01:00
HTMLToken.h AK+Userland: Remove NOESCAPE 2024-05-22 21:55:34 -06:00
HTMLTokenizer.cpp Everywhere: Run clang-format 2024-04-24 16:50:01 -04:00
HTMLTokenizer.h LibWeb: Stop parsing after document.write at the insertion point 2024-02-20 17:04:36 +01:00
ListOfActiveFormattingElements.cpp LibWeb: Port Element::local_name and TagNames from Deprecated String 2023-10-03 14:47:53 +01:00
ListOfActiveFormattingElements.h LibWeb: Port Element::local_name and TagNames from Deprecated String 2023-10-03 14:47:53 +01:00
StackOfOpenElements.cpp LibJS+LibWeb: Use new Cell::Visitor helpers to avoid manual iteration 2024-04-16 07:40:01 +02:00
StackOfOpenElements.h LibWeb: Port Element::local_name and TagNames from Deprecated String 2023-10-03 14:47:53 +01:00