Chris Pearce - Bug 480889 - Nested <source> elements appear in video's childNodes. r+/sr+ mrbkap
authorChris Pearce <chris@pearce.org.nz>
Mon, 09 Mar 2009 09:53:58 +1300
changeset 25848 7d08c79abb4ef1c50e1bd63af5ee80884389dcd1
parent 25847 ab3406e9752fa3317ad8039218a60f67fb9ea79e
child 25849 0d2da3338359410ac77c111cadb8771e5c7d6209
push id5783
push usercpearce@mozilla.com
push dateMon, 09 Mar 2009 02:36:45 +0000
treeherdermozilla-central@5c293c84dc07 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs480889
milestone1.9.2a1pre
Chris Pearce - Bug 480889 - Nested <source> elements appear in video's childNodes. r+/sr+ mrbkap
parser/htmlparser/src/nsElementTable.cpp
parser/htmlparser/tests/mochitest/regressions.txt
--- a/parser/htmlparser/src/nsElementTable.cpp
+++ b/parser/htmlparser/src/nsElementTable.cpp
@@ -965,17 +965,17 @@ const nsHTMLElement gHTMLElements[] = {
     /*special parents,kids*/            0,0,
   },
 #if defined(MOZ_MEDIA)
   {
     /*tag*/                             eHTMLTag_source,
     /*req-parent excl-parent*/          eHTMLTag_unknown,eHTMLTag_unknown,
     /*rootnodes,endrootnodes*/          &gSourceParents,&gSourceParents,
     /*autoclose starttags and endtags*/ &gPAutoClose, 0, 0,0,
-    /*parent,incl,exclgroups*/          kNone, kNone, kNone,
+    /*parent,incl,exclgroups*/          kSpecial, kNone, kNone,
     /*special props, prop-range*/       kNonContainer,kNoPropRange,
     /*special parents,kids*/            &gSourceParents,0,
   },
 #endif
   {
     
     /*tag*/                             eHTMLTag_spacer,
     /*req-parent excl-parent*/          eHTMLTag_unknown,eHTMLTag_unknown,
--- a/parser/htmlparser/tests/mochitest/regressions.txt
+++ b/parser/htmlparser/tests/mochitest/regressions.txt
@@ -425,10 +425,11 @@ x { content:"</style" } "
 
 #data
 <html><head><source>text<body><link>
 #errors
 #document
 | <html>
 |   <head>
 |   <body>
+|     <source>
 |     "text"
 |     <link>