Re: Misbehaving with the <rule> syntax

Neil Stansbury <[email protected]>
Newsgroups gmane.comp.mozilla.devel.rdf
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
 > Yes, I said that. Pay attention!

;) Sorry I meant the attribute "observes" (not element) doesn't receive 
namespace attributes either.

The following fails on my code:

<broadcaster id="ruleBroadcaster" urn:reason="string"/>
<rule observes="ruleBroadcaster"/>
  [..]
</rule>

The DOM inspector shows the <rule> element having an attribute of 
"reason=string" not "urn:reason=string"

The rule also checks HasAssertion() for the string "reason" not the 
namespace uri #reason



Neil wrote:
> 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>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.