Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardHTMLDOM tree constructionSingle-choice MCQ

When the parser encounters a stray `</body>` or `</html>` end tag but the document still has more content, what does tree construction do, and why does subsequent content still attach correctly?

<body><p>a</p></body><p>b</p>