W3C home > Mailing lists > Public > public-html@w3.org > January 2009

Re: HTML is a declarative mark-up language

From: Jirka Kosek <jirka@kosek.cz>
Date: Fri, 30 Jan 2009 09:41:20 +0100
Message-ID: <4982BD30.2010309@kosek.cz>
To: Ian Hickson <ian@hixie.ch>
CC: HTML WG <public-html@w3.org>
Ian Hickson wrote:

> So you are asking for a link saying "Common attributes" linking to:
>    http://www.whatwg.org/specs/web-apps/current-work/#global-attributes
> ...to be added to every element's definition?


> I've so far tried to avoid redundant links like that.
> Isn't it self-explanatory that the attributes that apply to every element 
> also apply to each element listed in the spec...?

It isn't self-explanatory if you jump into middle of spec by following
link without previously reading and remembering all preceding bits of

> It depends on the element's ancestors, as described under the definition 
> of "transparent".
> The problem with <a> is that actually I know of no formal gramar capable 
> of describing the actual content model of <a>. So I don't know how to 
> provide a non-prose formalism for <a>'s content model.

Yes, I see that <a> element with transparent content model was quite
unfortunate example.

For some elements presented content model is clear, for example for
lists you can easily see that only <li> is allowed as children.

But for many elements their content model is defined as phrasing or flow
content. And when I tried to follow definition of those content models I
have the same problem as with transparent -- I was not able to dig into
list of element that are available.


BTW, in NVDL you are able to express transparent content model by using
trigger and unwrap. But I'm not proposing to use NVDL for HTML5 ;-D

  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 Friday, 30 January 2009 08:42:07 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:44:42 UTC