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

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 UTC