<t a='b'c='d''e'="f">
is clearyly a syntax error. If you interpret 'd''e' as the attribute value of c, then you have a spurious = after it, which is not allowed. If you interpret 'd' as the attribute value if c, then you have a quoted attribute name, which is not allowed.