Bug 1262744 - Add '<!DOCTYPE html>' declaration to all MathML HTML tests (excludes XHTML). r=fred
authorAndrew Lawson <aeriklawson@gmail.com>
Thu, 14 Apr 2016 13:23:11 -0400
changeset 331723 1a343fc53ce5ccd35a5cd308c34ec142ee103ee6
parent 331722 70d14e1c238b9791103be5fc9e71679827546b53
child 331724 177d9f1a0f9a0864e0cda80dcf5f03e964237a2c
push id6048
push userkmoir@mozilla.com
push dateMon, 06 Jun 2016 19:02:08 +0000
treeherdermozilla-beta@46d72a56c57d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfred
bugs1262744
milestone48.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1262744 - Add '<!DOCTYPE html>' declaration to all MathML HTML tests (excludes XHTML). r=fred
layout/reftests/mathml/default-font-ref.html
layout/reftests/mathml/default-font.html
layout/reftests/mathml/displaystyle-1-ref.html
layout/reftests/mathml/displaystyle-1.html
layout/reftests/mathml/displaystyle-2-ref.html
layout/reftests/mathml/displaystyle-2.html
layout/reftests/mathml/displaystyle-3-ref.html
layout/reftests/mathml/displaystyle-3.html
layout/reftests/mathml/displaystyle-4-ref.html
layout/reftests/mathml/displaystyle-4.html
layout/reftests/mathml/dtls-1-ref.html
layout/reftests/mathml/dtls-1.html
layout/reftests/mathml/dtls-2-ref.html
layout/reftests/mathml/dtls-2.html
layout/reftests/mathml/dtls-3-ref.html
layout/reftests/mathml/dtls-3.html
layout/reftests/mathml/embellished-op-1-1-ref.html
layout/reftests/mathml/embellished-op-1-1.html
layout/reftests/mathml/embellished-op-1-2-ref.html
layout/reftests/mathml/embellished-op-1-2.html
layout/reftests/mathml/embellished-op-1-3-ref.html
layout/reftests/mathml/embellished-op-1-3.html
layout/reftests/mathml/embellished-op-1-4-ref.html
layout/reftests/mathml/embellished-op-1-4.html
layout/reftests/mathml/embellished-op-1-5-ref.html
layout/reftests/mathml/embellished-op-1-5.html
layout/reftests/mathml/embellished-op-2-1-ref.html
layout/reftests/mathml/embellished-op-2-1.html
layout/reftests/mathml/embellished-op-2-2-ref.html
layout/reftests/mathml/embellished-op-2-2.html
layout/reftests/mathml/embellished-op-2-3-ref.html
layout/reftests/mathml/embellished-op-2-3.html
layout/reftests/mathml/embellished-op-2-4-ref.html
layout/reftests/mathml/embellished-op-2-4.html
layout/reftests/mathml/embellished-op-3-1-ref.html
layout/reftests/mathml/embellished-op-3-1.html
layout/reftests/mathml/embellished-op-3-2-ref.html
layout/reftests/mathml/embellished-op-3-2.html
layout/reftests/mathml/embellished-op-3-3-ref.html
layout/reftests/mathml/embellished-op-3-3.html
layout/reftests/mathml/embellished-op-3-4-ref.html
layout/reftests/mathml/embellished-op-3-4.html
layout/reftests/mathml/embellished-op-3-5-ref.html
layout/reftests/mathml/embellished-op-3-5.html
layout/reftests/mathml/embellished-op-4-1-ref.html
layout/reftests/mathml/embellished-op-4-1.html
layout/reftests/mathml/embellished-op-4-2-ref.html
layout/reftests/mathml/embellished-op-4-2.html
layout/reftests/mathml/embellished-op-4-3-ref.html
layout/reftests/mathml/embellished-op-4-3.html
layout/reftests/mathml/embellished-op-5-1.html
layout/reftests/mathml/embellished-op-5-2.html
layout/reftests/mathml/embellished-op-5-ref.html
layout/reftests/mathml/font-inflation-1-ref.html
layout/reftests/mathml/font-inflation-1.html
layout/reftests/mathml/maction-dynamic-1-ref.html
layout/reftests/mathml/maction-dynamic-1.html
layout/reftests/mathml/maction-dynamic-2-ref.html
layout/reftests/mathml/maction-dynamic-2.html
layout/reftests/mathml/maction-dynamic-3-ref.html
layout/reftests/mathml/maction-dynamic-3.html
layout/reftests/mathml/maction-dynamic-embellished-op-ref.html
layout/reftests/mathml/maction-dynamic-embellished-op.html
layout/reftests/mathml/maction-selection-ref.html
layout/reftests/mathml/maction-selection.html
layout/reftests/mathml/math-display-ref.html
layout/reftests/mathml/math-display.html
layout/reftests/mathml/mathml-negativespace-ref.html
layout/reftests/mathml/mathml-negativespace.html
layout/reftests/mathml/mathscript-1-ref.html
layout/reftests/mathml/mathscript-1.html
layout/reftests/mathml/mathscript-2-ref.html
layout/reftests/mathml/mathscript-2.html
layout/reftests/mathml/mathvariant-1a-ref.html
layout/reftests/mathml/mathvariant-1a.html
layout/reftests/mathml/mathvariant-1b-ref.html
layout/reftests/mathml/mathvariant-1b.html
layout/reftests/mathml/mathvariant-1c-ref.html
layout/reftests/mathml/mathvariant-1c.html
layout/reftests/mathml/mathvariant-1d-ref.html
layout/reftests/mathml/mathvariant-1d.html
layout/reftests/mathml/mathvariant-2-ref.html
layout/reftests/mathml/mathvariant-2.html
layout/reftests/mathml/mathvariant-3-ref.html
layout/reftests/mathml/mathvariant-3.html
layout/reftests/mathml/mathvariant-4-ref.html
layout/reftests/mathml/mathvariant-4.html
layout/reftests/mathml/mathvariant-5-ref.html
layout/reftests/mathml/mathvariant-5.html
layout/reftests/mathml/menclose-2-actuarial-ref.html
layout/reftests/mathml/menclose-2-actuarial.html
layout/reftests/mathml/menclose-2-bottom-ref.html
layout/reftests/mathml/menclose-2-bottom.html
layout/reftests/mathml/menclose-2-box-ref.html
layout/reftests/mathml/menclose-2-box.html
layout/reftests/mathml/menclose-2-circle-ref.html
layout/reftests/mathml/menclose-2-circle.html
layout/reftests/mathml/menclose-2-downdiagonalstrike-ref.html
layout/reftests/mathml/menclose-2-downdiagonalstrike.html
layout/reftests/mathml/menclose-2-horizontalstrike-ref.html
layout/reftests/mathml/menclose-2-horizontalstrike.html
layout/reftests/mathml/menclose-2-left-ref.html
layout/reftests/mathml/menclose-2-left.html
layout/reftests/mathml/menclose-2-longdiv-ref.html
layout/reftests/mathml/menclose-2-longdiv.html
layout/reftests/mathml/menclose-2-phasorangle-ref.html
layout/reftests/mathml/menclose-2-phasorangle.html
layout/reftests/mathml/menclose-2-right-ref.html
layout/reftests/mathml/menclose-2-right.html
layout/reftests/mathml/menclose-2-roundedbox-ref.html
layout/reftests/mathml/menclose-2-roundedbox.html
layout/reftests/mathml/menclose-2-top-ref.html
layout/reftests/mathml/menclose-2-top.html
layout/reftests/mathml/menclose-2-updiagonalarrow-ref.html
layout/reftests/mathml/menclose-2-updiagonalarrow.html
layout/reftests/mathml/menclose-2-updiagonalstrike-ref.html
layout/reftests/mathml/menclose-2-updiagonalstrike.html
layout/reftests/mathml/menclose-2-verticalstrike-ref.html
layout/reftests/mathml/menclose-2-verticalstrike.html
layout/reftests/mathml/menclose-3-box-ref.html
layout/reftests/mathml/menclose-3-box.html
layout/reftests/mathml/menclose-3-default-ref.html
layout/reftests/mathml/menclose-3-default.html
layout/reftests/mathml/menclose-3-invalid-ref.html
layout/reftests/mathml/menclose-3-invalid.html
layout/reftests/mathml/menclose-3-madruwb-ref.html
layout/reftests/mathml/menclose-3-madruwb.html
layout/reftests/mathml/menclose-3-multiple-ref.html
layout/reftests/mathml/menclose-3-multiple.html
layout/reftests/mathml/menclose-3-radical-ref.html
layout/reftests/mathml/menclose-3-radical.html
layout/reftests/mathml/menclose-3-unknown-ref.html
layout/reftests/mathml/menclose-3-unknown.html
layout/reftests/mathml/menclose-4.html
layout/reftests/mathml/menclose-5-actuarial-ref.html
layout/reftests/mathml/menclose-5-actuarial.html
layout/reftests/mathml/menclose-5-bottom-ref.html
layout/reftests/mathml/menclose-5-bottom.html
layout/reftests/mathml/menclose-5-box-ref.html
layout/reftests/mathml/menclose-5-box.html
layout/reftests/mathml/menclose-5-circle-ref.html
layout/reftests/mathml/menclose-5-circle.html
layout/reftests/mathml/menclose-5-downdiagonalstrike-ref.html
layout/reftests/mathml/menclose-5-downdiagonalstrike.html
layout/reftests/mathml/menclose-5-horizontalstrike-ref.html
layout/reftests/mathml/menclose-5-horizontalstrike.html
layout/reftests/mathml/menclose-5-left-ref.html
layout/reftests/mathml/menclose-5-left.html
layout/reftests/mathml/menclose-5-longdiv-ref.html
layout/reftests/mathml/menclose-5-longdiv.html
layout/reftests/mathml/menclose-5-madruwb-ref.html
layout/reftests/mathml/menclose-5-madruwb.html
layout/reftests/mathml/menclose-5-phasorangle-ref.html
layout/reftests/mathml/menclose-5-phasorangle.html
layout/reftests/mathml/menclose-5-radical-ref.html
layout/reftests/mathml/menclose-5-radical.html
layout/reftests/mathml/menclose-5-right-ref.html
layout/reftests/mathml/menclose-5-right.html
layout/reftests/mathml/menclose-5-roundedbox-ref.html
layout/reftests/mathml/menclose-5-roundedbox.html
layout/reftests/mathml/menclose-5-top-ref.html
layout/reftests/mathml/menclose-5-top.html
layout/reftests/mathml/menclose-5-updiagonalarrow-ref.html
layout/reftests/mathml/menclose-5-updiagonalarrow.html
layout/reftests/mathml/menclose-5-updiagonalstrike-ref.html
layout/reftests/mathml/menclose-5-updiagonalstrike.html
layout/reftests/mathml/menclose-5-verticalstrike-ref.html
layout/reftests/mathml/menclose-5-verticalstrike.html
layout/reftests/mathml/menclose-6-actuarial.html
layout/reftests/mathml/menclose-6-bottom.html
layout/reftests/mathml/menclose-6-box.html
layout/reftests/mathml/menclose-6-circle.html
layout/reftests/mathml/menclose-6-downdiagonalstrike.html
layout/reftests/mathml/menclose-6-horizontalstrike.html
layout/reftests/mathml/menclose-6-left.html
layout/reftests/mathml/menclose-6-longdiv.html
layout/reftests/mathml/menclose-6-madruwb.html
layout/reftests/mathml/menclose-6-phasorangle.html
layout/reftests/mathml/menclose-6-radical.html
layout/reftests/mathml/menclose-6-ref.html
layout/reftests/mathml/menclose-6-right.html
layout/reftests/mathml/menclose-6-roundedbox.html
layout/reftests/mathml/menclose-6-top.html
layout/reftests/mathml/menclose-6-updiagonalarrow.html
layout/reftests/mathml/menclose-6-updiagonalstrike.html
layout/reftests/mathml/menclose-6-verticalstrike.html
layout/reftests/mathml/mfenced-12-ref.html
layout/reftests/mathml/mfenced-12.html
layout/reftests/mathml/mi-mathvariant-3-ref.html
layout/reftests/mathml/mi-mathvariant-3.html
layout/reftests/mathml/mo-accent-dynamic-ref.html
layout/reftests/mathml/mo-accent-dynamic.html
layout/reftests/mathml/mo-invisibleoperators-2-ref.html
layout/reftests/mathml/mo-invisibleoperators-2.html
layout/reftests/mathml/mo-invisibleoperators-ref.html
layout/reftests/mathml/mo-invisibleoperators.html
layout/reftests/mathml/mo-lspace-rspace-3-ref.html
layout/reftests/mathml/mo-lspace-rspace-3.html
layout/reftests/mathml/mo-lspace-rspace-4-ref.html
layout/reftests/mathml/mo-lspace-rspace-4.html
layout/reftests/mathml/mo-movablelimits-dynamic-ref.html
layout/reftests/mathml/mo-movablelimits-dynamic.html
layout/reftests/mathml/mpadded-1-2-ref.html
layout/reftests/mathml/mpadded-1-ref.html
layout/reftests/mathml/mpadded-2-ref.html
layout/reftests/mathml/mpadded-3-ref.html
layout/reftests/mathml/mpadded-5-ref.html
layout/reftests/mathml/mphantom-1-ref.html
layout/reftests/mathml/mphantom-1.html
layout/reftests/mathml/mphantom-2-ref.html
layout/reftests/mathml/mphantom-2.html
layout/reftests/mathml/mtable-columnalign-multi-mtable-dynamic.html
layout/reftests/mathml/mtable-columnalign-multi-mtable.html
layout/reftests/mathml/mtable-columnalign-multi-mtr-dynamic.html
layout/reftests/mathml/mtable-columnalign-multi-mtr.html
layout/reftests/mathml/mtable-columnalign-multi-ref.html
layout/reftests/mathml/mtable-columnalign-single-mtable-dynamic.html
layout/reftests/mathml/mtable-columnalign-single-mtable.html
layout/reftests/mathml/mtable-columnalign-single-mtr-dynamic.html
layout/reftests/mathml/mtable-columnalign-single-mtr.html
layout/reftests/mathml/mtable-columnalign-single-ref.html
layout/reftests/mathml/mtable-columnlines-multi-mtable-dynamic.html
layout/reftests/mathml/mtable-columnlines-multi-ref.html
layout/reftests/mathml/mtable-columnlines-single-mtable-dynamic.html
layout/reftests/mathml/mtable-columnlines-single-ref.html
layout/reftests/mathml/mtable-rowalign-multi-mtable-dynamic.html
layout/reftests/mathml/mtable-rowalign-multi-mtable.html
layout/reftests/mathml/mtable-rowalign-multi-ref.html
layout/reftests/mathml/mtable-rowalign-single-mtable-dynamic.html
layout/reftests/mathml/mtable-rowalign-single-mtable.html
layout/reftests/mathml/mtable-rowalign-single-mtr-dynamic.html
layout/reftests/mathml/mtable-rowalign-single-mtr.html
layout/reftests/mathml/mtable-rowalign-single-ref.html
layout/reftests/mathml/mtable-rowlines-multi-mtable-dynamic.html
layout/reftests/mathml/mtable-rowlines-multi-ref.html
layout/reftests/mathml/mtable-rowlines-single-mtable-dynamic.html
layout/reftests/mathml/mtable-rowlines-single-ref.html
layout/reftests/mathml/multiscripts-1-ref.html
layout/reftests/mathml/multiscripts-1.html
layout/reftests/mathml/munder-mover-align-accent-false-ref.html
layout/reftests/mathml/munder-mover-align-accent-false.html
layout/reftests/mathml/munder-mover-align-accent-true-ref.html
layout/reftests/mathml/munder-mover-align-accent-true.html
layout/reftests/mathml/munderover-accent-dynamic-ref.html
layout/reftests/mathml/munderover-accent-dynamic.html
layout/reftests/mathml/munderover-accentunder-dynamic-ref.html
layout/reftests/mathml/munderover-accentunder-dynamic.html
layout/reftests/mathml/munderover-align-accent-false-ref.html
layout/reftests/mathml/munderover-align-accent-false.html
layout/reftests/mathml/munderover-align-accent-true-ref.html
layout/reftests/mathml/munderover-align-accent-true.html
layout/reftests/mathml/munderover-empty-scripts-ref.html
layout/reftests/mathml/munderover-empty-scripts.html
layout/reftests/mathml/negative-mspace-1-ref.html
layout/reftests/mathml/negative-mspace-1.html
layout/reftests/mathml/opentype-stretchy-ref.html
layout/reftests/mathml/opentype-stretchy.html
layout/reftests/mathml/positive-namedspace-ref.html
layout/reftests/mathml/positive-namedspace.html
layout/reftests/mathml/radicalbar-1.html
layout/reftests/mathml/radicalbar-1a.html
layout/reftests/mathml/radicalbar-1b.html
layout/reftests/mathml/radicalbar-1c.html
layout/reftests/mathml/radicalbar-1d.html
layout/reftests/mathml/radicalbar-2.html
layout/reftests/mathml/radicalbar-2a.html
layout/reftests/mathml/radicalbar-2b.html
layout/reftests/mathml/radicalbar-2c.html
layout/reftests/mathml/radicalbar-2d.html
layout/reftests/mathml/radicalbar-3.html
layout/reftests/mathml/radicalbar-3a.html
layout/reftests/mathml/radicalbar-3b.html
layout/reftests/mathml/radicalbar-3c.html
layout/reftests/mathml/radicalbar-3d.html
layout/reftests/mathml/scriptlevel-1-ref.html
layout/reftests/mathml/scriptlevel-1.html
layout/reftests/mathml/semantics-2-ref.html
layout/reftests/mathml/semantics-2.html
layout/reftests/mathml/semantics-3-ref.html
layout/reftests/mathml/semantics-3.html
layout/reftests/mathml/ssty-1-ref.html
layout/reftests/mathml/ssty-1.html
layout/reftests/mathml/ssty-2-ref.html
layout/reftests/mathml/ssty-2.html
layout/reftests/mathml/ssty-3-ref.html
layout/reftests/mathml/ssty-3.html
layout/reftests/mathml/ssty-4-ref.html
layout/reftests/mathml/ssty-4.html
layout/reftests/mathml/stretchy-largeop-1-ref.html
layout/reftests/mathml/stretchy-largeop-1.html
layout/reftests/mathml/stretchy-largeop-2-ref.html
layout/reftests/mathml/stretchy-largeop-2.html
layout/reftests/mathml/stretchy-largeop-3-ref.html
layout/reftests/mathml/stretchy-largeop-3.html
layout/reftests/mathml/stretchy-mfenced-1-ref.html
layout/reftests/mathml/stretchy-mfenced-1a.html
layout/reftests/mathml/stretchy-mfenced-1b.html
layout/reftests/mathml/stretchy-mfenced-2-ref.html
layout/reftests/mathml/stretchy-mfenced-2a.html
layout/reftests/mathml/stretchy-mfenced-2b.html
layout/reftests/mathml/stretchy-mfenced-3-ref.html
layout/reftests/mathml/stretchy-mfenced-3a.html
layout/reftests/mathml/stretchy-mfenced-3b.html
layout/reftests/mathml/stretchy-mfenced-4-ref.html
layout/reftests/mathml/stretchy-mfenced-4a.html
layout/reftests/mathml/stretchy-mfenced-4b.html
layout/reftests/mathml/stretchy-mover-1-ref.html
layout/reftests/mathml/stretchy-mover-1a.html
layout/reftests/mathml/stretchy-mover-1b.html
layout/reftests/mathml/stretchy-mover-2-ref.html
layout/reftests/mathml/stretchy-mover-2a.html
layout/reftests/mathml/stretchy-mover-2b.html
layout/reftests/mathml/stretchy-mover-3-ref.html
layout/reftests/mathml/stretchy-mover-3.html
layout/reftests/mathml/stretchy-msup-1-ref.html
layout/reftests/mathml/stretchy-msup-1a.html
layout/reftests/mathml/stretchy-msup-1b.html
layout/reftests/mathml/stretchy-msup-1c.html
layout/reftests/mathml/stretchy-msup-1d.html
layout/reftests/mathml/stretchy-munderover-1-ref.html
layout/reftests/mathml/stretchy-munderover-1a.html
layout/reftests/mathml/stretchy-munderover-1b.html
layout/reftests/mathml/stretchy-munderover-1c.html
layout/reftests/mathml/stretchy-munderover-1d.html
layout/reftests/mathml/stretchy-munderover-1e.html
layout/reftests/mathml/stretchy-munderover-2-ref.html
layout/reftests/mathml/stretchy-munderover-2a.html
layout/reftests/mathml/stretchy-munderover-2b.html
layout/reftests/mathml/stretchy-munderover-2c.html
layout/reftests/mathml/stretchy-munderover-2d.html
layout/reftests/mathml/stretchy-munderover-2e.html
layout/reftests/mathml/stretchy-munderover-2f.html
layout/reftests/mathml/stretchy-munderover-2g.html
layout/reftests/mathml/stretchy-munderover-3-ref.html
layout/reftests/mathml/stretchy-munderover-3a.html
layout/reftests/mathml/stretchy-munderover-3b.html
layout/reftests/mathml/stretchy-munderover-3c.html
layout/reftests/mathml/stretchy-munderover-3d.html
layout/reftests/mathml/subscript-italic-correction-ref.html
layout/reftests/mathml/subscript-italic-correction.html
layout/reftests/mathml/table-width-2-ref.html
layout/reftests/mathml/table-width-2.html
layout/reftests/mathml/table-width-3-ref.html
layout/reftests/mathml/table-width-3.html
layout/reftests/mathml/table-width-4-ref.html
layout/reftests/mathml/table-width-4.html
layout/reftests/mathml/tablespacing-4-ref.html
layout/reftests/mathml/tablespacing-4.html
layout/reftests/mathml/tablespacing-5-ref.html
layout/reftests/mathml/tablespacing-5.html
layout/reftests/mathml/tablespacing-5a-ref.html
layout/reftests/mathml/tablespacing-5a.html
layout/reftests/mathml/tablespacing-6-ref.html
layout/reftests/mathml/tablespacing-6.html
--- a/layout/reftests/mathml/default-font-ref.html
+++ b/layout/reftests/mathml/default-font-ref.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head>
     <title>default font</title>
     <meta charset="utf-8"/>
   </head>
   <body style="font: 20px monospace;">
 
     <math style="font-family: serif; font-size: 40px;">
