Re: Implementor feedback on new elements in HTML5

On Sep 1, 2009, at 13:33 , Henri Sivonen wrote:
> On Sep 1, 2009, at 14:19, Robin Berjon wrote:
>> Could adding an itemvaluetype attribute help (we can pick a better  
>> name later)? itemvaluetype = textContent | childNodes | ...  
>> defaulting to the former?
>
> How would you map the latter to JSON?

You stringify the markup and expose itemvaluetype so that one can  
reconstruct the original. In the API you'd return a DocumentFragment.

> Bringing in the whole complexity of DOM subtrees to microdata makes  
> in significantly less micro (consider XMLLiteral). I'd rather keep  
> microdata simple and address lack of native markup features without  
> microdata.


Other options could work, what did you have in mind?

-- 
Robin Berjon - http://berjon.com/

Received on Tuesday, 1 September 2009 13:24:35 UTC