Moreover, `<img class=foo/>` gets highlighted as if the slash was not part of the attribute value:
However, with a spec-compliant HTML parser, it is part of the attribute value due to the slash going through the "Anything else" case in the "Attribute value (unquoted) state".