Re: ISSUE-40 Comment on RDFa 1.1 Core: Empty elements should not create literals

I am sympathetic to the original proposal in this issue.  However, it 
raised the following concern for me:

On 8/5/2010 8:47 AM, Mark Birbeck wrote:
>
> I'd be interested to hear what Toby thinks on this, but it would seem
> that if you really *must* have an empty string then you should do
> this:
>
>    <span property="p1" content=""></span>
>    

In this case, I believe there are no child nodes at all.  Not sure what 
my parser would do if it encountered the following:

    <span property="p1"></span>
       


No child elements are text nodes, so it would be a plain literal, but 
since there are no descendant nodes in the DOM at all...  the value of 
that plain literal could be undefined or "".  Obviously the supposition 
is that the plain literal starts as "" and then text node values would 
get appended to it.  But we don't say that.  We probably should.


-- 
Shane P. McCarron                          Phone: +1 763 786-8160 x120
Managing Director                            Fax: +1 763 786-8180
ApTest Minnesota                            Inet: shane@aptest.com

Received on Thursday, 5 August 2010 15:04:32 UTC