--- a/layout/reftests/mathml/default-font.html
+++ b/layout/reftests/mathml/default-font.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head>
     <title>default font</title>
     <meta charset="utf-8"/>
   </head>
   <body style="font: 20px monospace;">
 
     <!-- font.minimum-size.x-math set to 40 -->
--- a/layout/reftests/mathml/displaystyle-1-ref.html
+++ b/layout/reftests/mathml/displaystyle-1-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <head>
     <title>displaystyle</title>
     <meta charset="utf-8"/>
   </head>
   <body>
 
     <!-- Test displaystyle on mstyle -->
--- a/layout/reftests/mathml/displaystyle-1.html
+++ b/layout/reftests/mathml/displaystyle-1.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <head>
     <title>displaystyle</title>
     <meta charset="utf-8"/>
   </head>
   <body>
 
     <!-- Test displaystyle on mstyle -->
--- a/layout/reftests/mathml/displaystyle-2-ref.html
+++ b/layout/reftests/mathml/displaystyle-2-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <head>
     <title>displaystyle</title>
     <meta charset="utf-8"/>
   </head>
   <body>
 
     <!-- Test the effect of displaystyle on munder, mover and munderover -->
--- a/layout/reftests/mathml/displaystyle-2.html
+++ b/layout/reftests/mathml/displaystyle-2.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <head>
     <title>displaystyle</title>
     <meta charset="utf-8"/>
   </head>
   <body>
 
     <!-- Test the effect of displaystyle on munder, mover and munderover -->
--- a/layout/reftests/mathml/displaystyle-3-ref.html
+++ b/layout/reftests/mathml/displaystyle-3-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <head>
     <title>displaystyle</title>
     <meta charset="utf-8"/>
   </head>
   <body>
 
     <!-- Test dynamic change of displaystyle -->
