[libxml2] HTML noscript should not close p



commit 35e83488505d501864826125cfe6a7950d6cba78
Author: Daniel Veillard <veillard redhat com>
Date:   Wed Apr 18 15:58:42 2018 +0200

    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>

 HTMLparser.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/HTMLparser.c b/HTMLparser.c
index 7e243e6..96a1bf4 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,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]