Issue 10599: sgmllib.parse_endtag() is not respecting quoted text (original) (raw)

Issue10599

Created on 2010-12-01 21:21 by Michael.Brooks, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
sgmllib_bug.py Michael.Brooks,2010-12-01 21:21
Messages (3)
msg123016 - (view) Author: Michael Brooks (Michael.Brooks) Date: 2010-12-01 21:21
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
msg123017 - (view) Author: Michael Brooks (Michael.Brooks) Date: 2010-12-01 21:34
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.
msg391951 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2021-04-26 17:17
sgmllib was removed in python 3.
History
Date User Action Args
2022-04-11 14:57:09 admin set github: 54808
2021-04-26 17:17:35 iritkatriel set status: open -> closednosy: + iritkatrielmessages: + resolution: out of datestage: resolved
2014-11-18 15:03:14 serhiy.storchaka set nosy: + ezio.melotticomponents: + Library (Lib), - Noneversions: + Python 2.7, - Python 2.6
2010-12-01 21:34:29 Michael.Brooks set messages: +
2010-12-01 21:21:45 Michael.Brooks create