mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-10 09:02:44 +02:00
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.
8.3 KiB
8.3 KiB