Bug 527201 - Remove the hack to skip bogus MathML _moz-* attributes in the HTML5 test suite. r=hsivonen
authorFrédéric Wang <fred.wang@free.fr>
Mon, 16 Dec 2013 09:01:29 -0500
changeset 160589 bc7b5f21be2c1eb8b2c318a5cb587a77537a3970
parent 160588 a1c997b8c0528d72922690aafbce656ee726d36f
child 160590 41fc2afc8465601b520197ef6f7a8f17c16d6b8f
push id37650
push userryanvm@gmail.com
push dateMon, 16 Dec 2013 14:01:31 +0000
treeherdermozilla-inbound@bac23ed0f7f8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewershsivonen
bugs527201
milestone29.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 527201 - Remove the hack to skip bogus MathML _moz-* attributes in the HTML5 test suite. r=hsivonen
parser/htmlparser/tests/mochitest/parser_datreader.js
--- a/parser/htmlparser/tests/mochitest/parser_datreader.js
+++ b/parser/htmlparser/tests/mochitest/parser_datreader.js
@@ -143,20 +143,16 @@ function addLevels(walker, buf, indent) 
             buf += "otherns ";
           }
           buf += walker.currentNode.localName + ">";
           if (walker.currentNode.hasAttributes()) {
             var valuesByName = {};
             var attrs = walker.currentNode.attributes;
             for (var i = 0; i < attrs.length; ++i) {
               var localName = attrs[i].localName;
-              if (localName.indexOf("_moz-") == 0) {
-                // Skip bogus attributes added by the MathML implementation
-                continue;
-              }
               var name;
               var attrNs = attrs[i].namespaceURI;
               if (null == attrNs) {
                 name = localName;
               } else if ("http://www.w3.org/XML/1998/namespace" == attrNs) {
                 name = "xml " + localName;
               } else if ("http://www.w3.org/1999/xlink" == attrNs) {
                 name = "xlink " + localName;