Issue 32733 - Generates an empty LANG attribute in <BODY>
Summary: Generates an empty LANG attribute in <BODY>
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: OOo 1.1.1
Hardware: All All
: P5 (lowest) Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Depends on:
Reported: 2004-08-09 11:15 UTC by freemant
Modified: 2013-08-07 14:38 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Note You need to log in before you can comment on or make changes to this issue.
Description freemant 2004-08-09 11:15:33 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:

<P><FONT FACE="Arial"><SPAN LANG="en-US">testing</SPAN></FONT></P>

The empty LANG attribute will make the document invalid according to the W3C
HTML validator (
Comment 1 michael.ruess 2004-08-09 11:18:11 UTC
MRU->ES: please have a look...
Comment 2 eric.savary 2004-08-09 13:04:15 UTC
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.