HTML parser error with <noscript> in the <head>
authorDenis Pauk <pauk.denis@gmail.com>
Fri, 11 May 2012 11:31:12 +0000 (19:31 +0800)
committerDaniel Veillard <veillard@redhat.com>
Fri, 11 May 2012 11:31:12 +0000 (19:31 +0800)
commita0cd075d94518cd254d5fe122cc6825a1dfc6093
treec012b1a0d432c9e9139f34b024bac70be962b1e6
parent4609e6c980b256e4115d4b7e1227f59870465995
HTML parser error with <noscript> in the <head>

For https://bugzilla.gnome.org/show_bug.cgi?id=615785
When the <noscript> is found, <head> is closed and a <body> element is created.
The real <body id="xxx"> gets skipped over, so I can't see any of the
body's attributes.
Just don't close <head> when encountering a <noscript>
Add a regression test too
HTMLparser.c
result/HTML/noscript.html [new file with mode: 0644]
result/HTML/noscript.html.err [new file with mode: 0644]
result/HTML/noscript.html.sax [new file with mode: 0644]
test/HTML/noscript.html [new file with mode: 0644]