Menu

#4 Attributes cannot contain quotes

2.0
open
nobody
None
2014-06-28
2014-06-28
Anonymous
No

The HTML spec allows attributes delimited with double quotes to contain single quotes and vice versa. However code like

page = """<a title="It's bugged!"></a>"""
dom = htmldom.HtmlDom().createDom(page)

enters an infinite loop. It looks the the regular expression used for attributes does not allow for this.

Discussion

Anonymous
Anonymous

Add attachments
Cancel