Apache OpenOffice (AOO) Bugzilla – Issue 32733
Generates an empty LANG attribute in <BODY>
Last modified: 2013-08-07 14:38:26 UTC
Environment: English OOo in Chinese (Taiwan) Windows 98. 1. Create a new HTML document in Writer. 2. Click the "view source" icon. 3. The code is like: <BODY LANG="" DIR="LTR"> <P><FONT FACE="Arial"><SPAN LANG="en-US">testing</SPAN></FONT></P> </BODY> The empty LANG attribute will make the document invalid according to the W3C HTML validator (http://validator.w3c.org).
MRU->ES: please have a look...
If you have set "None" in all fields under Tools - Options - Languages Settings - Languages, the LANG attribute will be empty yes. This because no language is set and the LANG attribute has no default (see HTML specification). One could think about avoiding to write a LANG attribute in this case. Because this attribute is not mandatory and gives just an information to the HTML client, I setz it P5.