ladybird/Libraries/LibWeb/HTML/Parser
Shannon Booth 7441aa34e4 LibWeb/HTML: Bail from HTML parsing when EOF hit on document.close
This fixes a crash in the included test that regressed in 0adf261,
and is hit by the following HTML:

```html
<body></body>
<script>
  const frame = document.body.appendChild(document.createElement("iframe"));
  frame.contentDocument.open();
  const child = frame.contentDocument.createElement("html")
  const html = frame.contentDocument.appendChild(child);
  frame.contentDocument.close();
</script>
```

I am not 100% sure this is fully the correct fix and there are other
cases which would not work properly. But it's definitely an improvement
to make the confuisingly named 'insert_an_eof' function of the tokenizer
actually do something.
2025-02-09 19:20:09 +00:00
..
Entities.cpp
Entities.h
HTMLEncodingDetection.cpp LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
HTMLEncodingDetection.h LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
HTMLParser.cpp LibWeb/HTML: Bail from HTML parsing when EOF hit on document.close 2025-02-09 19:20:09 +00:00
HTMLParser.h LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
HTMLToken.cpp
HTMLToken.h
HTMLToken.swift LibWeb: Add remaining states to the Swift tokenizer 2024-11-15 10:51:45 -07:00
HTMLTokenizer.cpp LibWeb: Emit comment token for unterminated bogus comments on EOF 2025-01-11 11:09:47 +01:00
HTMLTokenizer.h LibWeb: Teach more of HTMLTokenizer to stop at the insertion point 2024-11-24 11:45:23 +01:00
HTMLTokenizer.swift LibWeb: Add remaining states to the Swift tokenizer 2024-11-15 10:51:45 -07:00
HTMLTokenizerHelpers.cpp LibWeb: Add remaining states to the Swift tokenizer 2024-11-15 10:51:45 -07:00
HTMLTokenizerHelpers.h LibWeb: Add remaining states to the Swift tokenizer 2024-11-15 10:51:45 -07:00
ListOfActiveFormattingElements.cpp LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
ListOfActiveFormattingElements.h LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
StackOfOpenElements.cpp LibWeb: Fix various typos 2025-01-30 15:00:16 +00:00
StackOfOpenElements.h LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00