diff --git a/HTMLparser.c b/HTMLparser.c index 9b1e56ed..66ff17bb 100644 --- a/HTMLparser.c +++ b/HTMLparser.c @@ -1080,7 +1080,7 @@ static const char * const htmlStartClose[] = { "menu", "p", "head", "ul", NULL, "p", "p", "head", "h1", "h2", "h3", "h4", "h5", "h6", FONTSTYLE, NULL, "div", "p", "head", NULL, -"noscript", "p", "head", NULL, +"noscript", "p", NULL, "center", "font", "b", "i", "p", "head", NULL, "a", "a", NULL, "caption", "p", NULL, diff --git a/result/HTML/noscript.html b/result/HTML/noscript.html new file mode 100644 index 00000000..09d98ce2 --- /dev/null +++ b/result/HTML/noscript.html @@ -0,0 +1,10 @@ + + +
+yo
+ + diff --git a/result/HTML/noscript.html.err b/result/HTML/noscript.html.err new file mode 100644 index 00000000..e69de29b diff --git a/result/HTML/noscript.html.sax b/result/HTML/noscript.html.sax new file mode 100644 index 00000000..b69396f5 --- /dev/null +++ b/result/HTML/noscript.html.sax @@ -0,0 +1,38 @@ +SAX.setDocumentLocator() +SAX.startDocument() +SAX.internalSubset(html, , ) +SAX.startElement(html) +SAX.ignorableWhitespace( + , 5) +SAX.startElement(head) +SAX.ignorableWhitespace( + , 9) +SAX.startElement(title) +SAX.characters(omg, 3) +SAX.endElement(title) +SAX.ignorableWhitespace( + , 9) +SAX.startElement(noscript) +SAX.startElement(link, rel='stylesheet', href='http://foo.com') +SAX.endElement(link) +SAX.endElement(noscript) +SAX.ignorableWhitespace( + , 5) +SAX.endElement(head) +SAX.ignorableWhitespace( + , 5) +SAX.startElement(body, id='xxx') +SAX.characters( + , 9) +SAX.startElement(p) +SAX.characters(yo, 2) +SAX.endElement(p) +SAX.characters( + , 5) +SAX.endElement(body) +SAX.ignorableWhitespace( +, 1) +SAX.endElement(html) +SAX.ignorableWhitespace( +, 1) +SAX.endDocument() diff --git a/test/HTML/noscript.html b/test/HTML/noscript.html new file mode 100644 index 00000000..454e9436 --- /dev/null +++ b/test/HTML/noscript.html @@ -0,0 +1,10 @@ + + + +yo
+ +