Re: Practical question: elements or attributes?

Thanks Yves. I can't think of any that would require line breaks and the like, but we should keep our eyes out for that if it might pop up.

Arle

Sic scripsit Yves Savourel in Apr 17, 2012 ad 13:07 :

> Hi Arle, all,
> 
> For HTML, like Felix noted one can always find a way to set things in attributes.
> It's far less intrusive for the host format than elements.
> 
> For other XML-based formats using elements in a distinct namespace may be possible. But it may also be simpler to use the same mechanism as the one used in HTML.
> 
> And there is possibly the non-markup-based formats (e.g. scripts) where, if needed, we could fall back on some special types of comments.
> 
> The only thing we need to be aware of at this point is probably the value/content of those metadata: most seem to be simple values, but maybe a few could be 'content' with some line-breaks/white-spaces requirements? In that cases storing them in attributes may be more challenging. But I don't recall seeing any complex content so far.
> 
> Cheers,
> -ys

Received on Tuesday, 17 April 2012 12:38:12 UTC