markup stripping with @datatype

I was implementing my parser from scratch to see how well the new and  
awesome specification hand held me through the whole thing and I must  
say: nice job overall. Although, it took me a while to figure out  
hanging rels (after being away for so long). But at least I can say  
that I figured it out mostly from reading the Feb 21 draft.

Forgive me if this has either already been addressed or updated in  
some other copy. Looking at Test #29 and Section 10.

<span   about="http://example.org/foo"  property="dc:creator"  
datatype="xsd:string"><b>M</b>ark <b>B</b>irbeck</span>

Section 10 says: if a typed literal...

The actual literal is either the value of @content (if present) or a  
string created by concatenating the value of all descendant text  
nodes, of the [current element] in turn.

"all descendant text nodes" but what I had to do to pass the test is  
the textContent of all descendants. Let me know if they are the same  
thing.

-Elias

Received on Tuesday, 18 March 2008 03:26:58 UTC