WordPress.org

Forums

WP Accessibility
Error found while checking document as XHTML 1.0 Strict (6 posts)

  1. lbossi
    Member
    Posted 10 months ago #

    Hi,
    when I check site's pages with W3C validator, the result is 1 error found in the plugin's WP ACCESSIBILITY code.
    I found the error in the file "wp-accessibility/wp-accessibility.php".
    The wrong code is:
    script>
    //<![CDATA[
    (function( $ ) { 'use strict';
    $skiplinks_js
    $targets
    $lang_js
    $tabindex
    $underlines
    }(jQuery));
    //]]>
    </script>";

    and it must be so

    <script type='text/javascript'>
    //<![CDATA[
    (function( $ ) { 'use strict';
    $skiplinks_js
    $targets
    $lang_js
    $tabindex
    $underlines
    }(jQuery));
    //]]>
    </script>";

    I'm not an expert of PHP language and I hope that my english is understandable.
    Thanks and greetings.

    Luisa Bossi

    https://wordpress.org/plugins/wp-accessibility/

  2. lbossi
    Member
    Posted 10 months ago #

    Sorry,
    my site's URL is:
    http://www.scuolemarchirolo.gov.it/

  3. Joe Dolson
    Member
    Plugin Author

    Posted 10 months ago #

    Yes, WP Accessibility is not written in XHTML. The output is written in HTML5.

    In a future version, I may make it effective for both, but it's not something I've done yet.

  4. lbossi
    Member
    Posted 10 months ago #

    All italian teachers (and they are not so few), who take care of their own school's site and use this plugin, thanks you.

  5. ClaudiaCantaluppi
    Member
    Posted 10 months ago #

    I think lbossi may be part of the same (large - transnational) network of teachers that I also belong to, and I think this may be related. When we try to validate the html of our websites we get an invalid markup error because <script> is not correctly written as <script type='text/javascript'> except for one occurence. We usually just add it and re-upload wp-accessibility.php but it would be more convenient if we didn't have to :-) Thanks for your attention!
    Claudia

  6. Joe Dolson
    Member
    Plugin Author

    Posted 10 months ago #

    Yes, I understand the issue.

Reply

You must log in to post.

About this Plugin

  • WP Accessibility
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.