Markup Validation Service

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sysop9001
    Senior Member
    • Jul 2005
    • 254
    • 3.8.x

    Markup Validation Service

    Hello,
    The New "Markup Validation Service" does not validate now all board that in the past are XHTML Transitional, looks here for example:

    HTML Code:
    http://validator.w3.org/check?uri=http%3A%2F%2Fwww.vbulletin.com%2Fforum%2F&charset=%28detect+automatically%29&doctype=Inline&group=0


    Don't think is the case to add in the future version of vBulletin the
    dir="ltr"
    element?
  • Wayne Luke
    vBulletin Technical Support Lead
    • Aug 2000
    • 74170

    #2
    Should post this in the project tools as a bug.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment

    • MRGTB
      Senior Member
      • May 2005
      • 5454

      #3
      Well spotted

      Comment

      • slappy
        Senior Member
        • Apr 2003
        • 1206

        #4
        Actually, you are mistaken. The problem is not the "inclusion" of dir="ltr" (which stands for "text direction= left-to-right"); it is the "absence" of: xmlns="http://www.w3.org/1999/xhtml" which causes the "incompatibility."

        These statements validate "correctly":

        <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en">

        or

        <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
        <html dir="ltr" lang="en">
        <head>


        and comes from the statement at the top of the FORUMHOME template being changed from:

        $stylevar[htmldoctype]
        <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
        <head>


        to:

        $stylevar[htmldoctype]
        <html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
        <head>


        or

        <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
        <html xmlns="http://www.w3.org/1999/xhtml">
        $stylevar[htmldoctype]
        <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
        <head>


        or a change in the $stylevar[htmldoctype] definition of the templates.



        Regards,
        Last edited by slappy; Sat 4 Aug '07, 6:51am.
        Slappy

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...