mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-14 20:01:04 +03:00
fixing HTML minimized attribute values to be generated internally if not
* HTMLparser.c: fixing HTML minimized attribute values to be generated internally if not present, fixes bug #332124 * result/HTML/doc2.htm.sax result/HTML/doc3.htm.sax result/HTML/wired.html.sax: this affects the SAX event strem for a few test cases Daniel
This commit is contained in:
11
HTMLparser.c
11
HTMLparser.c
@ -3235,12 +3235,11 @@ htmlParseAttribute(htmlParserCtxtPtr ctxt, xmlChar **value) {
|
||||
NEXT;
|
||||
SKIP_BLANKS;
|
||||
val = htmlParseAttValue(ctxt);
|
||||
/******
|
||||
} else {
|
||||
* TODO : some attribute must have values, some may not
|
||||
if ((ctxt->sax != NULL) && (ctxt->sax->error != NULL))
|
||||
ctxt->sax->warning(ctxt->userData,
|
||||
"No value for attribute %s\n", name); */
|
||||
} else if (htmlIsBooleanAttr(name)) {
|
||||
/*
|
||||
* assume a minimized attribute
|
||||
*/
|
||||
val = xmlStrdup(name);
|
||||
}
|
||||
|
||||
*value = val;
|
||||
|
Reference in New Issue
Block a user