@@ -124,7 +124,7 @@ tagName' :: Parser Text
124124tagName' = do
125125 c <- peekChar'
126126 guard $ isAsciiUpper c || isAsciiLower c
127− takeWhile $ notInClass "\x09\x0a\x0c />"
127+ takeWhile $ notInClass "\x09\x0a\x0c /<>"
128128
129129-- | /§8.2.4.43/: Self-closing start tag state
130130selfClosingStartTag :: TagName -> [Attr] -> Parser Token
@@ -146,7 +146,7 @@ beforeAttrName tag attrs = do
146146-- | /§8.2.4.35/: Attribute name state
147147attrName :: TagName -> [Attr] -> Parser Token
148148attrName tag attrs = do
149− name <- takeWhile $ notInClass "\x09\x0a\x0c /=>\x00"
149+ name <- takeWhile $ notInClass "\x09\x0a\x0c /=<>\x00"
150150 id $ (satisfy (inClass "\x09\x0a\x0c ") >> afterAttrName tag attrs name)
151151 <|> (char '/' >> selfClosingStartTag tag attrs)
152152 <|> (char '=' >> beforeAttrValue tag attrs name)