Тема: html+xml в Fifefox
Доброго утра.
Прочел Using XML Data Islands in Mozilla | MDN. Вытащил куски.
equip.html
<!DOCTYPE html>
<html>
<head>
<title>XML Data Block Demo</title>
<script>
function runDemo() {
var doc = document.getElementById("purchase-order").contentDocument;
var lineItems = doc.getElementsByTagNameNS("http://example.mozilla.org/PurchaseOrderML", "lineItem");
var firstPrice = lineItems[0].getElementsByTagNameNS("http://example.mozilla.org/PurchaseOrderML", "price")[0].textContent;
document.getElementById("output-box").textContent = "The purchase order contains " + lineItems.length + " line items. The price of the first line item is " + firstPrice + ".";
}
</script>
</head>
<body onload="runDemo()";>
<object id="purchase-order" data="equip.xml" type="text/xml" style="display: none;"></object>
<div id="output-box">Demo did not run</div>
</body>
</html>
equip.xml
<?xml version="1.0" encoding="windows-1251"?>
<equipment>
<details>
<name>Hard Disk</name>
<rate>2800</rate>
<manufacturer>SeaGate</manufacturer>
</details>
<details>
<name>Motherboard</name>
<rate>10000</rate>
<manufacturer>Intel</manufacturer>
</details>
<details>
<name>Monitor</name>
<rate>8000</rate>
<manufacturer>Samsung</manufacturer>
</details>
<details>
<name>Rajadurai</name>
<rate>Tuticorin</rate>
<manufacturer>Tamilnad</manufacturer>
</details>
</equipment>
Не подскажете, от чего не пашет?
Спасибо.