mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
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
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
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>
|
Tue Nov 6 16:21:33 CET 2001 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
* configure.in include/libxml/xmlwin32version.h: releasing 2.4.9
|
* 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
|
* 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 ((stop == 0) && (IS_BLANK(CUR))) break;
|
||||||
if (CUR == '&') {
|
if (CUR == '&') {
|
||||||
if (NXT(1) == '#') {
|
if (NXT(1) == '#') {
|
||||||
|
2
result/HTML/lt.html
Normal file
2
result/HTML/lt.html
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
<!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 <root@aol.com>"></head></html>
|
0
result/HTML/lt.html.err
Normal file
0
result/HTML/lt.html.err
Normal file
19
result/HTML/lt.html.sax
Normal file
19
result/HTML/lt.html.sax
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
SAX.setDocumentLocator()
|
||||||
|
SAX.startDocument()
|
||||||
|
SAX.startElement(html)
|
||||||
|
SAX.ignorableWhitespace(
|
||||||
|
, 1)
|
||||||
|
SAX.startElement(head)
|
||||||
|
SAX.ignorableWhitespace(
|
||||||
|
, 1)
|
||||||
|
SAX.startElement(meta, name='Author', content='Root <root@aol.com>')
|
||||||
|
SAX.endElement(meta)
|
||||||
|
SAX.ignorableWhitespace(
|
||||||
|
, 1)
|
||||||
|
SAX.endElement(head)
|
||||||
|
SAX.ignorableWhitespace(
|
||||||
|
, 1)
|
||||||
|
SAX.endElement(html)
|
||||||
|
SAX.ignorableWhitespace(
|
||||||
|
, 1)
|
||||||
|
SAX.endDocument()
|
5
test/HTML/lt.html
Normal file
5
test/HTML/lt.html
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta name="Author" content="Root <root@aol.com>">
|
||||||
|
</head>
|
||||||
|
</html>
|
Reference in New Issue
Block a user