summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@redhat.com>2018-04-18 15:58:42 +0200
committerDaniel Veillard <veillard@redhat.com>2018-04-18 16:04:27 +0200
commit35e83488505d501864826125cfe6a7950d6cba78 (patch)
tree337de33ffcdababc39b23ea2210bf628c89c4006
parente61c82175e7b9289f751755dacc92d2c29fb6ffe (diff)
downloadlibxml2-35e83488505d501864826125cfe6a7950d6cba78.tar.gz
HTML noscript should not close p
For https://bugzilla.gnome.org/show_bug.cgi?id=795343 - HTMLparser.c: noscript should not close <p> but it should close <script>
-rw-r--r--HTMLparser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/HTMLparser.c b/HTMLparser.c
index 7e243e60..96a1bf40 100644
--- a/HTMLparser.c
+++ b/HTMLparser.c
@@ -1084,7 +1084,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", NULL,
+"noscript", "script", NULL,
"center", "font", "b", "i", "p", "head", NULL,
"a", "a", "head", NULL,
"caption", "p", NULL,