Validator W3 Fails

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • William Thomas Jr
    Senior Member
    • Nov 2014
    • 526
    • 5.1.x

    Validator W3 Fails

    Hi,

    I am trying to get my website to validate. The W3 validator reports this as an error: X-UA-Compatible HTTP header must have the value IE=edge, was IE=edge,chrome=1.

    https://validator.w3.org/nu/?showsou...tforums.org%2F

    Could someone direct me on ridding of "chrome=1?

    Thanks,
    William
  • Wayne Luke
    vBulletin Technical Support Lead
    • Aug 2000
    • 73981

    #2
    The chrome=1 is to provide compatibility with the Chrome Frame addon in older versions of IE.

    However, you should be able to remove it by editing the Header template. We do not test for validation against that tool but how the software works in different browsers. When possible, we do remove browser specific tags.
    Translations provided by Google.

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

    Comment

    • William Thomas Jr
      Senior Member
      • Nov 2014
      • 526
      • 5.1.x

      #3
      Originally posted by Wayne Luke
      The chrome=1 is to provide compatibility with the Chrome Frame addon in older versions of IE.

      However, you should be able to remove it by editing the Header template. We do not test for validation against that tool but how the software works in different browsers. When possible, we do remove browser specific tags.
      Can't find it anywhere. I also searched templates but come up with nothing.

      Comment

      • Wayne Luke
        vBulletin Technical Support Lead
        • Aug 2000
        • 73981

        #4
        Sorry. It is actually in the function setHeaders() in the /includes/vb5/applicationabstract.php file.

        I've created a JIRA to have it removed since we do not plan to support IE8 and IE9 in the future.

        Translations provided by Google.

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

        Comment

      • William Thomas Jr
        Senior Member
        • Nov 2014
        • 526
        • 5.1.x

        #5
        I'm so close. Two more errors:

        1. Warning: The type attribute is unnecessary for JavaScript resources.

          From line 8, column 1; to line 8, column 61

          n.css" />↩<script type="text/javascript" src="js/header-rollup-540.js"></scri
        2. Warning: The type attribute is unnecessary for JavaScript resources.

          From line 3595, column 1; to line 3595, column 61

          </script>↩<script type="text/javascript" src="js/footer-rollup-540.js"></scri
        I need to remove two instances of type="text/javascript" and my site will be w3c compliant.

        Only problem is that I cannot find these last two instances. I've searched the templates but these last two do not appear.



        Any help?

        Comment

        • Mark.B
          vBulletin Support
          • Feb 2004
          • 24286
          • 6.0.X

          #6
          They are in the pre-header template. The version number is added dynamically so you search for: js/header-rollup

          However, doing this is probably unwise - it's not supported, and you're editing templates which may change in future upgrades.

          There is no need to be 100% w3c compliant. It's a meaningless goal. The aim should be to have the site display correctly in all standards-compliant browsers, which it does.
          MARK.B
          vBulletin Support
          ------------
          My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
          My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

          Comment

          • Wayne Luke
            vBulletin Technical Support Lead
            • Aug 2000
            • 73981

            #7
            It should be noted that we can inject CSS and Javascript rollups via vBulletin Template Code and they won't necessarily be in the templates but generated at run-time.
            Translations provided by Google.

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

            Comment

            Related Topics

            Collapse

            Working...