Bug 1431965 - Stop using nsIDOMAttr in JS code. r=philipp
This commit is contained in:
Родитель
da0d7175f2
Коммит
1e9506ef88
|
@ -49,7 +49,7 @@ cal.xml.evalXPath = function(aNode, aExpr, aResolver, aType) {
|
|||
while ((next = result.iterateNext())) {
|
||||
if (next instanceof Components.interfaces.nsIDOMText) {
|
||||
returnResult.push(next.wholeText);
|
||||
} else if (next instanceof Components.interfaces.nsIDOMAttr) {
|
||||
} else if (ChromeUtils.getClassName(next) === "Attr") {
|
||||
returnResult.push(next.value);
|
||||
} else {
|
||||
returnResult.push(next);
|
||||
|
@ -63,7 +63,7 @@ cal.xml.evalXPath = function(aNode, aExpr, aResolver, aType) {
|
|||
next = result.snapshotItem(i);
|
||||
if (next instanceof Components.interfaces.nsIDOMText) {
|
||||
returnResult.push(next.wholeText);
|
||||
} else if (next instanceof Components.interfaces.nsIDOMAttr) {
|
||||
} else if (ChromeUtils.getClassName(next) === "Attr") {
|
||||
returnResult.push(next.value);
|
||||
} else {
|
||||
returnResult.push(next);
|
||||
|
|
Загрузка…
Ссылка в новой задаче