In the attached example is a very simple usage of sgmllib that is trying to parse: The bug is that sgmllib is parsing this href. Browsers on the other hand see this as the input's value. Also keep in mind that escaping of quote marks in HTML is not like python. \" is not a character literal " thus link"> is still quoted text and the href should not be parsed. Thank you
Oops, I had a misnomer in my bug report. link"> is not escaped and there for the href should be parsed in this condition but not parsed in the attached sgmllib_bug.py.