Don't move <link> to the head, to match <style>. bug 387691, r+sr=sicking
authormrbkap@gmail.com
Fri, 13 Jul 2007 14:29:10 -0700
changeset 3458 53ff0cc8e5bbf6eb02792ef082c22ac3e85b0114
parent 3457 176f2e0701fff3cf7f0e98a289ac4ed2fe19c34e
child 3459 23da36a6c997824fa926ab9e4299c23f455b4bc8
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)
bugs387691
milestone1.9a7pre
Don't move <link> to the head, to match <style>. bug 387691, r+sr=sicking
parser/htmlparser/src/nsElementTable.cpp
--- a/parser/htmlparser/src/nsElementTable.cpp
+++ b/parser/htmlparser/src/nsElementTable.cpp
@@ -785,17 +785,17 @@ const nsHTMLElement gHTMLElements[] = {
     /*special parents,kids,skip*/       0,&gLIKids,eHTMLTag_unknown,
     /*contain-func*/                    &CanBeContainedLI
   },
   {
     /*tag*/                             eHTMLTag_link,
     /*req-parent excl-parent*/          eHTMLTag_unknown,eHTMLTag_unknown,
     /*rootnodes,endrootnodes*/          &gInHead,&gInHead,
     /*autoclose starttags and endtags*/ 0,0,0,0,
-    /*parent,incl,exclgroups*/          kHeadContent, kNone, kNone,
+    /*parent,incl,exclgroups*/          kAllTags - kHeadContent, kNone, kNone,
     /*special props, prop-range*/       kNonContainer,kDefaultPropRange,
     /*special parents,kids,skip*/       &gInHead,0,eHTMLTag_unknown,
     /*contain-func*/                    0
   },
   {
     /*tag*/                             eHTMLTag_listing,
     /*req-parent excl-parent*/          eHTMLTag_unknown,eHTMLTag_unknown,
     /*rootnodes,endrootnodes*/          &gRootTags,&gRootTags,