Fwd: XHTML Media Types - Second Edition Appendix B - missing "lang" (PR#8060)

--000e0cd6ab001d8cfa046ae784d5
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Shane,

I sent the following message to the public-xhtml2@w3.org list, but I now
realize I should have addressed it directly to you - the editor - as well. I
realize this is a minor issue, the document in question is a Note, and the
WG is busy with other things, but I feel compelled to bring it to your
attention, so you can file it away should the Note be updated in the future.

Regards,
David

http://lantner.net/david/

---------- Forwarded message ----------
From: David Lantner <david@lantner.net>
Date: Fri, May 8, 2009 at 1:49 PM
Subject: XHTML Media Types - Second Edition Appendix B - missing "lang"
attribute for XHTML 1.0 served as "text/html"
To: public-xhtml2@w3.org


In the example document in Appendix B (to demonstrate rule A.7 as it
applies to XHTML 1.0 served as "text/html"), the "lang" attribute is
omitted:

http://www.w3.org/TR/2009/NOTE-xhtml-media-types-20090116/#a_example

Currently, it reads:

----
<!-- use lang and xml:lang if your language supports it - A.7 -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
----

Also, I suggest re-ordering the examples provided in Appendix B
because the text starts with "The following is..." only to be
interrupted by the example for XHTML 1.1; readers quickly skimming the
text may be confused, as I was when I first read the example. I
suggest moving the example for XHTML 1.1 to follow the example for 1.0
(and add the "lang" attribute to the html element, which I have
included):

-----
Appendix B. An Example Document

The following is an example document that adopts the conventions
described in Appendix A to ensure its portability among XHTML and HTML
user agents. This example uses XHTML 1.0 Strict.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- use lang and xml:lang if your language supports it - A.7 -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>Example Portable XHTML</title>
  <!-- Embed encoding when you can't set it from the server - A.9 -->
  <meta http-equiv="Content-Type"
        content="text/html; charset=utf-8" />

[...]

</body>
</html>

It could also have used XHTML 1.1. In that case the top of the
document would look like:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
                      "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

In this case, note that the lang attribute is not used on the html
element. XHTML 1.1 does not support the lang attribute.
----

Thank you all for your work in producing this document because I think
the concept of media types is greatly misunderstood.

Regards,
David

---------------------------------
David Lantner
http://lantner.net/david/

--000e0cd6ab001d8cfa046ae784d5
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Shane,<br><br>I sent the following message to the <a href=3D"mailto:public-=
xhtml2@w3.org">public-xhtml2@w3.org</a> list, but I now realize I should ha=
ve addressed it directly to you - the editor - as well. I realize this is a=
 minor issue, the document in question is a Note, and the WG is busy with o=
ther things, but I feel compelled to bring it to your attention, so you can=
 file it away should the Note be updated in the future.<br>
<br>Regards,<br>David<br><br><a href=3D"http://lantner.net/david/">http://l=
antner.net/david/</a><br><br><div class=3D"gmail_quote">---------- Forwarde=
d message ----------<br>From: <b class=3D"gmail_sendername">David Lantner</=
b> <span dir=3D"ltr">&lt;<a href=3D"mailto:david@lantner.net">david@lantner=
.net</a>&gt;</span><br>
Date: Fri, May 8, 2009 at 1:49 PM<br>Subject: XHTML Media Types - Second Ed=
ition Appendix B - missing &quot;lang&quot; attribute for XHTML 1.0 served =
as &quot;text/html&quot;<br>To: <a href=3D"mailto:public-xhtml2@w3.org">pub=
lic-xhtml2@w3.org</a><br>
<br><br>In the example document in Appendix B (to demonstrate rule A.7 as i=
t<br>
applies to XHTML 1.0 served as &quot;text/html&quot;), the &quot;lang&quot;=
 attribute is<br>
omitted:<br>
<br>
<a href=3D"http://www.w3.org/TR/2009/NOTE-xhtml-media-types-20090116/#a_exa=
mple" target=3D"_blank">http://www.w3.org/TR/2009/NOTE-xhtml-media-types-20=
090116/#a_example</a><br>
<br>
Currently, it reads:<br>
<br>
----<br>
&lt;!-- use lang and xml:lang if your language supports it - A.7 --&gt;<br>
&lt;html xmlns=3D&quot;<a href=3D"http://www.w3.org/1999/xhtml" target=3D"_=
blank">http://www.w3.org/1999/xhtml</a>&quot; xml:lang=3D&quot;en&quot;&gt;=
<br>
----<br>
<br>
Also, I suggest re-ordering the examples provided in Appendix B<br>
because the text starts with &quot;The following is...&quot; only to be<br>
interrupted by the example for XHTML 1.1; readers quickly skimming the<br>
text may be confused, as I was when I first read the example. I<br>
suggest moving the example for XHTML 1.1 to follow the example for 1.0<br>
(and add the &quot;lang&quot; attribute to the html element, which I have<b=
r>
included):<br>
<br>
-----<br>
Appendix B. An Example Document<br>
<br>
The following is an example document that adopts the conventions<br>
described in Appendix A to ensure its portability among XHTML and HTML<br>
user agents. This example uses XHTML 1.0 Strict.<br>
<br>
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot;<br>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 &quot;<a hr=
ef=3D"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" target=3D"_blank">=
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</a>&quot;&gt;<br>
&lt;!-- use lang and xml:lang if your language supports it - A.7 --&gt;<br>
&lt;html xmlns=3D&quot;<a href=3D"http://www.w3.org/1999/xhtml" target=3D"_=
blank">http://www.w3.org/1999/xhtml</a>&quot; xml:lang=3D&quot;en&quot; lan=
g=3D&quot;en&quot;&gt;<br>
&lt;head&gt;<br>
=A0 &lt;title&gt;Example Portable XHTML&lt;/title&gt;<br>
=A0 &lt;!-- Embed encoding when you can&#39;t set it from the server - A.9 =
--&gt;<br>
=A0 &lt;meta http-equiv=3D&quot;Content-Type&quot;<br>
=A0=A0=A0=A0=A0=A0=A0 content=3D&quot;text/html; charset=3Dutf-8&quot; /&gt=
;<br>
<br>
[...]<br>
<br>
&lt;/body&gt;<br>
&lt;/html&gt;<br>
<br>
It could also have used XHTML 1.1. In that case the top of the<br>
document would look like:<br>
<br>
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.1//EN&quot;<br>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 &quot;<a hr=
ef=3D"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" target=3D"_blank">http:=
//www.w3.org/TR/xhtml11/DTD/xhtml11.dtd</a>&quot;&gt;<br>
&lt;html xmlns=3D&quot;<a href=3D"http://www.w3.org/1999/xhtml" target=3D"_=
blank">http://www.w3.org/1999/xhtml</a>&quot; xml:lang=3D&quot;en&quot;&gt;=
<br>
<br>
In this case, note that the lang attribute is not used on the html<br>
element. XHTML 1.1 does not support the lang attribute.<br>
----<br>
<br>
Thank you all for your work in producing this document because I think<br>
the concept of media types is greatly misunderstood.<br>
<br>
Regards,<br>
David<br>
<br>
---------------------------------<br>
<font color=3D"#888888">David Lantner<br>
<a href=3D"http://lantner.net/david/" target=3D"_blank">http://lantner.net/=
david/</a><br>
</font></div><br>

--000e0cd6ab001d8cfa046ae784d5--

Received on Friday, 29 May 2009 01:55:58 UTC