1
0
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:
Daniel Veillard
2006-10-17 16:13:27 +00:00
parent 48519092e5
commit c47d263049
5 changed files with 20 additions and 13 deletions

View File

@ -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;