From adb309dbd9ce7dd7d2265224991c60836d465aaa Mon Sep 17 00:00:00 2001 From: xzilla Date: Wed, 18 Oct 2006 03:12:19 +0000 Subject: [PATCH] ioguix's patch to fix safari issues on mac osx. closed out bugs in bug tracker, hopefully this does the trick. --- xloadtree/xloadtree2.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xloadtree/xloadtree2.js b/xloadtree/xloadtree2.js index f22a69d8..ccdd69fc 100644 --- a/xloadtree/xloadtree2.js +++ b/xloadtree/xloadtree2.js @@ -277,15 +277,15 @@ WebFXLoadTree._attrs = ["text", "src", "action", "id", "target"]; WebFXLoadTree.createItemFromElement = function (oNode) { var jsAttrs = {}; - var domAttrs = oNode.attributes; var i, l; - l = domAttrs.length; + l = oNode.attributes.length; for (i = 0; i < l; i++) { - if (domAttrs[i] == null) { + oNode.attributes[i].nodeValue = String(oNode.attributes[i].nodeValue).replace(/&/g, "&"); // replace for Safari fix for DOM Bug + if (oNode.attributes[i] == null) { continue; } - jsAttrs[domAttrs[i].nodeName] = domAttrs[i].nodeValue; + jsAttrs[oNode.attributes[i].nodeName] = oNode.attributes[i].nodeValue; } var name, val; -- 2.39.5