mirror of
https://github.com/python/cpython.git
synced 2025-07-26 04:34:20 +00:00
Patch #912410: Replace HTML entity references for attribute values
in HTMLParser.
This commit is contained in:
parent
ff432e6f4a
commit
ab8a6bba25
4 changed files with 43 additions and 13 deletions
|
@ -309,6 +309,11 @@ DOCTYPE html [
|
|||
("endtag", "script"),
|
||||
])
|
||||
|
||||
def test_entityrefs_in_attributes(self):
|
||||
self._run_check("<html foo='€&aa&unsupported;'>", [
|
||||
("starttag", "html", [("foo", u"\u20AC&aa&unsupported;")])
|
||||
])
|
||||
|
||||
|
||||
def test_main():
|
||||
test_support.run_unittest(HTMLParserTestCase)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue