diff options
author | xzilla | 2006-10-18 03:12:19 +0000 |
---|---|---|
committer | xzilla | 2006-10-18 03:12:19 +0000 |
commit | adb309dbd9ce7dd7d2265224991c60836d465aaa (patch) | |
tree | f989af7c5cd3cf475ff1cea13a9459d949f8107a | |
parent | f5469d07cf437f1f565fa20b35d41a6747224869 (diff) |
ioguix's patch to fix safari issues on mac osx. closed out bugs in bug tracker, hopefully this does the trick.
-rw-r--r-- | xloadtree/xloadtree2.js | 8 |
1 files 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;
|