Let IE surfers in on the good stuff in config.html.
I made the code IE compliant by removing stuff, can't say I see that every day.
This commit is contained in:
parent
1804fdf595
commit
f0ac0885a2
|
@ -36,11 +36,9 @@ var ConfigXML = {
|
|||
var items = {};
|
||||
$A(section.getElementsByTagName('item')).each(function (item) {
|
||||
var returnItem = {};
|
||||
if (item.hasAttributes()) {
|
||||
$A(item.attributes).each(function (attr) {
|
||||
returnItem[attr.name] = attr.value;
|
||||
});
|
||||
}
|
||||
$A(item.attributes).each(function (attr) {
|
||||
returnItem[attr.name] = attr.value;
|
||||
});
|
||||
$A(item.childNodes).each(function (node) {
|
||||
if (Element.textContent(node) == '') {
|
||||
return;
|
||||
|
@ -55,11 +53,9 @@ var ConfigXML = {
|
|||
} else {
|
||||
returnItem[node.nodeName] = Element.textContent(node);
|
||||
}
|
||||
if (node.hasAttributes()) {
|
||||
$A(node.attributes).each(function (attr) {
|
||||
returnItem[attr.name] = attr.value;
|
||||
});
|
||||
}
|
||||
$A(node.attributes).each(function (attr) {
|
||||
returnItem[attr.name] = attr.value;
|
||||
});
|
||||
});
|
||||
// Double index everything one as [section][id]
|
||||
// and one as [config_section:id]
|
||||
|
|
Loading…
Reference in New Issue