[Bug 20340] [XT3TS] element-0306

https://www.w3.org/Bugs/Public/show_bug.cgi?id=20340

--- Comment #2 from Tim Mills <tim@cbcl.co.uk> ---
Here goes...

"If the newly constructed node is an element node, and if namespaces are
inherited, then each namespace node of the newly constructed element (including
any produced as a result of the namespace fixup process) is copied to each
descendant element of the newly constructed element, unless that element or an
intermediate element already has a namespace node with the same name (or
absence of a name) or that descendant element or an intermediate element is in
no namespace and the namespace node has no name."

Going inside out, we have

<dogsbody/> [[ fun easy "http://www.dummy_ns.com" xml ]]

This is then copied with namespace inheritance.

<IT_Specialist> [[ "http://www.all.com" xml ]]
  <dogsbody/> [[ fun easy "http://www.dummy_ns.com" xml ]]
</IT_Specialist>

Then we have:

<IT_Architect /> [[ "http://www.dummy_ns.com" xml ]]

<Business_Analyst /> { xml }

These then get copied when constructing profession without namespace
inheritance.

<profession> [[ "http://www.dummy_ns.com" xml ]]
  <IT_Architect /> [[ "http://www.dummy_ns.com" xml ]]
  <IT_Specialist> [[ "http://www.all.com" xml ]]
    <dogsbody /> [[ fun easy "http://www.dummy_ns.com" xml ]]
  </IT_Specialist>
  <Business_Analyst/> { xml }
</profession>

Finally, these get copied when constructing out with namespace inheritance.

<out> [[ fun easy xml ]]
  <profession> [[ fun easy "http://www.dummy_ns.com" xml ]]
    <IT_Architect /> [[ fun easy "http://www.dummy_ns.com" xml ]]
    <IT_Specialist> [[ fun easy "http://www.all.com" xml ]]
      <dogsbody /> [[ fun easy "http://www.dummy_ns.com" xml ]]
    </IT_Specialist>
    <Business_Analyst/> { fun easy xml }
  </profession>
</out>

Do you agree with the above?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Tuesday, 11 December 2012 15:03:00 UTC