# Parsing minify-html does not have any error states and will always output a value. This means that all possible ambiguous or malformed states need to be handled. This document describes these. minify-html tries to match what the specs dictate and modern browsers do. However, there may be occasional differences for malformed syntax, as the rules are very complex when handling invalid HTML. To see some complex inputs, check out the [various fuzzing inputs](../fuzz/in). ## EOF If the input ends while in the middle of a tag or attribute value, that tag/attribute is closed, as well as all ancestor tags. ## Tags |Rule|Example source|Example interpretation| |---|---|---| |`script`, `style`, and `textarea` tags do not close until the case-insensitive sequence `` followed by the tag name.|``|``| |Attribute-like syntax in closing tags are parsed like attributes but ignored.|`
">5`|``| |If the character following `` is not a valid tag name character, all code until the next `>` is dropped. It is not considered a closing tag, even as an invalid one.|`