Allow noscript in the head so that it doesn't push <style> into the body, causing the style's text to prematurely open a body. bug 379025, r=sicking sr=jst
authormrbkap@gmail.com
Fri, 22 Jun 2007 14:47:26 -0700
changeset 2696 1970d389c190ce8259b91fecaa94203007b18779
parent 2695 0e6e78890393a70c895a7446eec792c5df29acee
child 2697 54cb1cf8d4ab94d36d4584326dd96cd0e6cf07aa
push id1
push userbsmedberg@mozilla.com
push dateThu, 20 Mar 2008 16:49:24 +0000
treeherdermozilla-central@61007906a1f8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssicking, jst
bugs379025
milestone1.9a6pre
Allow noscript in the head so that it doesn't push <style> into the body, causing the style's text to prematurely open a body. bug 379025, r=sicking sr=jst
parser/htmlparser/src/nsElementTable.cpp
--- a/parser/htmlparser/src/nsElementTable.cpp
+++ b/parser/htmlparser/src/nsElementTable.cpp
@@ -885,17 +885,17 @@ const nsHTMLElement gHTMLElements[] = {
     /*special parents,kids,skip*/       &gNoframeRoot,0,eHTMLTag_unknown,
     /*contain-func*/                    0
   },
   {
     /*tag*/                             eHTMLTag_noscript,
     /*req-parent excl-parent*/          eHTMLTag_unknown,eHTMLTag_unknown,
     /*rootnodes,endrootnodes*/          &gRootTags,&gRootTags,
     /*autoclose starttags and endtags*/ 0,0,0,0,
-    /*parent,incl,exclgroups*/          kFlowEntity, kFlowEntity|kSelf, kNone,
+    /*parent,incl,exclgroups*/          kFlowEntity|kHeadMisc, kFlowEntity|kSelf, kNone,
     /*special props, prop-range*/       0, kNoPropRange,
     /*special parents,kids,skip*/       0,0,eHTMLTag_unknown,
     /*contain-func*/                    0
   },
   {
     /*tag*/                             eHTMLTag_object,
     /*req-parent excl-parent*/          eHTMLTag_unknown,eHTMLTag_unknown,
     /*rootnodes,endrootnodes*/          &gRootTags,&gRootTags,