Bug 849661 - Remove support for Node.hasAttributes(); r=bz
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user