W3C home > Mailing lists > Public > public-html@w3.org > June 2007

Re: <code type="...">

From: Josh Sled <jsled@asynchronous.org>
Date: Fri, 22 Jun 2007 09:43:46 -0400
To: Thomas Pike <thomasp@opera.com>
Cc: HTML Working Group <public-html@w3.org>
Message-ID: <87bqf8w1d9.fsf@phoenix.asynchronous.org>
Thomas Pike <thomasp@opera.com> writes:
> While the information may indeed be useful for such things, would it not
> better belong in the lang="" attribute?
>
> As far as I'm aware this is valid even now:
>
> <code lang="x-php">
> &lt;?php echo "Hello world!" ?&gt;
> </code>

@lang [1] is defined in terms of RFC3066, which explicitly excludes computer
languages [2].  As well, the requirements between 'lang' and 'xml:lang' are
annoying.

[1] http://www.whatwg.org/specs/web-apps/current-work/multipage/section-global.html#the-lang
[2] http://tools.ietf.org/html/rfc3066#section-2.4

-- 
...jsled
http://asynchronous.org/ - a=jsled; b=asynchronous.org; echo ${a}@${b}

Received on Friday, 22 June 2007 13:44:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:01 GMT