+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / WCAG 2.0 - Document has invalid language code

WCAG 2.0 - Document has invalid language code

3 posts, 0 answered
  1. James@Nw
    James@Nw avatar
    265 posts
    Registered:
    05 May 2009
    24 Jan 2011
    Link to this post
    This is a follow on from my first post concerning WCAG 2.0 validation:

    Problem:
    Document has invalid language code.
    <html xmlns="http://www.w3.org/1999/xhtml">

    Solution:
    Add a valid 2 letter or 3 letter language code as defined in the ISO 639 specification to the HTML 'lang' attribute.

    How can this be added into Sitefinity?

    Thanks
  2. Katia
    Katia avatar
    194 posts
    Registered:
    01 Jul 2016
    26 Jan 2011
    Link to this post
    Hello James@Nw,

    I have logged a task to automatically add lang attribute to HTML tag of all public pages (#105852). At the moment you can added the attribute manually to your masterpage. If you have more than one language you will need to create masterpage for each language.


    Greetings,
    Katia
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. James@Nw
    James@Nw avatar
    265 posts
    Registered:
    05 May 2009
    26 Jan 2011
    Link to this post
    Hi Katia,

    Thanks for coming back to me about this. Soon as I get to this point, I will implement and get back to you if it worked or not.

    Many thanks,
    James
Register for webinar
3 posts, 0 answered