Re: Misbehaving with the <rule> syntax
Neil <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.rdf |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
Neil Stansbury wrote:
> the observes element doesn't forward namespace attribute
Yes, I said that. Pay attention! Here's some sample code:
<?xml version="1.0"?>
<window
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:xbl="http://www.mozilla.org/xbl" onload="getdata();">
<broadcaster id="namespace" xbl:text="xbl:text"/>
<data id="observer" observes="namespace"/>
<script>
function getdata() {
var data = document.getElementById("observer");
var text = data.getAttributeNS("http://www.mozilla.org/xbl", "text");
alert(text);
}
</script>
</window>
--
Warning: May contain traces of nuts.