--- a/layout/reftests/mathml/displaystyle-3.html
+++ b/layout/reftests/mathml/displaystyle-3.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>displaystyle</title>
     <meta charset="utf-8"/>
     <script type="text/javascript">
       function doTest() {
         document.getElementById("m1").setAttribute("displaystyle", "true");
         document.getElementById("m2").setAttribute("displaystyle", "true");
--- a/layout/reftests/mathml/displaystyle-4-ref.html
+++ b/layout/reftests/mathml/displaystyle-4-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <head>
     <title>displaystyle</title>
     <meta charset="utf-8"/>
   </head>
   <body>
 
     <!-- Test dynamic change (see bug 832800) -->
--- a/layout/reftests/mathml/displaystyle-4.html
+++ b/layout/reftests/mathml/displaystyle-4.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>displaystyle</title>
     <meta charset="utf-8"/>
     <script type="text/javascript">
       function doTest() {
         document.getElementById('mathOperator').
                  setAttribute('mathbackground', 'red');
--- a/layout/reftests/mathml/dtls-1-ref.html
+++ b/layout/reftests/mathml/dtls-1-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <head>
   <style type="text/css" media="screen, print">
     @font-face {
       font-family: "dtls-1";
       src: url(../fonts/math/dtls-1.otf);
     }
     math {
       font-family: dtls-1;
--- a/layout/reftests/mathml/dtls-1.html
+++ b/layout/reftests/mathml/dtls-1.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <head>
   <style type="text/css" media="screen, print">
     @font-face {
       font-family: "dtls-1";
       src: url(../fonts/math/dtls-1.otf);
     }
     math {
       font-family: dtls-1;
--- a/layout/reftests/mathml/dtls-2-ref.html
+++ b/layout/reftests/mathml/dtls-2-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <head>
   <style type="text/css" media="screen, print">
     @font-face {
       font-family: "dtls-1";
       src: url(../fonts/math/dtls-1.otf);
     }
   </style>
--- a/layout/reftests/mathml/dtls-2.html
+++ b/layout/reftests/mathml/dtls-2.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <style type="text/css" media="screen, print">
     @font-face {
       font-family: "dtls-1";
       src: url(../fonts/math/dtls-1.otf);
     }
   </style>
   </head>
--- a/layout/reftests/mathml/dtls-3-ref.html
+++ b/layout/reftests/mathml/dtls-3-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <head>
   <style type="text/css" media="screen, print">
     @font-face {
       font-family: "dtls-1";
       src: url(../fonts/math/dtls-1.otf);
     }
   </style>
--- a/layout/reftests/mathml/dtls-3.html
+++ b/layout/reftests/mathml/dtls-3.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <style type="text/css" media="screen, print">
     @font-face {
       font-family: "dtls-1";
       src: url(../fonts/math/dtls-1.otf);
     }
   </style>
   </head>
--- a/layout/reftests/mathml/embellished-op-1-1-ref.html
+++ b/layout/reftests/mathml/embellished-op-1-1-ref.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head>
     <title>embellished operators 1: maction</title>
   </head>
 
   <body>
     <div>
       <!-- maction whose selected child is embellished op -->
--- a/layout/reftests/mathml/embellished-op-1-1.html
+++ b/layout/reftests/mathml/embellished-op-1-1.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head>
     <title>embellished operators 1: maction</title>
   </head>
 
   <body>
     <div>
       <!-- maction whose selected child is embellished op -->
--- a/layout/reftests/mathml/embellished-op-1-2-ref.html
+++ b/layout/reftests/mathml/embellished-op-1-2-ref.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head>
     <title>embellished operators 1: mrow</title>
   </head>
 
   <body>
     <div>
       <!-- mrow whose child is embellished op -->
--- a/layout/reftests/mathml/embellished-op-1-2.html
+++ b/layout/reftests/mathml/embellished-op-1-2.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head>
     <title>embellished operators 1: mrow</title>
   </head>
 
   <body>
     <div>
       <!-- mrow whose child is embellished op -->
--- a/layout/reftests/mathml/embellished-op-1-3-ref.html
+++ b/layout/reftests/mathml/embellished-op-1-3-ref.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head>
     <title>embellished operators 1: mstyle</title>
   </head>
 
   <body>
     <div>
       <!-- mstyle whose child is embellished op -->
--- a/layout/reftests/mathml/embellished-op-1-3.html
+++ b/layout/reftests/mathml/embellished-op-1-3.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head>
     <title>embellished operators 1: mstyle</title>
   </head>
 
   <body>
     <div>
       <!-- mstyle whose child is embellished op -->
--- a/layout/reftests/mathml/embellished-op-1-4-ref.html
+++ b/layout/reftests/mathml/embellished-op-1-4-ref.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head>
     <title>embellished operators 1: mpadded</title>
   </head>
 
   <body>
     <div>
       <!-- mpadded whose child is embellished op -->
--- a/layout/reftests/mathml/embellished-op-1-4.html
+++ b/layout/reftests/mathml/embellished-op-1-4.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head>
     <title>embellished operators 1: mpadded</title>
   </head>
 
   <body>
     <div>
       <!-- mpadded whose child is embellished op -->
--- a/layout/reftests/mathml/embellished-op-1-5-ref.html
+++ b/layout/reftests/mathml/embellished-op-1-5-ref.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head>
     <title>embellished operators 1: mphantom</title>
   </head>
 
   <body>
     <div>
       <!-- mphantom whose child is embellished op -->
--- a/layout/reftests/mathml/embellished-op-1-5.html
+++ b/layout/reftests/mathml/embellished-op-1-5.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head>
     <title>embellished operators 1: mphantom</title>
   </head>
 
   <body>
     <div>
       <!-- mphantom whose child is embellished op -->
--- a/layout/reftests/mathml/embellished-op-2-1-ref.html
+++ b/layout/reftests/mathml/embellished-op-2-1-ref.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head>
     <title>embellished operators: ignore space-like children</title>
   </head>
 
   <body>
     <div>
       <!-- first child space-like -->
--- a/layout/reftests/mathml/embellished-op-2-1.html
+++ b/layout/reftests/mathml/embellished-op-2-1.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head>
     <title>embellished operators: ignore space-like children</title>
   </head>
 
   <body>
     <div>
       <!-- first child space-like -->
--- a/layout/reftests/mathml/embellished-op-2-2-ref.html
+++ b/layout/reftests/mathml/embellished-op-2-2-ref.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head>
     <title>embellished operators: ignore space-like children</title>
   </head>
 
   <body>
     <div>
       <!-- last child space-like -->
--- a/layout/reftests/mathml/embellished-op-2-2.html
+++ b/layout/reftests/mathml/embellished-op-2-2.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head>
     <title>embellished operators: ignore space-like children</title>
   </head>
 
   <body>
     <div>
       <!-- last child space-like -->
--- a/layout/reftests/mathml/embellished-op-2-3-ref.html
+++ b/layout/reftests/mathml/embellished-op-2-3-ref.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head>
     <title>embellished operators: ignore space-like children</title>
   </head>
 
   <body>
     <div>
       <!-- first and last children space-like -->
--- a/layout/reftests/mathml/embellished-op-2-3.html
+++ b/layout/reftests/mathml/embellished-op-2-3.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head>
     <title>embellished operators: ignore space-like children</title>
   </head>
 
   <body>
     <div>
       <!-- first and last children space-like -->
--- a/layout/reftests/mathml/embellished-op-2-4-ref.html
+++ b/layout/reftests/mathml/embellished-op-2-4-ref.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head>
     <title>embellished operators: ignore space-like children</title>
   </head>
 
   <body>
     <div>
       <!-- many space-like children -->
--- a/layout/reftests/mathml/embellished-op-2-4.html
+++ b/layout/reftests/mathml/embellished-op-2-4.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head>
     <title>embellished operators: ignore space-like children</title>
   </head>
 
   <body>
     <div>
       <!-- many space-like children -->
--- a/layout/reftests/mathml/embellished-op-3-1-ref.html
+++ b/layout/reftests/mathml/embellished-op-3-1-ref.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head>
     <title>embellished operators: maction and mrow-like as space-like children
     </title>
   </head>
 
   <body>
     <div>
--- a/layout/reftests/mathml/embellished-op-3-1.html
+++ b/layout/reftests/mathml/embellished-op-3-1.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head>
     <title>embellished operators: maction and mrow-like as space-like children
     </title>
   </head>
 
   <body>
     <div>
--- a/layout/reftests/mathml/embellished-op-3-2-ref.html
+++ b/layout/reftests/mathml/embellished-op-3-2-ref.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head>
     <title>embellished operators: maction and mrow-like as space-like children
     </title>
   </head>
 
   <body>
     <div>
--- a/layout/reftests/mathml/embellished-op-3-2.html
+++ b/layout/reftests/mathml/embellished-op-3-2.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head>
     <title>embellished operators: maction and mrow-like as space-like children
     </title>
   </head>
 
   <body>
     <div>
--- a/layout/reftests/mathml/embellished-op-3-3-ref.html
+++ b/layout/reftests/mathml/embellished-op-3-3-ref.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head>
     <title>embellished operators: maction and mrow-like as space-like children
     </title>
   </head>
 
   <body>
     <div>
--- a/layout/reftests/mathml/embellished-op-3-3.html
+++ b/layout/reftests/mathml/embellished-op-3-3.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head>
     <title>embellished operators: maction and mrow-like as space-like children
     </title>
   </head>
 
   <body>
     <div>
--- a/layout/reftests/mathml/embellished-op-3-4-ref.html
+++ b/layout/reftests/mathml/embellished-op-3-4-ref.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head>
     <title>embellished operators: maction and mrow-like as space-like children
     </title>
   </head>
 
   <body>
     <div>
--- a/layout/reftests/mathml/embellished-op-3-4.html
+++ b/layout/reftests/mathml/embellished-op-3-4.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head>
     <title>embellished operators: maction and mrow-like as space-like children
     </title>
   </head>
 
   <body>
     <div>
--- a/layout/reftests/mathml/embellished-op-3-5-ref.html
+++ b/layout/reftests/mathml/embellished-op-3-5-ref.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head>
     <title>embellished operators: maction and mrow-like as space-like children
     </title>
   </head>
 
   <body>
     <div>
--- a/layout/reftests/mathml/embellished-op-3-5.html
+++ b/layout/reftests/mathml/embellished-op-3-5.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head>
     <title>embellished operators: maction and mrow-like as space-like children
     </title>
   </head>
 
   <body>
     <div>
--- a/layout/reftests/mathml/embellished-op-4-1-ref.html
+++ b/layout/reftests/mathml/embellished-op-4-1-ref.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head>
     <title>embellished operators 4-1: some non-space-like children</title>
   </head>
 
   <body>
     <div>
       <!-- two embellished operators -->
--- a/layout/reftests/mathml/embellished-op-4-1.html
+++ b/layout/reftests/mathml/embellished-op-4-1.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head>
     <title>embellished operators 4-1: some non-space-like children</title>
   </head>
 
   <body>
     <div>
       <!-- two embellished operators -->
--- a/layout/reftests/mathml/embellished-op-4-2-ref.html
+++ b/layout/reftests/mathml/embellished-op-4-2-ref.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head>
     <title>embellished operators 4-2: some non-space-like children</title>
   </head>
 
   <body>
     <div>
       <!-- a non-space-like child before-->
--- a/layout/reftests/mathml/embellished-op-4-2.html
+++ b/layout/reftests/mathml/embellished-op-4-2.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head>
     <title>embellished operators 4-2: some non-space-like children</title>
   </head>
 
   <body>
     <div>
       <!-- a non-space-like child before-->
--- a/layout/reftests/mathml/embellished-op-4-3-ref.html
+++ b/layout/reftests/mathml/embellished-op-4-3-ref.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head>
     <title>embellished operators 4-3: some non-space-like children</title>
   </head>
 
   <body>
     <div>
       <!-- a non-space-like child after-->
--- a/layout/reftests/mathml/embellished-op-4-3.html
+++ b/layout/reftests/mathml/embellished-op-4-3.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head>
     <title>embellished operators 4-3: some non-space-like children</title>
   </head>
 
   <body>
     <div>
       <!-- a non-space-like child after-->
--- a/layout/reftests/mathml/embellished-op-5-1.html
+++ b/layout/reftests/mathml/embellished-op-5-1.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head>
     <title>embellished operators 5: vertical stretchy operator</title>
   </head>
 
   <body>
     <div>
       <math xmlns="http://www.w3.org/1998/Math/MathML">
--- a/layout/reftests/mathml/embellished-op-5-2.html
+++ b/layout/reftests/mathml/embellished-op-5-2.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head>
     <title>embellished operators 5: vertical stretchy operator</title>
   </head>
 
   <body>
     <div>
       <math xmlns="http://www.w3.org/1998/Math/MathML">
--- a/layout/reftests/mathml/embellished-op-5-ref.html
+++ b/layout/reftests/mathml/embellished-op-5-ref.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head>
     <title>embellished operators 5: vertical stretchy operator</title>
   </head>
 
   <body>
     <div>
       <math xmlns="http://www.w3.org/1998/Math/MathML">
--- a/layout/reftests/mathml/font-inflation-1-ref.html
+++ b/layout/reftests/mathml/font-inflation-1-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Font Inflation</title>
     <meta charset="utf-8"/>
     <style>
       @font-face {
         font-family: "dtls-1";
         src: url(../fonts/math/dtls-1.otf);
--- a/layout/reftests/mathml/font-inflation-1.html
+++ b/layout/reftests/mathml/font-inflation-1.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>Font Inflation</title>
     <meta charset="utf-8"/>
     <style>
       @font-face {
         font-family: "dtls-1";
         src: url(../fonts/math/dtls-1.otf);
--- a/layout/reftests/mathml/maction-dynamic-1-ref.html
+++ b/layout/reftests/mathml/maction-dynamic-1-ref.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
 <title>dynamic maction 1</title>
 </head>
 
 <body>
 
 <p>
--- a/layout/reftests/mathml/maction-dynamic-1.html
+++ b/layout/reftests/mathml/maction-dynamic-1.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
 <head>
 <title>dynamic maction 1</title>
 </head>
 
 <body>
 
 <p>
--- a/layout/reftests/mathml/maction-dynamic-2-ref.html
+++ b/layout/reftests/mathml/maction-dynamic-2-ref.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
 <title>dynamic maction 2</title>
 </head>
 
 <body>
 
 <p>
--- a/layout/reftests/mathml/maction-dynamic-2.html
+++ b/layout/reftests/mathml/maction-dynamic-2.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
 <head>
 <title>dynamic maction 2</title>
 </head>
 
 <body>
 
 <p>
--- a/layout/reftests/mathml/maction-dynamic-3-ref.html
+++ b/layout/reftests/mathml/maction-dynamic-3-ref.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
 <title>dynamic maction 3</title>
 </head>
 
 <body>
 
 <!-- This element generates an invalid markup error. -->
--- a/layout/reftests/mathml/maction-dynamic-3.html
+++ b/layout/reftests/mathml/maction-dynamic-3.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
 <head>
 <title>dynamic maction 3</title>
 </head>
 
 <body>
 
 <p>
--- a/layout/reftests/mathml/maction-dynamic-embellished-op-ref.html
+++ b/layout/reftests/mathml/maction-dynamic-embellished-op-ref.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
 
 <head>
 <title>dynamic maction and embellished op</title>
 </head>
 
 <body>
 
--- a/layout/reftests/mathml/maction-dynamic-embellished-op.html
+++ b/layout/reftests/mathml/maction-dynamic-embellished-op.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html class="reftest-wait">
 
 <head>
 <title>dynamic maction and embellished op</title>
 </head>
 
 <body>
 
--- a/layout/reftests/mathml/maction-selection-ref.html
+++ b/layout/reftests/mathml/maction-selection-ref.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
 <title>maction selection</title>
 </head>
 
 <body>
 
 <p>Statusline:
--- a/layout/reftests/mathml/maction-selection.html
+++ b/layout/reftests/mathml/maction-selection.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
 <title>maction selection</title>
 </head>
 
 <body>
 
 <p>Statusline:
--- a/layout/reftests/mathml/math-display-ref.html
+++ b/layout/reftests/mathml/math-display-ref.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <body>
     <math>
       <munderover>
         <mo>&sum;</mo>
         <mi>b</mi>
         <mi>c</mi>
       </munderover>
--- a/layout/reftests/mathml/math-display.html
+++ b/layout/reftests/mathml/math-display.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <body>
     <math>
       <mstyle displaystyle="false">
         <munderover>
           <mo>&sum;</mo>
           <mi>b</mi>
           <mi>c</mi>
--- a/layout/reftests/mathml/mathml-negativespace-ref.html
+++ b/layout/reftests/mathml/mathml-negativespace-ref.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>	
   <head></head>
   <body>
     <p>
       <math>
 	<mrow>
 	  <mi>x</mi> <mspace width="negativeveryverythinmathspace"></mspace> <mi>y</mi> 
 	</mrow>
--- a/layout/reftests/mathml/mathml-negativespace.html
+++ b/layout/reftests/mathml/mathml-negativespace.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>	
   <head></head>
   <body>
     <p>
       <math>
 	<mrow>
 	  <mi>x</mi> <mspace width="-0.0555555556em"></mspace> <mi>y</mi> 
 	</mrow>
--- a/layout/reftests/mathml/mathscript-1-ref.html
+++ b/layout/reftests/mathml/mathscript-1-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <head>
 
   <!-- This font only has glyphs defined for 'A', 'B', 'C' and 'D', and is
        designed purely for testing ssty  and OpenType 'math' script
        functionality 
        The glyphs for 'A' and 'D' are identical, the difference between them is
        that 'A' supports the ssty font feature. 
        'A' with ssty = 1 maps to 'B'
--- a/layout/reftests/mathml/mathscript-1.html
+++ b/layout/reftests/mathml/mathscript-1.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <head>
   <style type="text/css" media="screen, print">
     @font-face {
       font-family: "mathssty";
       src: url("mathssty.woff");
     }
   </style>
 </head>
--- a/layout/reftests/mathml/mathscript-2-ref.html
+++ b/layout/reftests/mathml/mathscript-2-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Dynamic OpenType 'math' script tests</title>
     <!-- See mathscript-1-ref.html for an explanation of this font -->
     <style type="text/css" media="screen, print">
     @font-face {
       font-family: "mathssty";
       src: url("mathssty.woff");
--- a/layout/reftests/mathml/mathscript-2.html
+++ b/layout/reftests/mathml/mathscript-2.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>Dynamic OpenType 'math' script tests</title>
     <!-- See mathscript-1-ref.html for an explanation of this font -->
     <style type="text/css" media="screen, print">
     @font-face {
       font-family: "mathssty";
       src: url("mathssty.woff");
--- a/layout/reftests/mathml/mathvariant-1a-ref.html
+++ b/layout/reftests/mathml/mathvariant-1a-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
 
   <head>
     <title>Test mathvariant character mappings</title>
   </head>
   <body>
     <math>
       <mrow>
--- a/layout/reftests/mathml/mathvariant-1a.html
+++ b/layout/reftests/mathml/mathvariant-1a.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
 
   <head>
     <title>Test mathvariant character mappings</title>
   </head>
   <body>
     <math>
       <mrow>
--- a/layout/reftests/mathml/mathvariant-1b-ref.html
+++ b/layout/reftests/mathml/mathvariant-1b-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
 
   <head>
     <title>Test mathvariant character mappings</title>
   </head>
   <body>
     <math>
       <mrow>
--- a/layout/reftests/mathml/mathvariant-1b.html
+++ b/layout/reftests/mathml/mathvariant-1b.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
 
   <head>
     <title>Test mathvariant character mappings</title>
   </head>
   <body>
     <math>
       <mrow>
--- a/layout/reftests/mathml/mathvariant-1c-ref.html
+++ b/layout/reftests/mathml/mathvariant-1c-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
 
   <head>
     <title>Test mathvariant character mappings</title>
   </head>
   <body>
     <math>
       <mrow>
--- a/layout/reftests/mathml/mathvariant-1c.html
+++ b/layout/reftests/mathml/mathvariant-1c.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
 
   <head>
     <title>Test mathvariant character mappings</title>
   </head>
   <body>
     <math>
       <mrow>
--- a/layout/reftests/mathml/mathvariant-1d-ref.html
+++ b/layout/reftests/mathml/mathvariant-1d-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
 
   <head>
     <title>Test mathvariant character mappings</title>
   </head>
   <body>
     <math>
       <mrow>
--- a/layout/reftests/mathml/mathvariant-1d.html
+++ b/layout/reftests/mathml/mathvariant-1d.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
 
   <head>
     <title>Test mathvariant character mappings</title>
   </head>
   <body>
     <math>
       <mrow>
--- a/layout/reftests/mathml/mathvariant-2-ref.html
+++ b/layout/reftests/mathml/mathvariant-2-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Test mathvariant exception mappings</title>
   </head>
   <body>
     <math>
       <mrow>
         <mtext>&#x1d6a4;&#x1d6a5;</mtext>
--- a/layout/reftests/mathml/mathvariant-2.html
+++ b/layout/reftests/mathml/mathvariant-2.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Test mathvariant exception mappings</title>
   </head>
   <body>
     <math>
       <mrow>
         <mtext mathvariant="italic">&#x0131;&#x0237;</mtext>
--- a/layout/reftests/mathml/mathvariant-3-ref.html
+++ b/layout/reftests/mathml/mathvariant-3-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Test math-variant interaction with fontstyle and fontweight</title>
   </head>
   <body>
     <math>
       <mrow>
         <mtext>A</mtext>
--- a/layout/reftests/mathml/mathvariant-3.html
+++ b/layout/reftests/mathml/mathvariant-3.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Test math-variant interaction with fontstyle and fontweight</title>
   </head>
   <body>
     <math>
       <mrow>
         <mtext mathvariant="normal" fontweight="bold">A</mtext>
--- a/layout/reftests/mathml/mathvariant-4-ref.html
+++ b/layout/reftests/mathml/mathvariant-4-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <head>
     <title>More mathvariant tests</title>
   </head>
   <body>
     <math>
       <mrow>
         <!-- mathvariant on characters that are already in the Mathematical
--- a/layout/reftests/mathml/mathvariant-4.html
+++ b/layout/reftests/mathml/mathvariant-4.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <head>
     <title>More mathvariant tests</title>
   </head>
   <body>
     <math>
       <mrow>
         <mtext mathvariant="fraktur">&#x1d49c;</mtext>
--- a/layout/reftests/mathml/mathvariant-5-ref.html
+++ b/layout/reftests/mathml/mathvariant-5-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Dynamic mathvariant tests</title>
   </head>
   <body>
     <math>
       <mrow>
         <mi id="Mi0" mathvariant="script">A</mi>
--- a/layout/reftests/mathml/mathvariant-5.html
+++ b/layout/reftests/mathml/mathvariant-5.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>Dynamic mathvariant tests</title>
   </head>
   <body>
     <math>
       <mrow>
         <mi id="Mi0">A</mi>
--- a/layout/reftests/mathml/menclose-2-actuarial-ref.html
+++ b/layout/reftests/mathml/menclose-2-actuarial-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>menclose actuarial</title>
     <meta charset="utf-8"/>
     <script type="text/javascript">
       function doTest()
       {
         var box = document.getElementById("box").getBoundingClientRect();
--- a/layout/reftests/mathml/menclose-2-actuarial.html
+++ b/layout/reftests/mathml/menclose-2-actuarial.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>menclose actuarial</title>
     <meta charset="utf-8"/>
     <script type="text/javascript">
       function doTest()
       {
         var box = document.getElementById("box").getBoundingClientRect();
--- a/layout/reftests/mathml/menclose-2-bottom-ref.html
+++ b/layout/reftests/mathml/menclose-2-bottom-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>menclose bottom</title>
     <meta charset="utf-8"/>
     <script type="text/javascript">
       function doTest()
       {
         var box = document.getElementById("box").getBoundingClientRect();
--- a/layout/reftests/mathml/menclose-2-bottom.html
+++ b/layout/reftests/mathml/menclose-2-bottom.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>menclose bottom</title>
     <meta charset="utf-8"/>
     <script type="text/javascript">
       function doTest()
       {
         var box = document.getElementById("box").getBoundingClientRect();
--- a/layout/reftests/mathml/menclose-2-box-ref.html
+++ b/layout/reftests/mathml/menclose-2-box-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>menclose box</title>
     <meta charset="utf-8"/>
     <script type="text/javascript">
       function doTest()
       {
         var box = document.getElementById("box").getBoundingClientRect();
--- a/layout/reftests/mathml/menclose-2-box.html
+++ b/layout/reftests/mathml/menclose-2-box.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>menclose box</title>
     <meta charset="utf-8"/>
     <script type="text/javascript">
       function doTest()
       {
         var box = document.getElementById("box").getBoundingClientRect();
--- a/layout/reftests/mathml/menclose-2-circle-ref.html
+++ b/layout/reftests/mathml/menclose-2-circle-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>menclose circle</title>
     <meta charset="utf-8"/>
     <script type="text/javascript">
       function doTest()
       {
         var box = document.getElementById("circle").getBoundingClientRect();
--- a/layout/reftests/mathml/menclose-2-circle.html
+++ b/layout/reftests/mathml/menclose-2-circle.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>menclose circle</title>
     <meta charset="utf-8"/>
     <script type="text/javascript">
       function doTest()
       {
         var box = document.getElementById("circle").getBoundingClientRect();
--- a/layout/reftests/mathml/menclose-2-downdiagonalstrike-ref.html
+++ b/layout/reftests/mathml/menclose-2-downdiagonalstrike-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>menclose downdiagonalstrike</title>
     <meta charset="utf-8"/>
     <script type="text/javascript">
       function doTest()
       {
         var box = document.getElementById("box").getBoundingClientRect();
--- a/layout/reftests/mathml/menclose-2-downdiagonalstrike.html
+++ b/layout/reftests/mathml/menclose-2-downdiagonalstrike.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>menclose downdiagonalstrike</title>
     <meta charset="utf-8"/>
     <script type="text/javascript">
       function doTest()
       {
         var box = document.getElementById("box").getBoundingClientRect();
--- a/layout/reftests/mathml/menclose-2-horizontalstrike-ref.html
+++ b/layout/reftests/mathml/menclose-2-horizontalstrike-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>menclose horizontalstrike</title>
     <meta charset="utf-8"/>
     <script type="text/javascript">
       function doTest()
       {
         var box = document.getElementById("box").getBoundingClientRect();
--- a/layout/reftests/mathml/menclose-2-horizontalstrike.html
+++ b/layout/reftests/mathml/menclose-2-horizontalstrike.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>menclose horizontalstrike</title>
     <meta charset="utf-8"/>
     <script type="text/javascript">
       function doTest()
       {
         var box = document.getElementById("box").getBoundingClientRect();
--- a/layout/reftests/mathml/menclose-2-left-ref.html
+++ b/layout/reftests/mathml/menclose-2-left-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>menclose left</title>
     <meta charset="utf-8"/>
     <script type="text/javascript">
       function doTest()
       {
         var box = document.getElementById("box").getBoundingClientRect();
--- a/layout/reftests/mathml/menclose-2-left.html
+++ b/layout/reftests/mathml/menclose-2-left.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>menclose left</title>
     <meta charset="utf-8"/>
     <script type="text/javascript">
       function doTest()
       {
         var box = document.getElementById("box").getBoundingClientRect();
--- a/layout/reftests/mathml/menclose-2-longdiv-ref.html
+++ b/layout/reftests/mathml/menclose-2-longdiv-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>menclose longdiv</title>
     <meta charset="utf-8"/>
     <script type="text/javascript">
       function doTest()
       {
         var box = document.getElementById("box").getBoundingClientRect();
--- a/layout/reftests/mathml/menclose-2-longdiv.html
+++ b/layout/reftests/mathml/menclose-2-longdiv.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>menclose longdiv</title>
     <meta charset="utf-8"/>
     <script type="text/javascript">
       function doTest()
       {
         var box = document.getElementById("box").getBoundingClientRect();
--- a/layout/reftests/mathml/menclose-2-phasorangle-ref.html
+++ b/layout/reftests/mathml/menclose-2-phasorangle-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>menclose phasorangle</title>
     <meta charset="utf-8"/>
     <script type="text/javascript">
       function doTest()
       {
         var box = document.getElementById("box").getBoundingClientRect();
--- a/layout/reftests/mathml/menclose-2-phasorangle.html
+++ b/layout/reftests/mathml/menclose-2-phasorangle.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>menclose phasorangle</title>
     <meta charset="utf-8"/>
     <script type="text/javascript">
       function doTest()
       {
         var box = document.getElementById("box").getBoundingClientRect();
--- a/layout/reftests/mathml/menclose-2-right-ref.html
+++ b/layout/reftests/mathml/menclose-2-right-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>menclose right</title>
     <meta charset="utf-8"/>
     <script type="text/javascript">
       function doTest()
       {
         var box = document.getElementById("box").getBoundingClientRect();
--- a/layout/reftests/mathml/menclose-2-right.html
+++ b/layout/reftests/mathml/menclose-2-right.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>menclose right</title>
     <meta charset="utf-8"/>
     <script type="text/javascript">
       function doTest()
       {
         var box = document.getElementById("box").getBoundingClientRect();
--- a/layout/reftests/mathml/menclose-2-roundedbox-ref.html
+++ b/layout/reftests/mathml/menclose-2-roundedbox-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
 <head>
 	<meta charset="utf-8"/>
 	<title>menclose roundedbox</title>
 
 	<script type="text/javascript">
       function doTest()
       {
--- a/layout/reftests/mathml/menclose-2-roundedbox.html
+++ b/layout/reftests/mathml/menclose-2-roundedbox.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
 <head>
 	<meta charset="utf-8"/>
 	<title>menclose roundedbox</title>
 
 	<script type="text/javascript">
       function doTest()
       {
--- a/layout/reftests/mathml/menclose-2-top-ref.html
+++ b/layout/reftests/mathml/menclose-2-top-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>menclose top</title>
     <meta charset="utf-8"/>
     <script type="text/javascript">
       function doTest()
       {
         var box = document.getElementById("box").getBoundingClientRect();
--- a/layout/reftests/mathml/menclose-2-top.html
+++ b/layout/reftests/mathml/menclose-2-top.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>menclose top</title>
     <meta charset="utf-8"/>
     <script type="text/javascript">
       function doTest()
       {
         var box = document.getElementById("box").getBoundingClientRect();
--- a/layout/reftests/mathml/menclose-2-updiagonalarrow-ref.html
+++ b/layout/reftests/mathml/menclose-2-updiagonalarrow-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>menclose updiagonalarrow</title>
     <meta charset="utf-8"/>
     <script type="text/javascript">
       function doTest()
       {
         var box = document.getElementById("box").getBoundingClientRect();
--- a/layout/reftests/mathml/menclose-2-updiagonalarrow.html
+++ b/layout/reftests/mathml/menclose-2-updiagonalarrow.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>menclose updiagonalarrow</title>
     <meta charset="utf-8"/>
     <script type="text/javascript">
       function doTest()
       {
         var box = document.getElementById("box").getBoundingClientRect();
--- a/layout/reftests/mathml/menclose-2-updiagonalstrike-ref.html
+++ b/layout/reftests/mathml/menclose-2-updiagonalstrike-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
  <head>
     <title>menclose updiagonalstrike</title>
     <meta charset="utf-8"/>
     <script type="text/javascript">
       function doTest()
       {
         var box = document.getElementById("box").getBoundingClientRect();
--- a/layout/reftests/mathml/menclose-2-updiagonalstrike.html
+++ b/layout/reftests/mathml/menclose-2-updiagonalstrike.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
  <head>
     <title>menclose updiagonalstrike</title>
     <meta charset="utf-8"/>
     <script type="text/javascript">
       function doTest()
       {
         var box = document.getElementById("box").getBoundingClientRect();
--- a/layout/reftests/mathml/menclose-2-verticalstrike-ref.html
+++ b/layout/reftests/mathml/menclose-2-verticalstrike-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>menclose verticalstrike</title>
     <meta charset="utf-8"/>
     <script type="text/javascript">
       function doTest()
       {
         var box = document.getElementById("box").getBoundingClientRect();
--- a/layout/reftests/mathml/menclose-2-verticalstrike.html
+++ b/layout/reftests/mathml/menclose-2-verticalstrike.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>menclose verticalstrike</title>
     <meta charset="utf-8"/>
     <script type="text/javascript">
       function doTest()
       {
         var box = document.getElementById("box").getBoundingClientRect();
--- a/layout/reftests/mathml/menclose-3-box-ref.html
+++ b/layout/reftests/mathml/menclose-3-box-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <head>
     <title>menclose box</title>
     <meta charset="utf-8"/>
   </head>
 
   <body>
     <math>
--- a/layout/reftests/mathml/menclose-3-box.html
+++ b/layout/reftests/mathml/menclose-3-box.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <head>
     <title>menclose box</title>
     <meta charset="utf-8"/>
   </head>
 
   <body>
     <math>
--- a/layout/reftests/mathml/menclose-3-default-ref.html
+++ b/layout/reftests/mathml/menclose-3-default-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <head>
     <title>menclose default</title>
     <meta charset="utf-8"/>
   </head>
 
   <body>
     <math>
--- a/layout/reftests/mathml/menclose-3-default.html
+++ b/layout/reftests/mathml/menclose-3-default.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <head>
     <title>menclose default</title>
     <meta charset="utf-8"/>
   </head>
 
   <body>
     <math>
--- a/layout/reftests/mathml/menclose-3-invalid-ref.html
+++ b/layout/reftests/mathml/menclose-3-invalid-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <head>
     <title>menclose invalid</title>
     <meta charset="utf-8"/>
   </head>
 
   <body>
     <math>
--- a/layout/reftests/mathml/menclose-3-invalid.html
+++ b/layout/reftests/mathml/menclose-3-invalid.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <head>
     <title>menclose invalid</title>
     <meta charset="utf-8"/>
   </head>
 
   <body>
     <math>
--- a/layout/reftests/mathml/menclose-3-madruwb-ref.html
+++ b/layout/reftests/mathml/menclose-3-madruwb-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Test menclose madruwb</title>
     <meta charset="utf-8"/>
   </head>
 
   <body>
     <!-- menclose: madruwb -->
--- a/layout/reftests/mathml/menclose-3-madruwb.html
+++ b/layout/reftests/mathml/menclose-3-madruwb.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Test menclose madruwb</title>
     <meta charset="utf-8"/>
   </head>
 
   <body>
     <!-- menclose: madruwb -->
--- a/layout/reftests/mathml/menclose-3-multiple-ref.html
+++ b/layout/reftests/mathml/menclose-3-multiple-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <head>
     <title>menclose multiple</title>
     <meta charset="utf-8"/>
   </head>
 
   <body>
     <math>
--- a/layout/reftests/mathml/menclose-3-multiple.html
+++ b/layout/reftests/mathml/menclose-3-multiple.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <head>
     <title>menclose multiple</title>
     <meta charset="utf-8"/>
   </head>
 
   <body>
     <math>
--- a/layout/reftests/mathml/menclose-3-radical-ref.html
+++ b/layout/reftests/mathml/menclose-3-radical-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Test menclose radical</title>
     <meta charset="utf-8"/>
   </head>
 
   <body>
     <!-- menclose: radical -->
--- a/layout/reftests/mathml/menclose-3-radical.html
+++ b/layout/reftests/mathml/menclose-3-radical.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Test menclose radical</title>
     <meta charset="utf-8"/>
   </head>
 
   <body>
     <!-- menclose: radical -->
--- a/layout/reftests/mathml/menclose-3-unknown-ref.html
+++ b/layout/reftests/mathml/menclose-3-unknown-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <head>
     <title>menclose unknown</title>
     <meta charset="utf-8"/>
   </head>
 
   <body>
     <math>
--- a/layout/reftests/mathml/menclose-3-unknown.html
+++ b/layout/reftests/mathml/menclose-3-unknown.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <head>
     <title>menclose unknown</title>
     <meta charset="utf-8"/>
   </head>
 
   <body>
     <math>
--- a/layout/reftests/mathml/menclose-4.html
+++ b/layout/reftests/mathml/menclose-4.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>menclose inner and outer circle</title>
     <meta charset="utf-8"/>
     <script type="text/javascript">
       function doTest()
       {
         var box1 = document.getElementById("outer").getBoundingClientRect();
--- a/layout/reftests/mathml/menclose-5-actuarial-ref.html
+++ b/layout/reftests/mathml/menclose-5-actuarial-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
 	<head>
 	    <title>menclose actuarial</title>
 	</head>
 	<body>
 	    <p>
 	    	<math><menclose id="testMenclose" notation="actuarial"><mspace width="100px" height="50px"></menclose></math>
         </p>
--- a/layout/reftests/mathml/menclose-5-actuarial.html
+++ b/layout/reftests/mathml/menclose-5-actuarial.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
 	<head>
 	    <title>menclose actuarial</title>
 	        <script type="text/javascript">
 	            function doTest() {
 	                document.getElementById('testMenclose').setAttribute("notation","actuarial");
 	                document.documentElement.removeAttribute("class");
 	            }
--- a/layout/reftests/mathml/menclose-5-bottom-ref.html
+++ b/layout/reftests/mathml/menclose-5-bottom-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
 	<head>
 	    <title>menclose bottom</title>
 	</head>
 	<body>
 	    <p>
 	       <math><menclose id="testMenclose" notation="bottom"><mspace width="100px" height="50px"></menclose></math>
         </p>
--- a/layout/reftests/mathml/menclose-5-bottom.html
+++ b/layout/reftests/mathml/menclose-5-bottom.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
 	<head>
 	    <title>menclose bottom</title>
 	    <script type="text/javascript">
 	        function doTest() {
 	            document.getElementById('testMenclose').setAttribute("notation","bottom");
 	            document.documentElement.removeAttribute("class");
 	        }
--- a/layout/reftests/mathml/menclose-5-box-ref.html
+++ b/layout/reftests/mathml/menclose-5-box-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
 	<head>
 	    <title>menclose box</title>
 	</head>
 	<body>
 	    <p>
 	       <math><menclose id="testMenclose" notation="box"><mspace width="100px" height="50px"></menclose></math>
         </p>
--- a/layout/reftests/mathml/menclose-5-box.html
+++ b/layout/reftests/mathml/menclose-5-box.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
 	<head>
 	    <title>menclose box</title>
 	    <script type="text/javascript">
 	        function doTest() {
 	            document.getElementById('testMenclose').setAttribute("notation","box");
 	            document.documentElement.removeAttribute("class");
 	        }
--- a/layout/reftests/mathml/menclose-5-circle-ref.html
+++ b/layout/reftests/mathml/menclose-5-circle-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
 	<head>
 	    <title>menclose circle</title>
 	</head>
 	<body>
 	    <p>
 	       <math><menclose id="testMenclose" notation="circle"><mspace width="100px" height="50px"></mspace></menclose></math>
         </p>
--- a/layout/reftests/mathml/menclose-5-circle.html
+++ b/layout/reftests/mathml/menclose-5-circle.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
 	<head>
 	    <title>menclose circle</title>
 	    <script type="text/javascript">
 	        function doTest() {
 	            document.getElementById('testMenclose').setAttribute("notation","circle");
 	            document.documentElement.removeAttribute("class");
 	        }
--- a/layout/reftests/mathml/menclose-5-downdiagonalstrike-ref.html
+++ b/layout/reftests/mathml/menclose-5-downdiagonalstrike-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
 	<head>
 	    <title>menclose downdiagonalstrike</title>
 	</head>
 	<body>
 	    <p>
 	       <math><menclose id="testMenclose" notation="downdiagonalstrike"><mspace width="100px" height="50px"></menclose></math>
         </p>
--- a/layout/reftests/mathml/menclose-5-downdiagonalstrike.html
+++ b/layout/reftests/mathml/menclose-5-downdiagonalstrike.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
 	<head>
 	    <title>menclose downdiagonalstrike</title>
 	    <script type="text/javascript">
 	        function doTest() {
 	            document.getElementById('testMenclose').setAttribute("notation","downdiagonalstrike");
 	            document.documentElement.removeAttribute("class");
 	        }
--- a/layout/reftests/mathml/menclose-5-horizontalstrike-ref.html
+++ b/layout/reftests/mathml/menclose-5-horizontalstrike-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
 	<head>
 	    <title>menclose horizontalstrike</title>
 	</head>
 	<body>
 	    <p>
 	       <math><menclose id="testMenclose" notation="horizontalstrike"><mspace width="100px" height="50px"></menclose></math>
         </p>
--- a/layout/reftests/mathml/menclose-5-horizontalstrike.html
+++ b/layout/reftests/mathml/menclose-5-horizontalstrike.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
 	<head>
 	    <title>menclose horizontalstrike</title>
 	    <script type="text/javascript">
 	        function doTest() {
 	            document.getElementById('testMenclose').setAttribute("notation","horizontalstrike");
 	            document.documentElement.removeAttribute("class");
 	        }
--- a/layout/reftests/mathml/menclose-5-left-ref.html
+++ b/layout/reftests/mathml/menclose-5-left-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
 	<head>
 	    <title>menclose left</title>
 	</head>
 	<body>
 	    <p>
 	       <math><menclose id="testMenclose" notation="left"><mspace width="100px" height="50px"></menclose></math>
         </p>
--- a/layout/reftests/mathml/menclose-5-left.html
+++ b/layout/reftests/mathml/menclose-5-left.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
 	<head>
 	    <title>menclose left</title>
 	    <script type="text/javascript">
 	        function doTest() {
 	            document.getElementById('testMenclose').setAttribute("notation","left");
 	            document.documentElement.removeAttribute("class");
 	        }
--- a/layout/reftests/mathml/menclose-5-longdiv-ref.html
+++ b/layout/reftests/mathml/menclose-5-longdiv-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
 	<head>
 	    <title>menclose longdiv</title>
 	</head>
 	<body>
 	    <p>
 	       <math><menclose id="testMenclose" notation="longdiv"><mspace width="100px" height="50px"></menclose></math>
         </p>
--- a/layout/reftests/mathml/menclose-5-longdiv.html
+++ b/layout/reftests/mathml/menclose-5-longdiv.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
 	<head>
 	    <title>menclose longdiv</title>
 	    <script type="text/javascript">
 	        function doTest() {
 	            document.getElementById('testMenclose').setAttribute("notation","longdiv");
 	            document.documentElement.removeAttribute("class");
 	        }
--- a/layout/reftests/mathml/menclose-5-madruwb-ref.html
+++ b/layout/reftests/mathml/menclose-5-madruwb-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
 	<head>
 	    <title>menclose madruwb</title>
 	</head>
 	<body>
 	    <p>
 	       <math><menclose id="testMenclose" notation="madruwb"><mspace width="100px" height="50px"></menclose></math>
         </p>
--- a/layout/reftests/mathml/menclose-5-madruwb.html
+++ b/layout/reftests/mathml/menclose-5-madruwb.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
 	<head>
 	    <title>menclose madruwb</title>
 	    <script type="text/javascript">
 	        function doTest() {
 	            document.getElementById('testMenclose').setAttribute("notation","madruwb");
 	            document.documentElement.removeAttribute("class");
 	        }
--- a/layout/reftests/mathml/menclose-5-phasorangle-ref.html
+++ b/layout/reftests/mathml/menclose-5-phasorangle-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <head>
     <title>menclose actuarial</title>
 	</head>
   <body>
     <p>
       <math><menclose id="testMenclose" notation="phasorangle"><mspace width="100px" height="50px"></menclose></math>
     </p>
--- a/layout/reftests/mathml/menclose-5-phasorangle.html
+++ b/layout/reftests/mathml/menclose-5-phasorangle.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>menclose phasorangle</title>
       <script type="text/javascript">
         function doTest() {
           document.getElementById('testMenclose').setAttribute("notation","phasorangle");
           document.documentElement.removeAttribute("class");
         }
--- a/layout/reftests/mathml/menclose-5-radical-ref.html
+++ b/layout/reftests/mathml/menclose-5-radical-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
 	<head>
 	    <title>menclose radical</title>
 	</head>
 	<body>
 	    <p>
 	       <math><menclose id="testMenclose" notation="radical"><mspace width="100px" height="50px"></menclose></math>
         </p>
--- a/layout/reftests/mathml/menclose-5-radical.html
+++ b/layout/reftests/mathml/menclose-5-radical.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
 	<head>
 	    <title>menclose radical</title>
 	    <script type="text/javascript">
 	        function doTest() {
 	            document.getElementById('testMenclose').setAttribute("notation","radical");
 	            document.documentElement.removeAttribute("class");
 	        }
--- a/layout/reftests/mathml/menclose-5-right-ref.html
+++ b/layout/reftests/mathml/menclose-5-right-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
 	<head>
 	    <title>menclose right</title>
 	</head>
 	<body>
 	    <p>
 	       <math><menclose id="testMenclose" notation="right"><mspace width="100px" height="50px"></menclose></math>
         </p>
--- a/layout/reftests/mathml/menclose-5-right.html
+++ b/layout/reftests/mathml/menclose-5-right.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
 	<head>
 	    <title>menclose right</title>
 	    <script type="text/javascript">
 	        function doTest() {
 	            document.getElementById('testMenclose').setAttribute("notation","right");
 	            document.documentElement.removeAttribute("class");
 	        }
--- a/layout/reftests/mathml/menclose-5-roundedbox-ref.html
+++ b/layout/reftests/mathml/menclose-5-roundedbox-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
 	<head>
 	    <title>menclose roundedbox</title>
 	</head>
 	<body>
 	    <p>
 	       <math><menclose id="testMenclose" notation="roundedbox"><mspace width="100px" height="50px"></menclose></math>
         </p>
--- a/layout/reftests/mathml/menclose-5-roundedbox.html
+++ b/layout/reftests/mathml/menclose-5-roundedbox.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
 	<head>
 	    <title>menclose roundedbox</title>
 	    <script type="text/javascript">
 	        function doTest() {
 	            document.getElementById('testMenclose').setAttribute("notation","roundedbox");
 	            document.documentElement.removeAttribute("class");
 	        }
--- a/layout/reftests/mathml/menclose-5-top-ref.html
+++ b/layout/reftests/mathml/menclose-5-top-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
 	<head>
 	    <title>menclose top</title>
 	</head>
 	<body>
 	    <p>
 	       <math><menclose id="testMenclose" notation="top"><mspace width="100px" height="50px"></menclose></math>
         </p>
--- a/layout/reftests/mathml/menclose-5-top.html
+++ b/layout/reftests/mathml/menclose-5-top.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
 	<head>
 	    <title>menclose top</title>
 	    <script type="text/javascript">
 	        function doTest() {
 	            document.getElementById('testMenclose').setAttribute("notation","top");
 	            document.documentElement.removeAttribute("class");
 	        }
--- a/layout/reftests/mathml/menclose-5-updiagonalarrow-ref.html
+++ b/layout/reftests/mathml/menclose-5-updiagonalarrow-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
 	<head>
 	    <title>menclose updiagonalarrow</title>
 	</head>
 	<body>
 	    <p>
 	       <math><menclose id="testMenclose" notation="updiagonalarrow"><mspace width="100px" height="50px"></menclose></math>
         </p>
--- a/layout/reftests/mathml/menclose-5-updiagonalarrow.html
+++ b/layout/reftests/mathml/menclose-5-updiagonalarrow.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
 	<head>
 	    <title>menclose updiagonalarrow</title>
 	    <script type="text/javascript">
 	        function doTest() {
 	            document.getElementById('testMenclose').setAttribute("notation","updiagonalarrow");
 	            document.documentElement.removeAttribute("class");
 	        }
--- a/layout/reftests/mathml/menclose-5-updiagonalstrike-ref.html
+++ b/layout/reftests/mathml/menclose-5-updiagonalstrike-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
 	<head>
 	    <title>menclose updiagonalstrike</title>
 	</head>
 	<body>
 	    <p>
 	       <math><menclose id="testMenclose" notation="updiagonalstrike"><mspace width="100px" height="50px"></menclose></math>
         </p>
--- a/layout/reftests/mathml/menclose-5-updiagonalstrike.html
+++ b/layout/reftests/mathml/menclose-5-updiagonalstrike.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
 	<head>
 	    <title>menclose updiagonalstrike</title>
 	    <script type="text/javascript">
 	        function doTest() {
 	            document.getElementById('testMenclose').setAttribute("notation","updiagonalstrike");
 	            document.documentElement.removeAttribute("class");
 	        }
--- a/layout/reftests/mathml/menclose-5-verticalstrike-ref.html
+++ b/layout/reftests/mathml/menclose-5-verticalstrike-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
 	<head>
 	    <title>menclose verticalstrike</title>
 	</head>
 	<body>
 	    <p>
 	       <math><menclose id="testMenclose" notation="verticalstrike"><mspace width="100px" height="50px"></menclose></math>
         </p>
--- a/layout/reftests/mathml/menclose-5-verticalstrike.html
+++ b/layout/reftests/mathml/menclose-5-verticalstrike.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
 	<head>
 	    <title>menclose verticalstrike</title>
 	    <script type="text/javascript">
 	        function doTest() {
 	            document.getElementById('testMenclose').setAttribute("notation","verticalstrike");
 	            document.documentElement.removeAttribute("class");
 	        }
--- a/layout/reftests/mathml/menclose-6-actuarial.html
+++ b/layout/reftests/mathml/menclose-6-actuarial.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
 	<head>
 	    <title>menclose actuarial</title>
 	        <script type="text/javascript">
 	            function doTest() {
 	                document.getElementById('testMenclose').removeAttribute("notation");
 	                document.documentElement.removeAttribute("class");
 	            }
--- a/layout/reftests/mathml/menclose-6-bottom.html
+++ b/layout/reftests/mathml/menclose-6-bottom.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
 	<head>
 	    <title>menclose bottom</title>
 	        <script type="text/javascript">
 	            function doTest() {
 	                document.getElementById('testMenclose').removeAttribute("notation");
 	                document.documentElement.removeAttribute("class");
 	            }
--- a/layout/reftests/mathml/menclose-6-box.html
+++ b/layout/reftests/mathml/menclose-6-box.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
 	<head>
 	    <title>menclose box</title>
 	        <script type="text/javascript">
 	            function doTest() {
 	                document.getElementById('testMenclose').removeAttribute("notation");
 	                document.documentElement.removeAttribute("class");
 	            }
--- a/layout/reftests/mathml/menclose-6-circle.html
+++ b/layout/reftests/mathml/menclose-6-circle.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
 	<head>
 	    <title>menclose circle</title>
 	        <script type="text/javascript">
 	            function doTest() {
 	                document.getElementById('testMenclose').removeAttribute("notation");
 	                document.documentElement.removeAttribute("class");
 	            }
--- a/layout/reftests/mathml/menclose-6-downdiagonalstrike.html
+++ b/layout/reftests/mathml/menclose-6-downdiagonalstrike.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
 	<head>
 	    <title>menclose downdiagonalstrike</title>
 	        <script type="text/javascript">
 	            function doTest() {
 	                document.getElementById('testMenclose').removeAttribute("notation");
 	                document.documentElement.removeAttribute("class");
 	            }
--- a/layout/reftests/mathml/menclose-6-horizontalstrike.html
+++ b/layout/reftests/mathml/menclose-6-horizontalstrike.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
 	<head>
 	    <title>menclose horizontalstrike</title>
 	        <script type="text/javascript">
 	            function doTest() {
 	                document.getElementById('testMenclose').removeAttribute("notation");
 	                document.documentElement.removeAttribute("class");
 	            }
--- a/layout/reftests/mathml/menclose-6-left.html
+++ b/layout/reftests/mathml/menclose-6-left.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
 	<head>
 	    <title>menclose left</title>
 	        <script type="text/javascript">
 	            function doTest() {
 	                document.getElementById('testMenclose').removeAttribute("notation");
 	                document.documentElement.removeAttribute("class");
 	            }
--- a/layout/reftests/mathml/menclose-6-longdiv.html
+++ b/layout/reftests/mathml/menclose-6-longdiv.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
 	<head>
 	    <title>menclose longdiv</title>
 	        <script type="text/javascript">
 	            function doTest() {
 	                document.getElementById('testMenclose').removeAttribute("notation");
 	                document.documentElement.removeAttribute("class");
 	            }
--- a/layout/reftests/mathml/menclose-6-madruwb.html
+++ b/layout/reftests/mathml/menclose-6-madruwb.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
 	<head>
 	    <title>menclose madruwb</title>
 	        <script type="text/javascript">
 	            function doTest() {
 	                document.getElementById('testMenclose').removeAttribute("notation");
 	                document.documentElement.removeAttribute("class");
 	            }
--- a/layout/reftests/mathml/menclose-6-phasorangle.html
+++ b/layout/reftests/mathml/menclose-6-phasorangle.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>menclose phasorangle</title>
     <script type="text/javascript">
       function doTest() {
         document.getElementById('testMenclose').removeAttribute("notation");
         document.documentElement.removeAttribute("class");
       }
--- a/layout/reftests/mathml/menclose-6-radical.html
+++ b/layout/reftests/mathml/menclose-6-radical.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
 	<head>
 	    <title>menclose radical</title>
 	        <script type="text/javascript">
 	            function doTest() {
 	                document.getElementById('testMenclose').removeAttribute("notation");
 	                document.documentElement.removeAttribute("class");
 	            }
--- a/layout/reftests/mathml/menclose-6-ref.html
+++ b/layout/reftests/mathml/menclose-6-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
 	<head>
 	    <title>menclose 6 reference</title>
 	</head>
 	<body>
 	    <p>
 	    	<math><menclose><mspace width="100px" height="50px" mathbackground="blue"></mspace></menclose></math>
         </p>
--- a/layout/reftests/mathml/menclose-6-right.html
+++ b/layout/reftests/mathml/menclose-6-right.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
 	<head>
 	    <title>menclose right</title>
 	        <script type="text/javascript">
 	            function doTest() {
 	                document.getElementById('testMenclose').removeAttribute("notation");
 	                document.documentElement.removeAttribute("class");
 	            }
--- a/layout/reftests/mathml/menclose-6-roundedbox.html
+++ b/layout/reftests/mathml/menclose-6-roundedbox.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
 	<head>
 	    <title>menclose roundedbox</title>
 	        <script type="text/javascript">
 	            function doTest() {
 	                document.getElementById('testMenclose').removeAttribute("notation");
 	                document.documentElement.removeAttribute("class");
 	            }
--- a/layout/reftests/mathml/menclose-6-top.html
+++ b/layout/reftests/mathml/menclose-6-top.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
 	<head>
 	    <title>menclose top</title>
 	        <script type="text/javascript">
 	            function doTest() {
 	                document.getElementById('testMenclose').removeAttribute("notation");
 	                document.documentElement.removeAttribute("class");
 	            }
--- a/layout/reftests/mathml/menclose-6-updiagonalarrow.html
+++ b/layout/reftests/mathml/menclose-6-updiagonalarrow.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
 	<head>
 	    <title>menclose updiagonalarrow</title>
 	        <script type="text/javascript">
 	            function doTest() {
 	                document.getElementById('testMenclose').removeAttribute("notation");
 	                document.documentElement.removeAttribute("class");
 	            }
--- a/layout/reftests/mathml/menclose-6-updiagonalstrike.html
+++ b/layout/reftests/mathml/menclose-6-updiagonalstrike.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
 	<head>
 	    <title>menclose updiagonalstrike</title>
 	        <script type="text/javascript">
 	            function doTest() {
 	                document.getElementById('testMenclose').removeAttribute("notation");
 	                document.documentElement.removeAttribute("class");
 	            }
--- a/layout/reftests/mathml/menclose-6-verticalstrike.html
+++ b/layout/reftests/mathml/menclose-6-verticalstrike.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
 	<head>
 	    <title>menclose verticalstrike</title>
 	        <script type="text/javascript">
 	            function doTest() {
 	                document.getElementById('testMenclose').removeAttribute("notation");
 	                document.documentElement.removeAttribute("class");
 	            }
--- a/layout/reftests/mathml/mfenced-12-ref.html
+++ b/layout/reftests/mathml/mfenced-12-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
 
 <math style="font-size:25px; position: absolute; top: 10px; left:10px;">
   <mrow id="outer">
     <mo>(</mo>
     <mrow>
       <mn id="a" style="visibility:hidden;">a</mn>
       <mo>&amp;</mo>
--- a/layout/reftests/mathml/mfenced-12.html
+++ b/layout/reftests/mathml/mfenced-12.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
 
 <math style="font-size:25px; position: absolute; top: 10px; left:10px;">
   <mfenced id="outer" separators="&amp;">
       <mn id="a" style="visibility:hidden;">a</mn>
       <mn id="c" style="visibility:hidden;">c</mn>
   </mfenced>
 </math>
--- a/layout/reftests/mathml/mi-mathvariant-3-ref.html
+++ b/layout/reftests/mathml/mi-mathvariant-3-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Mathematica Alphanumeric Italic</title>
     <meta charset="utf-8"/>
   </head>
   <body>
 
     <math><mstyle mathbackground="red"><mphantom><mi>X</mi></mphantom></mstyle></math>
--- a/layout/reftests/mathml/mi-mathvariant-3.html
+++ b/layout/reftests/mathml/mi-mathvariant-3.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Mathematica Alphanumeric Italic</title>
     <meta charset="utf-8"/>
   </head>
   <body>
 
     <!-- The lowercase italic o should be smaller than the uppercase italic X
--- a/layout/reftests/mathml/mo-accent-dynamic-ref.html
+++ b/layout/reftests/mathml/mo-accent-dynamic-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
  <html>
    <head>
      <title>mo@accent</title>
      <meta charset="utf-8"/>
    </head>
    <body>
     <math>
       <munderover><mtext>X</mtext><mo accent="true">O</mo><mo>O</mo></munderover>
--- a/layout/reftests/mathml/mo-accent-dynamic.html
+++ b/layout/reftests/mathml/mo-accent-dynamic.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html class="reftest-wait">
    <head>
      <title>mo@accent</title>
      <meta charset="utf-8"/>
      <script type="text/javascript">
        function doTest() {
          document.getElementById('mathOperator').setAttribute('accent', 'true');
          document.documentElement.removeAttribute("class");
--- a/layout/reftests/mathml/mo-invisibleoperators-2-ref.html
+++ b/layout/reftests/mathml/mo-invisibleoperators-2-ref.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <math>
     <mo>1</mo>
   </math>
   <p>
   <math>
     <mo>2</mo>
   </math>
--- a/layout/reftests/mathml/mo-invisibleoperators-2.html
+++ b/layout/reftests/mathml/mo-invisibleoperators-2.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html class="reftest-wait">
   <body>
   <math>
     <mo id="mo1">&#x2061;<!-- FUNCTION APPLICATION --></mo>
   </math>
   <p>
   <math>
     <mo id="mo2">&#x2062;<!-- INVISIBLE TIMES --></mo>
--- a/layout/reftests/mathml/mo-invisibleoperators-ref.html
+++ b/layout/reftests/mathml/mo-invisibleoperators-ref.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <math>
     <mrow>
       <mn>1</mn>
       <mn>2</mn>
       <mn>3</mn>
       <mn>4</mn>
       <mn>5</mn>
--- a/layout/reftests/mathml/mo-invisibleoperators.html
+++ b/layout/reftests/mathml/mo-invisibleoperators.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <math>
     <mrow>
       <mn>1</mn>
       <mo>&#x2061;<!-- FUNCTION APPLICATION --></mo>
       <mn>2</mn>
       <mo>&#x2062;<!-- INVISIBLE TIMES --></mo>
       <mn>3</mn>
--- a/layout/reftests/mathml/mo-lspace-rspace-3-ref.html
+++ b/layout/reftests/mathml/mo-lspace-rspace-3-ref.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <body>
     <p>
       <math>
         <mo id="mo1" LSPACE="3em" rspace="0em">%</mo>
       </math>
     </p>
     <p>
--- a/layout/reftests/mathml/mo-lspace-rspace-3.html
+++ b/layout/reftests/mathml/mo-lspace-rspace-3.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html class="reftest-wait">
   <body>
     <p>
       <math>
         <mo id="mo1">%</mo>
       </math>
     </p>
     <p>
--- a/layout/reftests/mathml/mo-lspace-rspace-4-ref.html
+++ b/layout/reftests/mathml/mo-lspace-rspace-4-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <body>
     <p>
       <math>
         <mtext>_</mtext>
         <mrow>
           <mfrac>
             <mo lspace="1em" rspace="2em">_</mo>
--- a/layout/reftests/mathml/mo-lspace-rspace-4.html
+++ b/layout/reftests/mathml/mo-lspace-rspace-4.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <body>
     <p>
       <math>
         <mtext>_</mtext>
         <mfrac>
           <mo lspace="1em" rspace="2em">_</mo>
           <mtext>_</mtext>
--- a/layout/reftests/mathml/mo-movablelimits-dynamic-ref.html
+++ b/layout/reftests/mathml/mo-movablelimits-dynamic-ref.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
    <head>
      <title>mo@movablelimits</title>
      <meta charset="utf-8"/>
    </head>
    <body>
     <math>
       <munder>
--- a/layout/reftests/mathml/mo-movablelimits-dynamic.html
+++ b/layout/reftests/mathml/mo-movablelimits-dynamic.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html class="reftest-wait">
    <head>
      <title>mo@movablelimits</title>
      <meta charset="utf-8"/>
      <script type="text/javascript">
        function doTest() {
          document.getElementById('a').removeAttribute('movablelimits');
          document.documentElement.removeAttribute("class");
--- a/layout/reftests/mathml/mpadded-1-2-ref.html
+++ b/layout/reftests/mathml/mpadded-1-2-ref.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head>
     <title>Test mpadded</title>
     <style type="text/css">
       div#bigsquare {
         position: absolute;
         width: 100px;
         height: 100px;
--- a/layout/reftests/mathml/mpadded-1-ref.html
+++ b/layout/reftests/mathml/mpadded-1-ref.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head>
     <title>Test mpadded</title>
     <style type="text/css">
       div#bigsquare {
         position: absolute;
         width: 100px;
         height: 100px;
--- a/layout/reftests/mathml/mpadded-2-ref.html
+++ b/layout/reftests/mathml/mpadded-2-ref.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head>
     <title>Test mpadded</title>
     <style type="text/css">
       div#square1 {
         position: absolute;
         width: 100px;
         height: 100px;
--- a/layout/reftests/mathml/mpadded-3-ref.html
+++ b/layout/reftests/mathml/mpadded-3-ref.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head>
     <title>Test mpadded height depth</title>
     <style type="text/css">
       div#bigsquare1 {
         position: absolute;
         width: 100px;
         height: 50px;
--- a/layout/reftests/mathml/mpadded-5-ref.html
+++ b/layout/reftests/mathml/mpadded-5-ref.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head>
     <title>Test mpadded</title>
     <style type="text/css">
       div#square1 {
         position:absolute;
         width: 20px;
         height: 20px;
--- a/layout/reftests/mathml/mphantom-1-ref.html
+++ b/layout/reftests/mathml/mphantom-1-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <head>
     <title>mphantom</title>
     <meta charset="utf-8"/>
   </head>
   <body>
 
     <!-- <mphantom> should be invisible. -->
--- a/layout/reftests/mathml/mphantom-1.html
+++ b/layout/reftests/mathml/mphantom-1.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <head>
     <title>mphantom</title>
     <meta charset="utf-8"/>
   </head>
   <body>
 
     <!-- Test different kinds of content inside <mphantom>. -->
--- a/layout/reftests/mathml/mphantom-2-ref.html
+++ b/layout/reftests/mathml/mphantom-2-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <head>
     <title>mphantom</title>
     <meta charset="utf-8"/>
   </head>
   <body>
 
     <p>
--- a/layout/reftests/mathml/mphantom-2.html
+++ b/layout/reftests/mathml/mphantom-2.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <head>
     <title>mphantom</title>
     <meta charset="utf-8"/>
   </head>
   <body>
 
     <!-- Test that <mphantom> has the size of its content. -->
--- a/layout/reftests/mathml/mtable-columnalign-multi-mtable-dynamic.html
+++ b/layout/reftests/mathml/mtable-columnalign-multi-mtable-dynamic.html
@@ -1,9 +1,9 @@
-<!DOCTYPE>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>Test MathML columnalign</title>
     <script type="text/javascript">
       function doTest()
       {
         var table1 = document.getElementById("table1");
         var table2 = document.getElementById("table2");
--- a/layout/reftests/mathml/mtable-columnalign-multi-mtable.html
+++ b/layout/reftests/mathml/mtable-columnalign-multi-mtable.html
@@ -1,9 +1,9 @@
-<!DOCTYPE>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Test MathML columnalign</title>
   </head>
   <body>
     <b>columnalign="left center right"</b> <br />
     <math>
       <mstyle>
--- a/layout/reftests/mathml/mtable-columnalign-multi-mtr-dynamic.html
+++ b/layout/reftests/mathml/mtable-columnalign-multi-mtr-dynamic.html
@@ -1,9 +1,9 @@
-<!DOCTYPE>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>Test MathML columnalign</title>
     <script type="text/javascript">
       function doTest()
       {
         var table1 = document.getElementById("table1");
         var table2 = document.getElementById("table2");
--- a/layout/reftests/mathml/mtable-columnalign-multi-mtr.html
+++ b/layout/reftests/mathml/mtable-columnalign-multi-mtr.html
@@ -1,9 +1,9 @@
-<!DOCTYPE>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Test MathML columnalign</title>
   </head>
   <body>
     <b>columnalign="left center right"</b> <br />
     <math>
       <mstyle>
--- a/layout/reftests/mathml/mtable-columnalign-multi-ref.html
+++ b/layout/reftests/mathml/mtable-columnalign-multi-ref.html
@@ -1,9 +1,9 @@
-<!DOCTYPE>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Test MathML columnalign</title>
   </head>
   <body>
     <b>columnalign="left center right"</b> <br />
     <math>
       <mstyle>
--- a/layout/reftests/mathml/mtable-columnalign-single-mtable-dynamic.html
+++ b/layout/reftests/mathml/mtable-columnalign-single-mtable-dynamic.html
@@ -1,9 +1,9 @@
-<!DOCTYPE>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>Test MathML columnalign</title>
     <script type="text/javascript">
       function doTest()
       {
         var table1 = document.getElementById("table1");
         var table2 = document.getElementById("table2");
--- a/layout/reftests/mathml/mtable-columnalign-single-mtable.html
+++ b/layout/reftests/mathml/mtable-columnalign-single-mtable.html
@@ -1,9 +1,9 @@
-<!DOCTYPE>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Test MathML columnalign</title>
   </head>
   <body>
     <b>columnalign="left"</b> <br />
     <math>
       <mstyle>
--- a/layout/reftests/mathml/mtable-columnalign-single-mtr-dynamic.html
+++ b/layout/reftests/mathml/mtable-columnalign-single-mtr-dynamic.html
@@ -1,9 +1,9 @@
-<!DOCTYPE>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>Test MathML columnalign</title>
     <script type="text/javascript">
       function doTest()
       {
         var table1 = document.getElementById("table1");
         var table2 = document.getElementById("table2");
--- a/layout/reftests/mathml/mtable-columnalign-single-mtr.html
+++ b/layout/reftests/mathml/mtable-columnalign-single-mtr.html
@@ -1,9 +1,9 @@
-<!DOCTYPE>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Test MathML columnalign</title>
   </head>
   <body>
     <b>columnalign="left"</b> <br />
     <math>
       <mstyle>
--- a/layout/reftests/mathml/mtable-columnalign-single-ref.html
+++ b/layout/reftests/mathml/mtable-columnalign-single-ref.html
@@ -1,9 +1,9 @@
-<!DOCTYPE>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Test MathML columnalign</title>
   </head>
   <body>
     <b>columnalign="left"</b> <br />
     <math>
       <mstyle>
--- a/layout/reftests/mathml/mtable-columnlines-multi-mtable-dynamic.html
+++ b/layout/reftests/mathml/mtable-columnlines-multi-mtable-dynamic.html
@@ -1,9 +1,9 @@
-<!DOCTYPE>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>Test MathML columnlines</title>
     <script type="text/javascript">
       function doTest()
       {
         var table1 = document.getElementById("table1");
         var table2 = document.getElementById("table2");
--- a/layout/reftests/mathml/mtable-columnlines-multi-ref.html
+++ b/layout/reftests/mathml/mtable-columnlines-multi-ref.html
@@ -1,9 +1,9 @@
-<!DOCTYPE>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Test MathML columnlines</title>
   </head>
   <body>
   <b>columnlines="solid dashed"</b> <br />
   <math>
     <mstyle>
--- a/layout/reftests/mathml/mtable-columnlines-single-mtable-dynamic.html
+++ b/layout/reftests/mathml/mtable-columnlines-single-mtable-dynamic.html
@@ -1,9 +1,9 @@
-<!DOCTYPE>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>Test MathML columnlines</title>
     <script type="text/javascript">
       function doTest()
       {
         var table1 = document.getElementById("table1");
         var table2 = document.getElementById("table2");
--- a/layout/reftests/mathml/mtable-columnlines-single-ref.html
+++ b/layout/reftests/mathml/mtable-columnlines-single-ref.html
@@ -1,9 +1,9 @@
-<!DOCTYPE>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Test MathML columnlines</title>
   </head>
   <body>
   <b>columnlines="solid"</b> <br />
   <math>
     <mstyle>
--- a/layout/reftests/mathml/mtable-rowalign-multi-mtable-dynamic.html
+++ b/layout/reftests/mathml/mtable-rowalign-multi-mtable-dynamic.html
@@ -1,9 +1,9 @@
-<!DOCTYPE>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>Test MathML rowalign</title>
     <script type="text/javascript">
       function doTest()
       {
         var table1 = document.getElementById("table1");
         var table2 = document.getElementById("table2");
--- a/layout/reftests/mathml/mtable-rowalign-multi-mtable.html
+++ b/layout/reftests/mathml/mtable-rowalign-multi-mtable.html
@@ -1,9 +1,9 @@
-<!DOCTYPE>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Test MathML rowalign</title>
   </head>
   <body>
     <b>rowalign="top center bottom"</b> <br/>
     <math>
       <mstyle>
--- a/layout/reftests/mathml/mtable-rowalign-multi-ref.html
+++ b/layout/reftests/mathml/mtable-rowalign-multi-ref.html
@@ -1,9 +1,9 @@
-<!DOCTYPE>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Test MathML rowalign</title>
   </head>
   <body>
     <b>rowalign="top center bottom"</b> <br/>
     <math>
       <mstyle>
--- a/layout/reftests/mathml/mtable-rowalign-single-mtable-dynamic.html
+++ b/layout/reftests/mathml/mtable-rowalign-single-mtable-dynamic.html
@@ -1,9 +1,9 @@
-<!DOCTYPE>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>Test MathML rowalign</title>
     <script type="text/javascript">
       function doTest()
       {
         var table1 = document.getElementById("table1");
         var table2 = document.getElementById("table2");
--- a/layout/reftests/mathml/mtable-rowalign-single-mtable.html
+++ b/layout/reftests/mathml/mtable-rowalign-single-mtable.html
@@ -1,9 +1,9 @@
-<!DOCTYPE>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Test MathML rowalign</title>
   </head>
   <body>
     <b>rowalign="top"</b> <br/>
     <math>
       <mstyle>
--- a/layout/reftests/mathml/mtable-rowalign-single-mtr-dynamic.html
+++ b/layout/reftests/mathml/mtable-rowalign-single-mtr-dynamic.html
@@ -1,9 +1,9 @@
-<!DOCTYPE>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>Test MathML rowalign</title>
     <script type="text/javascript">
       function doTest()
       {
         var table1 = document.getElementById("table1");
         var table2 = document.getElementById("table2");
--- a/layout/reftests/mathml/mtable-rowalign-single-mtr.html
+++ b/layout/reftests/mathml/mtable-rowalign-single-mtr.html
@@ -1,9 +1,9 @@
-<!DOCTYPE>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Test MathML rowalign</title>
   </head>
   <body>
     <b>rowalign="top"</b> <br/>
     <math>
       <mstyle>
--- a/layout/reftests/mathml/mtable-rowalign-single-ref.html
+++ b/layout/reftests/mathml/mtable-rowalign-single-ref.html
@@ -1,9 +1,9 @@
-<!DOCTYPE>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Test MathML rowalign</title>
   </head>
   <body>
     <b>rowalign="top"</b> <br/>
     <math>
       <mstyle>
--- a/layout/reftests/mathml/mtable-rowlines-multi-mtable-dynamic.html
+++ b/layout/reftests/mathml/mtable-rowlines-multi-mtable-dynamic.html
@@ -1,9 +1,9 @@
-<!DOCTYPE>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>Test MathML rowlines</title>
     <script type="text/javascript">
       function doTest()
       {
         var table1 = document.getElementById("table1");
         var table2 = document.getElementById("table2");
--- a/layout/reftests/mathml/mtable-rowlines-multi-ref.html
+++ b/layout/reftests/mathml/mtable-rowlines-multi-ref.html
@@ -1,9 +1,9 @@
-<!DOCTYPE>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Test MathML rowlines</title>
   </head>
   <body>
   <b>rowlines="solid dashed"</b> <br />
   <math>
     <mstyle>
--- a/layout/reftests/mathml/mtable-rowlines-single-mtable-dynamic.html
+++ b/layout/reftests/mathml/mtable-rowlines-single-mtable-dynamic.html
@@ -1,9 +1,9 @@
-<!DOCTYPE>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>Test MathML rowlines</title>
     <script type="text/javascript">
       function doTest()
       {
         var table1 = document.getElementById("table1");
         var table2 = document.getElementById("table2");
--- a/layout/reftests/mathml/mtable-rowlines-single-ref.html
+++ b/layout/reftests/mathml/mtable-rowlines-single-ref.html
@@ -1,9 +1,9 @@
-<!DOCTYPE>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Test MathML rowlines</title>
   </head>
   <body>
   <b>rowlines="solid"</b> <br />
   <math>
     <mstyle>
--- a/layout/reftests/mathml/multiscripts-1-ref.html
+++ b/layout/reftests/mathml/multiscripts-1-ref.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html><head>
 <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"><title>Comparison of script elements</title></head>
   <body>
     msubsup:
     <math>
       <mmultiscripts style="background: red;">
 	<mtext style="background-color: rgba(0, 0, 255, 0.4);">AAA</mtext>
 	<mtext style="background-color: rgba(0, 255, 0, 0.4);">bbb</mtext>
--- a/layout/reftests/mathml/multiscripts-1.html
+++ b/layout/reftests/mathml/multiscripts-1.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html><head>
 <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"><title>Comparison of script elements</title></head>
   <body>
     msubsup:
     <math>
       <msubsup style="background: red;">
         <mtext style="background-color: rgba(0, 0, 255, 0.4);">AAA</mtext>
         <mtext style="background-color: rgba(0, 255, 0, 0.4);">bbb</mtext>
--- a/layout/reftests/mathml/munder-mover-align-accent-false-ref.html
+++ b/layout/reftests/mathml/munder-mover-align-accent-false-ref.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head><title></title></head>
   <body>
     <h2> Test with accent="false" </h2>
     <table border="1">
       <tr>
 	<td align="center"></td>
 	<th colspan="2">mover</th>
--- a/layout/reftests/mathml/munder-mover-align-accent-false.html
+++ b/layout/reftests/mathml/munder-mover-align-accent-false.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head><title></title></head>
   <body>
     <h2> Test with accent="false" </h2>
     <table border="1">
       <tr>
 	<td align="center"></td>
 	<th colspan="2">mover</th>
--- a/layout/reftests/mathml/munder-mover-align-accent-true-ref.html
+++ b/layout/reftests/mathml/munder-mover-align-accent-true-ref.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head><title></title></head>
   <body>
     <h2> Test with accent="true" </h2>
     <table border="1">
       <tr>
 	<td align="center"></td>
 	<th colspan="2">mover</th>
--- a/layout/reftests/mathml/munder-mover-align-accent-true.html
+++ b/layout/reftests/mathml/munder-mover-align-accent-true.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head><title></title></head>
   <body>
     <h2> Test with accent="true" </h2>
     <table border="1">
       <tr>
 	<td align="center"></td>
 	<th colspan="2">mover</th>
--- a/layout/reftests/mathml/munderover-accent-dynamic-ref.html
+++ b/layout/reftests/mathml/munderover-accent-dynamic-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
  <html>
    <head>
      <title>munderover@accent</title>
      <meta charset="utf-8"/>
    </head>
    <body>
    	<math>
       <munderover accent="true"><mtext>X</mtext><mo>O</mo><mo>O</mo></munderover>
--- a/layout/reftests/mathml/munderover-accent-dynamic.html
+++ b/layout/reftests/mathml/munderover-accent-dynamic.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html class="reftest-wait">
    <head>
      <title>munderover@accent</title>
      <meta charset="utf-8"/>
      <script type="text/javascript">
        function doTest() {
          document.getElementById('mathOperator').setAttribute('accent', 'true');
          document.documentElement.removeAttribute("class");
--- a/layout/reftests/mathml/munderover-accentunder-dynamic-ref.html
+++ b/layout/reftests/mathml/munderover-accentunder-dynamic-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
  <html>
    <head>
      <title>munderover@accentunder</title>
      <meta charset="utf-8"/>
    </head>
    <body>
     <math>
       <munderover accentunder="true"><mtext>X</mtext><mo>O</mo><mo>O</mo></munderover>
--- a/layout/reftests/mathml/munderover-accentunder-dynamic.html
+++ b/layout/reftests/mathml/munderover-accentunder-dynamic.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html class="reftest-wait">
    <head>
      <title>munderover@accentunder</title>
      <meta charset="utf-8"/>
      <script type="text/javascript">
        function doTest() {
          document.getElementById('mathOperator').setAttribute('accentunder', 'true');
          document.documentElement.removeAttribute("class");
--- a/layout/reftests/mathml/munderover-align-accent-false-ref.html
+++ b/layout/reftests/mathml/munderover-align-accent-false-ref.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head><title></title></head>
   <body>
     <h2> Test with accent="false" </h2>
     <table border="1">
       <tr>
 	<td align="center"></td>
 	<th colspan="6">munderover</th>
--- a/layout/reftests/mathml/munderover-align-accent-false.html
+++ b/layout/reftests/mathml/munderover-align-accent-false.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head><title></title></head>
   <body>
     <h2> Test with accent="false" </h2>
     <table border="1">
       <tr>
 	<td align="center"></td>	
 	<th colspan="4">munderover</th>
--- a/layout/reftests/mathml/munderover-align-accent-true-ref.html
+++ b/layout/reftests/mathml/munderover-align-accent-true-ref.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head><title></title></head>
   <body>
     <h2> Test with accent="true" </h2>
     <table border="1">
       <tr>
 	<td align="center"></td>
 	<th colspan="6">munderover</th>
--- a/layout/reftests/mathml/munderover-align-accent-true.html
+++ b/layout/reftests/mathml/munderover-align-accent-true.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head><title></title></head>
   <body>
     <h2> Test with accent="true" </h2>
     <table border="1">
       <tr>
 	<td align="center"></td>	
 	<th colspan="4">munderover</th>
--- a/layout/reftests/mathml/munderover-empty-scripts-ref.html
+++ b/layout/reftests/mathml/munderover-empty-scripts-ref.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head>
     <title>Test munderover with empty scripts</title>
   </head>
   <body>
 
     <p>munder / munderover with empty overscript:
     <math>
--- a/layout/reftests/mathml/munderover-empty-scripts.html
+++ b/layout/reftests/mathml/munderover-empty-scripts.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>
   <head>
     <title>Test munderover with empty scripts</title>
   </head>
   <body>
 
     <p>munder / munderover with empty overscript:
     <math>
--- a/layout/reftests/mathml/negative-mspace-1-ref.html
+++ b/layout/reftests/mathml/negative-mspace-1-ref.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>negative mspace</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   </head>
   <body>
     <p>
       <math>
--- a/layout/reftests/mathml/negative-mspace-1.html
+++ b/layout/reftests/mathml/negative-mspace-1.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>negative mspace</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   </head>
   <body>
     <p>
       <math>
--- a/layout/reftests/mathml/opentype-stretchy-ref.html
+++ b/layout/reftests/mathml/opentype-stretchy-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Open Type MATH - stretchy operator</title>
     <meta charset="utf-8"/>
     <style type="text/css">
       @font-face {
         font-family: stretchy;
         src: url(../fonts/math/stretchy.otf);
--- a/layout/reftests/mathml/opentype-stretchy.html
+++ b/layout/reftests/mathml/opentype-stretchy.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Open Type MATH - stretchy operator</title>
     <meta charset="utf-8"/>
     <style type="text/css">
       @font-face {
         font-family: stretchy;
         src: url(../fonts/math/stretchy.otf);
--- a/layout/reftests/mathml/positive-namedspace-ref.html
+++ b/layout/reftests/mathml/positive-namedspace-ref.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>	
   <head></head>
   <body>
     <p>
       <math>
 	<mrow>
 	  <mi>x</mi> <mspace width="0.0555555556em"></mspace> <mi>y</mi> 
 	</mrow>
--- a/layout/reftests/mathml/positive-namedspace.html
+++ b/layout/reftests/mathml/positive-namedspace.html
@@ -1,8 +1,9 @@
+<!DOCTYPE html>
 <html>	
   <head></head>
   <body>
     <p>
       <math>
 	<mrow>
 	  <mi>x</mi> <mspace width="veryverythinmathspace"></mspace> <mi>y</mi> 
 	</mrow>
--- a/layout/reftests/mathml/radicalbar-1.html
+++ b/layout/reftests/mathml/radicalbar-1.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
   <html>
   <head>
     <!-- Default to invisible text -->
     <style type="text/css" media="screen, print">
       .hidden {
         color: white;
       }
       .visible {
--- a/layout/reftests/mathml/radicalbar-1a.html
+++ b/layout/reftests/mathml/radicalbar-1a.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
   <html reftest-zoom=".5">
   <head>
     <!-- Default to invisible text -->
     <style type="text/css" media="screen, print">
       .hidden {
         color: white;
       }
       .visible {
--- a/layout/reftests/mathml/radicalbar-1b.html
+++ b/layout/reftests/mathml/radicalbar-1b.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
   <html reftest-zoom=".4">
   <head>
     <!-- Default to invisible text -->
     <style type="text/css" media="screen, print">
       .hidden {
         color: white;
       }
       .visible {
--- a/layout/reftests/mathml/radicalbar-1c.html
+++ b/layout/reftests/mathml/radicalbar-1c.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
   <html reftest-zoom=".3">
   <head>
     <!-- Default to invisible text -->
     <style type="text/css" media="screen, print">
       .hidden {
         color: white;
       }
       .visible {
--- a/layout/reftests/mathml/radicalbar-1d.html
+++ b/layout/reftests/mathml/radicalbar-1d.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
   <html reftest-zoom=".2">
   <head>
     <!-- Default to invisible text -->
     <style type="text/css" media="screen, print">
       .hidden {
         color: white;
       }
       .visible {
--- a/layout/reftests/mathml/radicalbar-2.html
+++ b/layout/reftests/mathml/radicalbar-2.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
   <html>
   <head>
     <!-- Default to invisible text -->
     <style type="text/css" media="screen, print">
       .hidden {
         color: white;
       }
       .visible {
--- a/layout/reftests/mathml/radicalbar-2a.html
+++ b/layout/reftests/mathml/radicalbar-2a.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
   <html reftest-zoom="0.5">
   <head>
     <!-- Default to invisible text -->
     <style type="text/css" media="screen, print">
       .hidden {
         color: white;
       }
       .visible {
--- a/layout/reftests/mathml/radicalbar-2b.html
+++ b/layout/reftests/mathml/radicalbar-2b.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
   <html reftest-zoom="0.4">
   <head>
     <!-- Default to invisible text -->
     <style type="text/css" media="screen, print">
       .hidden {
         color: white;
       }
       .visible {
--- a/layout/reftests/mathml/radicalbar-2c.html
+++ b/layout/reftests/mathml/radicalbar-2c.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
   <html reftest-zoom="0.3">
   <head>
     <!-- Default to invisible text -->
     <style type="text/css" media="screen, print">
       .hidden {
         color: white;
       }
       .visible {
--- a/layout/reftests/mathml/radicalbar-2d.html
+++ b/layout/reftests/mathml/radicalbar-2d.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
   <html reftest-zoom="0.2">
   <head>
     <!-- Default to invisible text -->
     <style type="text/css" media="screen, print">
       .hidden {
         color: white;
       }
       .visible {
--- a/layout/reftests/mathml/radicalbar-3.html
+++ b/layout/reftests/mathml/radicalbar-3.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
   <html>
   <head>
     <!-- Default to invisible text -->
     <style type="text/css" media="screen, print">
       .hidden {
         color: white;
       }
       .visible {
--- a/layout/reftests/mathml/radicalbar-3a.html
+++ b/layout/reftests/mathml/radicalbar-3a.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
   <html reftest-zoom="0.5">
   <head>
     <!-- Default to invisible text -->
     <style type="text/css" media="screen, print">
       .hidden {
         color: white;
       }
       .visible {
--- a/layout/reftests/mathml/radicalbar-3b.html
+++ b/layout/reftests/mathml/radicalbar-3b.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
   <html reftest-zoom="0.4">
   <head>
     <!-- Default to invisible text -->
     <style type="text/css" media="screen, print">
       .hidden {
         color: white;
       }
       .visible {
--- a/layout/reftests/mathml/radicalbar-3c.html
+++ b/layout/reftests/mathml/radicalbar-3c.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
   <html reftest-zoom="0.3">
   <head>
     <!-- Default to invisible text -->
     <style type="text/css" media="screen, print">
       .hidden {
         color: white;
       }
       .visible {
--- a/layout/reftests/mathml/radicalbar-3d.html
+++ b/layout/reftests/mathml/radicalbar-3d.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
   <html reftest-zoom="0.2">
   <head>
     <!-- Default to invisible text -->
     <style type="text/css" media="screen, print">
       .hidden {
         color: white;
       }
       .visible {
--- a/layout/reftests/mathml/scriptlevel-1-ref.html
+++ b/layout/reftests/mathml/scriptlevel-1-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <head>
     <title>scriptlevel</title>
     <meta charset="utf-8"/>
   </head>
   <body>
 
     <!-- Test scriptlevel on mstyle -->
--- a/layout/reftests/mathml/scriptlevel-1.html
+++ b/layout/reftests/mathml/scriptlevel-1.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <head>
     <title>scriptlevel</title>
     <meta charset="utf-8"/>
   </head>
   <body>
 
     <!-- Test scriptlevel on mstyle -->
--- a/layout/reftests/mathml/semantics-2-ref.html
+++ b/layout/reftests/mathml/semantics-2-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
 <head>
   <title>Various tests for semantics</title>
   <meta charset="utf-8"/>
 </head>
 
 <body>
   <p>Empty semantics (invalid): <math><maction></maction></math></p>
--- a/layout/reftests/mathml/semantics-2.html
+++ b/layout/reftests/mathml/semantics-2.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
 <head>
   <title>Various tests for semantics</title>
   <meta charset="utf-8"/>
 </head>
 
 <body>
   <p>Empty semantics (invalid): <math><semantics></semantics></math></p>
--- a/layout/reftests/mathml/semantics-3-ref.html
+++ b/layout/reftests/mathml/semantics-3-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
 <head>
   <title>Various tests for mrow</title>
   <meta charset="utf-8"/>
 </head>
 
 <body>
   <p>annotation 1: <math><mrow><mtext>annotation</mtext></mrow></math></p>
--- a/layout/reftests/mathml/semantics-3.html
+++ b/layout/reftests/mathml/semantics-3.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
 <head>
   <title>Various tests for semantics</title>
    <meta charset="utf-8"/>
 </head>
 
 <body>
   <p>annotation 1: <math><semantics><csymbol>Content MathML</csymbol><annotation>annotation</annotation><annotation>error</annotation><annotation-xml encoding="application/mathml-presentation+xml"><mtext>error</mtext></annotation-xml></semantics></math></p>
--- a/layout/reftests/mathml/ssty-1-ref.html
+++ b/layout/reftests/mathml/ssty-1-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <head>
 
   <!-- This font only has glyphs defined for 'A', 'B', 'C' and 'D', and is
        designed purely for testing ssty functionality 
        The glyphs for 'A' and 'D' are identical, the difference between them is
        that 'A' supports the ssty font feature. 
        'A' with ssty = 1 maps to 'B'
        'A' with ssty = 2 maps to 'C'-->
--- a/layout/reftests/mathml/ssty-1.html
+++ b/layout/reftests/mathml/ssty-1.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <head>
   <style type="text/css" media="screen, print">
     @font-face {
       font-family: "sstyfont";
       src: url("ssty.woff");
     }
   </style>
 </head>
--- a/layout/reftests/mathml/ssty-2-ref.html
+++ b/layout/reftests/mathml/ssty-2-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <head>
   <!-- See ssty-1-ref.html for an explanation of this font -->
   <style type="text/css" media="screen, print">
     @font-face {
       font-family: "sstyfont";
       src: url("ssty.woff");
     }
   </style>
--- a/layout/reftests/mathml/ssty-2.html
+++ b/layout/reftests/mathml/ssty-2.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <head>
   <!-- See ssty-1-ref.html for an explanation of this font -->
   <style type="text/css" media="screen, print">
     @font-face {
       font-family: "sstyfont";
       src: url("ssty.woff");
     }
   </style>
--- a/layout/reftests/mathml/ssty-3-ref.html
+++ b/layout/reftests/mathml/ssty-3-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <head>
   <!-- See ssty-1-ref.html for an explanation of this font -->
   <style type="text/css" media="screen, print">
     @font-face {
       font-family: "sstyfont";
       src: url("ssty.woff");
     }
   </style>
--- a/layout/reftests/mathml/ssty-3.html
+++ b/layout/reftests/mathml/ssty-3.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <head>
   <!-- See ssty-1-ref.html for an explanation of this font -->
   <style type="text/css" media="screen, print">
     @font-face {
       font-family: "sstyfont";
       src: url("ssty.woff");
     }
   </style>
--- a/layout/reftests/mathml/ssty-4-ref.html
+++ b/layout/reftests/mathml/ssty-4-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Dynamic ssty tests</title>
     <!-- See ssty-1-ref.html for an explanation of this font -->
     <style type="text/css" media="screen, print">
     @font-face {
       font-family: "sstyfont";
       src: url("ssty.woff");
--- a/layout/reftests/mathml/ssty-4.html
+++ b/layout/reftests/mathml/ssty-4.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>Dynamic ssty tests</title>
     <!-- See ssty-1-ref.html for an explanation of this font -->
     <style type="text/css" media="screen, print">
     @font-face {
       font-family: "sstyfont";
       src: url("ssty.woff");
--- a/layout/reftests/mathml/stretchy-largeop-1-ref.html
+++ b/layout/reftests/mathml/stretchy-largeop-1-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Largeop stretching</title>
     <meta charset="utf-8"/>
   </head>
   <body>
     <p>
       <math displaystyle="true">
--- a/layout/reftests/mathml/stretchy-largeop-1.html
+++ b/layout/reftests/mathml/stretchy-largeop-1.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>Largeop stretching</title>
     <meta charset="utf-8"/>
     <script type="text/javascript">
 
       function verifyGreaterThan(aElement, aReference) {
         /* Verify that the height of the element is greater than that of the
--- a/layout/reftests/mathml/stretchy-largeop-2-ref.html
+++ b/layout/reftests/mathml/stretchy-largeop-2-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <!-- Test that non-stretchy largeops are bigger in display mode -->
 
 <html>
   <head>
     <title>Largeop stretching</title>
     <meta charset="utf-8"/>
   </head>
   <body>
--- a/layout/reftests/mathml/stretchy-largeop-2.html
+++ b/layout/reftests/mathml/stretchy-largeop-2.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <!-- Test that non-stretchy largeops are bigger in display mode -->
 
 <html class="reftest-wait">
   <head>
     <title>Largeop stretching</title>
     <meta charset="utf-8"/>
     <script type="text/javascript">
 
--- a/layout/reftests/mathml/stretchy-largeop-3-ref.html
+++ b/layout/reftests/mathml/stretchy-largeop-3-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <!-- Test that non-stretchy largeops do not stretch -->
 
 <html>
   <head>
     <title>Largeop stretching</title>
     <meta charset="utf-8" />
   </head>
    <body>
--- a/layout/reftests/mathml/stretchy-largeop-3.html
+++ b/layout/reftests/mathml/stretchy-largeop-3.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <!-- Test that non-stretchy largeops do not stretch -->
 
 <html class="reftest-wait">
   <head>
     <title>Largeop stretching</title>
     <meta charset="utf-8" />
     <script type="text/javascript">
 
--- a/layout/reftests/mathml/stretchy-mfenced-1-ref.html
+++ b/layout/reftests/mathml/stretchy-mfenced-1-ref.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Stretchy mfenced</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   </head>
   <body>
     <!-- See bug 687807 -->
     <math >
--- a/layout/reftests/mathml/stretchy-mfenced-1a.html
+++ b/layout/reftests/mathml/stretchy-mfenced-1a.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Stretchy mfenced</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   </head>
   <body>
     <!-- See bug 687807 -->
     <math>
--- a/layout/reftests/mathml/stretchy-mfenced-1b.html
+++ b/layout/reftests/mathml/stretchy-mfenced-1b.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Stretchy mfenced</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   </head>
   <body>
     <!-- See bug 687807 -->
     <math>
--- a/layout/reftests/mathml/stretchy-mfenced-2-ref.html
+++ b/layout/reftests/mathml/stretchy-mfenced-2-ref.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Stretchy mfenced</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   </head>
   <body>
     <!-- See bug 687807 -->
     <math >
--- a/layout/reftests/mathml/stretchy-mfenced-2a.html
+++ b/layout/reftests/mathml/stretchy-mfenced-2a.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Stretchy mfenced</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   </head>
   <body>
     <!-- See bug 687807 -->
     <math>
--- a/layout/reftests/mathml/stretchy-mfenced-2b.html
+++ b/layout/reftests/mathml/stretchy-mfenced-2b.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Stretchy mfenced</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   </head>
   <body>
     <!-- See bug 687807 -->
     <math>
--- a/layout/reftests/mathml/stretchy-mfenced-3-ref.html
+++ b/layout/reftests/mathml/stretchy-mfenced-3-ref.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Stretchy mfenced</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   </head>
   <body>
     <!-- See bug 687807 -->
     <math>
--- a/layout/reftests/mathml/stretchy-mfenced-3a.html
+++ b/layout/reftests/mathml/stretchy-mfenced-3a.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Stretchy mfenced</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   </head>
   <body>
     <!-- See bug 687807 -->
     <math>
--- a/layout/reftests/mathml/stretchy-mfenced-3b.html
+++ b/layout/reftests/mathml/stretchy-mfenced-3b.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Stretchy mfenced</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   </head>
   <body>
     <!-- See bug 687807 -->
     <math>
--- a/layout/reftests/mathml/stretchy-mfenced-4-ref.html
+++ b/layout/reftests/mathml/stretchy-mfenced-4-ref.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Stretchy mfenced</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   </head>
   <body>
     <!-- See bug 687807 -->
     <math >
--- a/layout/reftests/mathml/stretchy-mfenced-4a.html
+++ b/layout/reftests/mathml/stretchy-mfenced-4a.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Stretchy mfenced</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   </head>
   <body>
     <!-- See bug 687807 -->
     <math >
--- a/layout/reftests/mathml/stretchy-mfenced-4b.html
+++ b/layout/reftests/mathml/stretchy-mfenced-4b.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Stretchy mfenced</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   </head>
   <body>
     <!-- See bug 687807 -->
     <math >
--- a/layout/reftests/mathml/stretchy-mover-1-ref.html
+++ b/layout/reftests/mathml/stretchy-mover-1-ref.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Stretchy mover</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   </head>
   <body>
     <!-- See bug 687807 -->
     <math display=block>
--- a/layout/reftests/mathml/stretchy-mover-1a.html
+++ b/layout/reftests/mathml/stretchy-mover-1a.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Stretchy mover</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   </head>
   <body>
     <!-- See bug 687807 -->
     <math display=block>
--- a/layout/reftests/mathml/stretchy-mover-1b.html
+++ b/layout/reftests/mathml/stretchy-mover-1b.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Stretchy mover</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   </head>
   <body>
     <!-- See bug 687807 -->
     <math display=block>
--- a/layout/reftests/mathml/stretchy-mover-2-ref.html
+++ b/layout/reftests/mathml/stretchy-mover-2-ref.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Stretchy mover</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   </head>
   <body>
     <!-- See bug 687807 -->
     <math display=block>
--- a/layout/reftests/mathml/stretchy-mover-2a.html
+++ b/layout/reftests/mathml/stretchy-mover-2a.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Stretchy mover</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   </head>
   <body>
     <!-- See bug 687807 -->
     <math display=block>
--- a/layout/reftests/mathml/stretchy-mover-2b.html
+++ b/layout/reftests/mathml/stretchy-mover-2b.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Stretchy mover</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   </head>
   <body>
     <!-- See bug 687807 -->
     <math display=block>
--- a/layout/reftests/mathml/stretchy-mover-3-ref.html
+++ b/layout/reftests/mathml/stretchy-mover-3-ref.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Stretchy mover</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   </head>
   <body>
     <!-- See bug 687807 -->
     <math>
--- a/layout/reftests/mathml/stretchy-mover-3.html
+++ b/layout/reftests/mathml/stretchy-mover-3.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Stretchy mover</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   </head>
   <body>
     <!-- See bug 687807 -->
     <math>
--- a/layout/reftests/mathml/stretchy-msup-1-ref.html
+++ b/layout/reftests/mathml/stretchy-msup-1-ref.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Non-stretchy msup</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   </head>
   <body>
     <!-- See bug 687807 -->
     <math >
--- a/layout/reftests/mathml/stretchy-msup-1a.html
+++ b/layout/reftests/mathml/stretchy-msup-1a.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Non-stretchy msup</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   </head>
   <body>
     <!-- See bug 687807 -->
     <math >
--- a/layout/reftests/mathml/stretchy-msup-1b.html
+++ b/layout/reftests/mathml/stretchy-msup-1b.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Non-stretchy msup</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   </head>
   <body>
     <!-- See bug 687807 -->
     <math >
--- a/layout/reftests/mathml/stretchy-msup-1c.html
+++ b/layout/reftests/mathml/stretchy-msup-1c.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Non-stretchy msup</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   </head>
   <body>
     <!-- See bug 687807 -->
     <math >
--- a/layout/reftests/mathml/stretchy-msup-1d.html
+++ b/layout/reftests/mathml/stretchy-msup-1d.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Non-stretchy msup</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   </head>
   <body>
     <!-- See bug 687807 -->
     <math >
--- a/layout/reftests/mathml/stretchy-munderover-1-ref.html
+++ b/layout/reftests/mathml/stretchy-munderover-1-ref.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Stretchy munderover</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   </head>
   <body>
     <!-- See bug 687807 -->
     <math >
--- a/layout/reftests/mathml/stretchy-munderover-1a.html
+++ b/layout/reftests/mathml/stretchy-munderover-1a.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Stretchy munderover</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   </head>
   <body>
     <!-- See bug 687807 -->
     <math>
--- a/layout/reftests/mathml/stretchy-munderover-1b.html
+++ b/layout/reftests/mathml/stretchy-munderover-1b.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Stretchy munderover</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   </head>
   <body>
     <!-- See bug 687807 -->
     <math>
--- a/layout/reftests/mathml/stretchy-munderover-1c.html
+++ b/layout/reftests/mathml/stretchy-munderover-1c.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Stretchy munderover</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   </head>
   <body>
     <!-- See bug 687807 -->
     <math>
--- a/layout/reftests/mathml/stretchy-munderover-1d.html
+++ b/layout/reftests/mathml/stretchy-munderover-1d.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Stretchy munderover</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   </head>
   <body>
     <!-- See bug 687807 -->
     <math>
--- a/layout/reftests/mathml/stretchy-munderover-1e.html
+++ b/layout/reftests/mathml/stretchy-munderover-1e.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Stretchy munderover</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   </head>
   <body>
     <!-- See bug 687807 -->
     <math>
--- a/layout/reftests/mathml/stretchy-munderover-2-ref.html
+++ b/layout/reftests/mathml/stretchy-munderover-2-ref.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Stretchy munderover</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   </head>
   <body>
     <!-- See bug 687807 -->
     <math >
--- a/layout/reftests/mathml/stretchy-munderover-2a.html
+++ b/layout/reftests/mathml/stretchy-munderover-2a.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Stretchy munderover</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   </head>
   <body>
     <!-- See bug 687807 -->
     <math>
--- a/layout/reftests/mathml/stretchy-munderover-2b.html
+++ b/layout/reftests/mathml/stretchy-munderover-2b.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Stretchy munderover</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   </head>
   <body>
     <!-- See bug 687807 -->
     <math>
--- a/layout/reftests/mathml/stretchy-munderover-2c.html
+++ b/layout/reftests/mathml/stretchy-munderover-2c.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Stretchy munderover</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   </head>
   <body>
     <!-- See bug 687807 -->
     <math>
--- a/layout/reftests/mathml/stretchy-munderover-2d.html
+++ b/layout/reftests/mathml/stretchy-munderover-2d.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Stretchy munderover</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   </head>
   <body>
     <!-- See bug 687807 -->
     <math>
--- a/layout/reftests/mathml/stretchy-munderover-2e.html
+++ b/layout/reftests/mathml/stretchy-munderover-2e.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Stretchy munderover</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   </head>
   <body>
     <!-- See bug 687807 -->
     <math>
--- a/layout/reftests/mathml/stretchy-munderover-2f.html
+++ b/layout/reftests/mathml/stretchy-munderover-2f.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Stretchy munderover</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   </head>
   <body>
     <!-- See bug 687807 -->
     <math>
--- a/layout/reftests/mathml/stretchy-munderover-2g.html
+++ b/layout/reftests/mathml/stretchy-munderover-2g.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Stretchy munderover</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   </head>
   <body>
     <!-- See bug 687807 -->
     <math>
--- a/layout/reftests/mathml/stretchy-munderover-3-ref.html
+++ b/layout/reftests/mathml/stretchy-munderover-3-ref.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Stretchy munderover</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   </head>
   <body>
     <!-- See bug 687807 -->
     <math>
--- a/layout/reftests/mathml/stretchy-munderover-3a.html
+++ b/layout/reftests/mathml/stretchy-munderover-3a.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Stretchy munderover</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   </head>
   <body>
     <!-- See bug 687807 -->
     <math>
--- a/layout/reftests/mathml/stretchy-munderover-3b.html
+++ b/layout/reftests/mathml/stretchy-munderover-3b.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Stretchy munderover</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   </head>
   <body>
     <!-- See bug 687807 -->
     <math>
--- a/layout/reftests/mathml/stretchy-munderover-3c.html
+++ b/layout/reftests/mathml/stretchy-munderover-3c.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Stretchy munderover</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   </head>
   <body>
     <!-- See bug 687807 -->
     <math>
--- a/layout/reftests/mathml/stretchy-munderover-3d.html
+++ b/layout/reftests/mathml/stretchy-munderover-3d.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Stretchy munderover</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   </head>
   <body>
     <!-- See bug 687807 -->
     <math>
--- a/layout/reftests/mathml/subscript-italic-correction-ref.html
+++ b/layout/reftests/mathml/subscript-italic-correction-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <head>
     <title>subscript</title>
     <meta charset="utf-8"/>
   </head>
   <body style="background: #5f5; font-size: 50px;">
 
     <div>
--- a/layout/reftests/mathml/subscript-italic-correction.html
+++ b/layout/reftests/mathml/subscript-italic-correction.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>subscript</title>
     <meta charset="utf-8"/>
     <script type="text/javascript">
       function verifyItalicCorrections()
       {
         var epsilon = 2;
--- a/layout/reftests/mathml/table-width-2-ref.html
+++ b/layout/reftests/mathml/table-width-2-ref.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>table-width-2</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   </head>
   <body>
 
     <!-- See bug 459363 -->
--- a/layout/reftests/mathml/table-width-2.html
+++ b/layout/reftests/mathml/table-width-2.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>table-width-2</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   </head>
   <body>
 
     <!-- See bug 459363 -->
--- a/layout/reftests/mathml/table-width-3-ref.html
+++ b/layout/reftests/mathml/table-width-3-ref.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>table-width-3</title>
     <meta charset="utf-8"/>
     <style type="text/css">
       html { background-color: grey; }
       td { border: 1px solid white;
       padding-top: 0;
--- a/layout/reftests/mathml/table-width-3.html
+++ b/layout/reftests/mathml/table-width-3.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>table-width-3</title>
     <meta charset="utf-8"/>
     <style type="text/css">
       html { background-color: grey; }
       td { border: 1px solid white;
       padding-top: 0;
--- a/layout/reftests/mathml/table-width-4-ref.html
+++ b/layout/reftests/mathml/table-width-4-ref.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>table-width-4</title>
     <meta charset="utf-8"/>
     <style type="text/css">
       html { background-color: grey; }
       td { border: 1px solid white;
       padding-top: 0;
--- a/layout/reftests/mathml/table-width-4.html
+++ b/layout/reftests/mathml/table-width-4.html
@@ -1,9 +1,9 @@
-<!doctype>
+<!DOCTYPE html>
 <html>
   <head>
     <title>table-width-4</title>
     <meta charset="utf-8"/>
     <style type="text/css">
       html { background-color: grey; }
       td { border: 1px solid white;
       padding-top: 0;
--- a/layout/reftests/mathml/tablespacing-4-ref.html
+++ b/layout/reftests/mathml/tablespacing-4-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Dynamic tests involving adding and removing elements</title>
     <meta charset="utf-8"/>
   </head>
   <body>
   <math>
     <mtable columnspacing="5em 7em">
--- a/layout/reftests/mathml/tablespacing-4.html
+++ b/layout/reftests/mathml/tablespacing-4.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>Dynamic tests involving adding and removing elements</title>
     <meta charset="utf-8"/>
   </head>
   <body>
   <math>
     <mtable columnspacing="5em 7em" id="mtable0a">
--- a/layout/reftests/mathml/tablespacing-5-ref.html
+++ b/layout/reftests/mathml/tablespacing-5-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Dynamic tests involving changes to row/column/framespacing</title>
     <meta charset="utf-8"/>
   </head>
   <body>
   <math>
     <mtable id="mtable0" >
--- a/layout/reftests/mathml/tablespacing-5.html
+++ b/layout/reftests/mathml/tablespacing-5.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>Dynamic tests involving changes to row/column/framespacing</title>
     <meta charset="utf-8"/>
   </head>
   <body>
   <math>
     <mtable id="mtable0" rowspacing="2ex 3ex">
--- a/layout/reftests/mathml/tablespacing-5a-ref.html
+++ b/layout/reftests/mathml/tablespacing-5a-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Dynamic tests involving changes to row/column/framespacing</title>
     <meta charset="utf-8"/>
   </head>
   <body>
   <!--  There are at present two implementations of mtable spacing behaviour,
         one based on CSS and the other on rowspacing/columnspacing/framespacing
--- a/layout/reftests/mathml/tablespacing-5a.html
+++ b/layout/reftests/mathml/tablespacing-5a.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>Dynamic tests involving changes to row/column/framespacing</title>
     <meta charset="utf-8"/>
   </head>
   <body>
   <math>
     <mtable id="mtable0" rowspacing="2ex 3ex" columnspacing="">
--- a/layout/reftests/mathml/tablespacing-6-ref.html
+++ b/layout/reftests/mathml/tablespacing-6-ref.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
   <head>
     <title>Dynamic tests involving changes to row/column/framespacing</title>
     <meta charset="utf-8"/>
   </head>
   <body>
   <math>
     <mtable id="mtable0" rowspacing="3ex 7ex">
--- a/layout/reftests/mathml/tablespacing-6.html
+++ b/layout/reftests/mathml/tablespacing-6.html
@@ -1,9 +1,9 @@
-<!doctype html>
+<!DOCTYPE html>
 <html class="reftest-wait">
   <head>
     <title>Dynamic tests involving changes to row/column/framespacing</title>
     <meta charset="utf-8"/>
   </head>
   <body>
   <math>
     <mtable id="mtable0" rowspacing="2ex 3ex">