- From: <david@lantner.net>
- Date: Thu, 28 May 2009 20:51:34 -0500
- To: public-xhtml2@w3.org
- CC: xhtml2-issues@mn.aptest.com
--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"><<a href=3D"mailto:david@lantner.net">david@lantner= .net</a>></span><br> Date: Fri, May 8, 2009 at 1:49 PM<br>Subject: XHTML Media Types - Second Ed= ition Appendix B - missing "lang" attribute for XHTML 1.0 served = as "text/html"<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 "text/html"), the "lang"= 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> <!-- use lang and xml:lang if your language supports it - A.7 --><br> <html xmlns=3D"<a href=3D"http://www.w3.org/1999/xhtml" target=3D"_= blank">http://www.w3.org/1999/xhtml</a>" xml:lang=3D"en">= <br> ----<br> <br> Also, I suggest re-ordering the examples provided in Appendix B<br> because the text starts with "The following is..." 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 "lang" 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> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"<br> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 "<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>"><br> <!-- use lang and xml:lang if your language supports it - A.7 --><br> <html xmlns=3D"<a href=3D"http://www.w3.org/1999/xhtml" target=3D"_= blank">http://www.w3.org/1999/xhtml</a>" xml:lang=3D"en" lan= g=3D"en"><br> <head><br> =A0 <title>Example Portable XHTML</title><br> =A0 <!-- Embed encoding when you can't set it from the server - A.9 = --><br> =A0 <meta http-equiv=3D"Content-Type"<br> =A0=A0=A0=A0=A0=A0=A0 content=3D"text/html; charset=3Dutf-8" />= ;<br> <br> [...]<br> <br> </body><br> </html><br> <br> It could also have used XHTML 1.1. In that case the top of the<br> document would look like:<br> <br> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"<br> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 "<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>"><br> <html xmlns=3D"<a href=3D"http://www.w3.org/1999/xhtml" target=3D"_= blank">http://www.w3.org/1999/xhtml</a>" xml:lang=3D"en">= <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