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

Re: Practical question: elements or attributes?

From: Pål Eivind J Nes <pal.nes@gmail.com>
Date: Tue, 17 Apr 2012 14:38:37 +0200
Message-ID: <CAAd2iXut4_GTMztdiX-vkawDWbt8Ge27sY=++SO3h9caUEu5_g@mail.gmail.com>
To: Arle Lommel <arle.lommel@gmail.com>
Cc: Jirka Kosek <jirka@kosek.cz>, Multilingual Web LT Public List <public-multilingualweb-lt@w3.org>
As a stopgap solution should the attributes also use the data*
attributes in HTML5?

I.e. data-its-*

- Pål

On Tue, Apr 17, 2012 at 2:35 PM, Arle Lommel <arle.lommel@gmail.com> wrote:
> Hi Jirka,
>
> I seem to recall that we discussed creating a custom HTML5+ITS schema that included our materials. If that were the case we could add elements, but your point about visibility overrides that anyway. I will create examples that use attributes.
>
> -Arle
>
> Sic scripsit Jirka Kosek in Apr 17, 2012 ad 12:32 :
>
>> On 17.4.2012 10:45, Arle Lommel wrote:
>>
>>> However, using elements would also be more disruptive to the target formats than would using attributes. For instance, in an HTML5+ITS combination the core structure of HTML5 could remain unaltered if we use attributes, but when we start adding elements, we are making more fundamental structural changes.
>>
>> In HTML5 you can't use your custom elements. So if possible, we should
>> stick to attributes and use multiple attributes if necessary. Also in
>> HTML5 everything in element content is visible, so for metadata we
>> should use attributes anyway.
>>
>>                               Jirka
>>
>> --
>> ------------------------------------------------------------------
>>  Jirka Kosek      e-mail: jirka@kosek.cz      http://xmlguru.cz
>> ------------------------------------------------------------------
>>       Professional XML consulting and training services
>>  DocBook customization, custom XSLT/XSL-FO document processing
>> ------------------------------------------------------------------
>> OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
>> ------------------------------------------------------------------
>>
>
>



-- 
Pål Eivind Jacobsen Nes
Received on Tuesday, 17 April 2012 12:39:09 UTC

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