Describe the bug
The tag immediately following an unclosed left angle bracket (used in a "less than context") causes the next tag to be sanitized
- Python Version: 3.12.2
- Bleach Version: 6.1.0
To Reproduce
Steps to reproduce the behavior:
>>> bleach.clean('<t <a></a> <a></a>')
'<t <a> <a></a>'
Expected behavior
>>> bleach.clean('<t <a></a> <a></a>')
'<t <a></a> <a></a>'
Additional context
The above error does not occur for non-alpha characters:
>>> bleach.clean('<5 <a></a> <a></a>')
'<5 <a></a> <a></a>'