Bug 849661 - Remove support for Node.hasAttributes(); r=bz

This commit is contained in:
Aryeh Gregor
2013-03-21 14:48:32 +02:00
parent b9a3daba98
commit 7a538dfabc
110 changed files with 109 additions and 869 deletions

View File

@@ -134,7 +134,8 @@ function addLevels(walker, buf, indent) {
buf += "otherns ";
}
buf += walker.currentNode.localName + ">";
if (walker.currentNode.hasAttributes()) {
if (walker.currentNode.attributes &&
walker.currentNode.attributes.length) {
var valuesByName = {};
var attrs = walker.currentNode.attributes;
for (var i = 0; i < attrs.length; ++i) {