1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-26 01:05:07 +00:00
serenity/Userland/Libraries/LibWeb/HTML/Parser
Max Wipfli 932161e581 LibWeb: Be more forgiving when adding source positions in HTMLTokenizer
This patch changes HTMLTokenizer::nth_last_position to not fail if the
requested position is not available. Rather, it will just return (0-0).

While this is not the correct solution, it prevents the tokenizer from
crashing just because it cannot find a source position. This should only
affect SyntaxHighlighter.
2021-06-05 00:32:28 +04:30
..
Entities.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Entities.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
HTMLDocumentParser.cpp LibWeb: Implement encoding sniffing algorithm 2021-05-18 21:02:07 +02:00
HTMLDocumentParser.h LibWeb: Implement encoding sniffing algorithm 2021-05-18 21:02:07 +02:00
HTMLEncodingDetection.cpp LibWeb: Implement encoding sniffing algorithm 2021-05-18 21:02:07 +02:00
HTMLEncodingDetection.h LibWeb: Implement encoding sniffing algorithm 2021-05-18 21:02:07 +02:00
HTMLToken.cpp LibWeb: Be more forgiving when adding source positions in HTMLTokenizer 2021-06-05 00:32:28 +04:30
HTMLToken.h LibWeb: Add position tracking information to HTML tokens 2021-05-20 22:06:45 +02:00
HTMLTokenizer.cpp LibWeb: Be more forgiving when adding source positions in HTMLTokenizer 2021-06-05 00:32:28 +04:30
HTMLTokenizer.h LibWeb: Be more forgiving when adding source positions in HTMLTokenizer 2021-06-05 00:32:28 +04:30
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 Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
StackOfOpenElements.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00