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

AW: Practical question: elements or attributes?

From: Moritz Hellwig <Moritz.Hellwig@cocomore.com>
Date: Tue, 17 Apr 2012 13:38:31 +0200
Message-ID: <A5F4BCC8EDECF74D97DBCEF820F7269FB891C1@cocont10.office.cocomore.com>
To: "Jirka Kosek" <jirka@kosek.cz>, "Arle Lommel" <arle.lommel@gmail.com>
Cc: "Multilingual Web LT Public List" <public-multilingualweb-lt@w3.org>

-----Urspr√ľngliche Nachricht-----
Von: Jirka Kosek [mailto:jirka@kosek.cz] 
Gesendet: Dienstag, 17. April 2012 12:32
An: Arle Lommel
Cc: Multilingual Web LT Public List
Betreff: Re: Practical question: elements or attributes?

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 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

Received on Tuesday, 17 April 2012 11:39:16 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:08:16 UTC