Commit 957fdcf2 authored by Daniel Veillard's avatar Daniel Veillard
Browse files

handle the case of < in quoted attributes, Bastian Kleineidam Daniel

* HTMLparser.c test/HTML/lt.html result/HTML/lt.html*:
  handle the case of < in quoted attributes, Bastian Kleineidam
Daniel
parent c853b32f
Tue Nov 6 23:49:09 CET 2001 Daniel Veillard <daniel@veillard.com>
* HTMLparser.c test/HTML/lt.html result/HTML/lt.html*:
handle the case of < in quoted attributes, Bastian Kleineidam
Tue Nov 6 16:21:33 CET 2001 Daniel Veillard <daniel@veillard.com>
* configure.in include/libxml/xmlwin32version.h: releasing 2.4.9
......
......@@ -1970,7 +1970,8 @@ htmlParseHTMLAttribute(htmlParserCtxtPtr ctxt, const xmlChar stop) {
/*
* Ok loop until we reach one of the ending chars
*/
while ((CUR != 0) && (CUR != stop) && (CUR != '>')) {
while ((CUR != 0) && (CUR != stop)) {
if ((stop == 0) && (CUR == '>')) break;
if ((stop == 0) && (IS_BLANK(CUR))) break;
if (CUR == '&') {
if (NXT(1) == '#') {
......
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html><head><meta name="Author" content="Root &lt;root@aol.com&gt;"></head></html>
SAX.setDocumentLocator()
SAX.startDocument()
SAX.startElement(html)
SAX.ignorableWhitespace(
, 1)
SAX.startElement(head)
SAX.ignorableWhitespace(
, 1)
SAX.startElement(meta, name='Author', content='Root &lt;root@aol.com&gt;')
SAX.endElement(meta)
SAX.ignorableWhitespace(
, 1)
SAX.endElement(head)
SAX.ignorableWhitespace(
, 1)
SAX.endElement(html)
SAX.ignorableWhitespace(
, 1)
SAX.endDocument()
<html>
<head>
<meta name="Author" content="Root <root@aol.com>">
</head>
</html>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment