1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-16 07:21:58 +03:00

Don't give default HTML boolean attribute values in parser

* HTMLparser.c: don't default value of HTML boolean attributes in the
  parser
* SAX2.c: move this to SAX2 tree building backend
* result/HTML/doc2.htm.sax result/HTML/doc3.htm.sax
  result/HTML/wired.html.sax: this changes a few HTML SAX regression
  tests
This commit is contained in:
Daniel Veillard
2010-03-15 15:47:50 +01:00
parent 615904f582
commit 3c080d6d72
5 changed files with 30 additions and 27 deletions

View File

@ -3426,11 +3426,6 @@ htmlParseAttribute(htmlParserCtxtPtr ctxt, xmlChar **value) {
NEXT;
SKIP_BLANKS;
val = htmlParseAttValue(ctxt);
} else if (htmlIsBooleanAttr(name)) {
/*
* assume a minimized attribute
*/
val = xmlStrdup(name);
}
*value = val;