W3C home > Mailing lists > Public > public-multilingualweb-lt@w3.org > April 2012

Re: Practical question: elements or attributes?

From: Arle Lommel <arle.lommel@gmail.com>
Date: Tue, 17 Apr 2012 14:37:37 +0200
Cc: "'Multilingual Web LT Public List'" <public-multilingualweb-lt@w3.org>
Message-Id: <87F20755-4AF6-4384-A8B1-A803BC4CF089@gmail.com>
To: Yves Savourel <ysavourel@enlaso.com>
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

This archive was generated by hypermail 2.3.1 : Sunday, 9 June 2013 00:24:55 UTC