1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-12 22:50:59 +00:00
serenity/Userland/Libraries/LibWeb/HTML/Parser
Luke Wilde 9845164f6a LibWeb: Handle markers when reconstructing active formatting elements
The entry we get from the active formatting elements list during the
Rewind step of "reconstruct the active formatting elements" can be a
marker. Previously we assumed it was not a marker, which can trigger
an assertion failure with certain malformed HTML.

If the entry in this step is a marker, the spec simply ignores it.
This is step 6 of the algorithm.

This also makes the index unsigned, as this algorithm is a no-op if
the list is empty.

Additionally, this also adds spec comments to this algorithm.

Fixes #12668.
2022-02-20 10:59:42 +01:00
..
Entities.cpp Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
Entities.h Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
HTMLEncodingDetection.cpp LibWeb: Implement Attribute closer to the spec and with an IDL file 2021-10-17 13:51:10 +01:00
HTMLEncodingDetection.h LibWeb: Implement Attribute closer to the spec and with an IDL file 2021-10-17 13:51:10 +01:00
HTMLParser.cpp LibWeb: Handle markers when reconstructing active formatting elements 2022-02-20 10:59:42 +01:00
HTMLParser.h LibWeb: Implement state switch for "[CDATA[" in HTML parser 2022-02-15 23:24:34 +01:00
HTMLToken.cpp LibWeb: Change HTMLToken storage architecture 2021-07-17 16:24:57 +04:30
HTMLToken.h Libraries: Use AK::Variant default initialization where appropriate 2021-09-21 04:22:52 +04:30
HTMLTokenizer.cpp LibWeb: Use Vector::clear_with_capacity() in HTMLTokenizer 2022-02-19 14:45:59 +01:00
HTMLTokenizer.h LibWeb: Add an optional pointer to an HTMLParser to the HTMLTokenizer 2022-02-15 23:24:34 +01:00
ListOfActiveFormattingElements.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
ListOfActiveFormattingElements.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
StackOfOpenElements.cpp LibWeb: Rename element_before() => element_immediately_above() 2022-02-15 02:05:53 +01:00
StackOfOpenElements.h LibWeb: Add spec comments to the StackOfOpenElements class 2022-02-15 02:05:53 +01:00