[issue7626] Entity references without semicolon in HTMLParser
Florent Xicluna
report at bugs.python.org
Tue Jan 5 19:02:43 CET 2010
Florent Xicluna <laxyf at yahoo.fr> added the comment:
For the record, this is valid HTML 4.01 Strict:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>Sample</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
</head>
<body>
<p>La clé</p>
<p>La clé des champs</p>
<p>La clé des champs</p>
</body>
</html>
Tested with http://validator.w3.org/check and Mozilla Firefox 3.5.6
Reference: http://www.is-thought.co.uk/book/sgml-6.htm#General
But HTML5 should prohibit such ambiguous syntax:
http://dev.w3.org/html5/spec/Overview.html#syntax-ambiguous-ampersand
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7626>
_______________________________________
More information about the Python-bugs-list
mailing list