[whatwg] Proposal for a link attribute to replace <a href>
giecrilj at stegny.2a.pl
Wed Jul 30 11:55:56 PDT 2008
By the current spec, the Anchor element is phrasing content, which is a
special case of flow content. Did you mean "transparent content" instead?
EC! I cannot see any "inline content" in HTML5, at least not in 3.4.1 where
content models are defined.
From: Ian Hickson [mailto:ian at hixie.ch]
Sent: Wednesday, July 30, 2008 1:50 PM
Subject: Re: [whatwg] Proposal for a link attribute to replace <a href>
On Sun, 1 Jun 2008, Ernest Cline wrote:
> Backwards compatible with some user agents but not with the specs. The
> following fragment has never been valid according to the specs in any of
> HTML 1.0, 2.0, 3.2, or 4, or the current draft of HTML 5, despite <a>,
> <h3>, and <p> appearing in all of them.
> <a href="foo.html">
> The specs have always called for <a> to only have inline content save
> that for some reason, HTML 2.0 did allow <h1> to <h6> inside <a> though
> that was not recommended, and that was reverted back to inline only in
> While changing the specs to match user agent behavior is a possibility,
> it is not one that should be taken lightly. (Nor should adding a new
> flow content hyperlink element, be taken lightly either.)
Changing the specs to match user agent behavior is the whole way HTML5
works, so that's not a big problem. The problem is that the current parse
model results in odd behaviour if we allow <a> as a flow-content element.
More information about the whatwg