• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Make tables W3C compliant

dave-ha

Regular Pleskian
WPB 10.4.4. adds a lang attribute for tables. However, for XHTML documents the W3C standards recommend that both lang and xml:lang attribute are added.

Checking a WPB table with W3C's validator Unicorn (http://validator.w3.org/unicorn/) returns the following:

A tag uses a lang attribute without an associated xml:lang attribute.

Explanation:

In the following tag or tags the lang attribute is not accompanied by an xml:lang attribute.

<table style="width: 100%; border-color: gray; border-style: solid; border-width: 0px;" lang="de-DE" border="0" align="left">
<td lang="" scope="" valign="top">
<td lang="" scope="" valign="top">
<td lang="" scope="" valign="top">

This may cause problems if you try to process this XHTML page as XML, since XML processors recognise xml:lang but don't recognise lang. For XHTML you should normally use both.

What to do:

Add an xml:lang attribute to each of the above tags, with the same value as the lang attribute.

Would there be any chance to add the xml:lang attribute in a next release?
 
Hi Dave,

We'll take a look into that in one of our upcoming releases. Thanks!
 
Back
Top