• Do you have a Github repository that I can submit a pull request to?

    There is an error in the definition of the SVG icons in pojo-a11y-frontend.php

    Please see lines 200 and 203 where the resize_font_add and high_contrast SVG icons are defined. At the end of the opening path tag there are two double-quotes where there should only be one.

    ... z""></path>',

    My accessibility scanner flags this as a Level A issue because it thinks another attribute is being defined without a space between them.

    Your help in resolving this error is very much appreciated.

    • This topic was modified 4 years, 6 months ago by Josh Hartman.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Josh Hartman

    (@joshhartman)

    Still not resolved, having to resort to editing plugin files to get a cleaner accessibility scan.

    Hi @joshhartman I get the same error from https://validator.w3.org/ and I cannot validate my site! Could you do us a favor and share with us how did you edit the plugin to fix it? (If you did it) It’s a pitty to get this error from an accessibility plugin!

    <span class="pojo-a11y-toolbar-icon"><svg version="1.1" xmlns="https://www.w3.org/2000/svg" width="1em" viewBox="0 0 448 448"><path fill="currentColor" d="M256 200v16c0 4.25-3.75 8-8 8h-56v56c0 4.25-3.75 8-8 8h-16c-4.25 0-8-3.75-8-8v-56h-56c-4.25 0-8-3.75-8-8v-16c0-4.25 3.75-8 8-8h56v-56c0-4.25 3.75-8 8-8h16c4.25 0 8 3.75 8 8v56h56c4.25 0 8 3.75 8 8zM288 208c0-61.75-50.25-112-112-112s-112 50.25-112 112 50.25 112 112 112 112-50.25 112-112zM416 416c0 17.75-14.25 32-32 32-8.5 0-16.75-3.5-22.5-9.5l-85.75-85.5c-29.25 20.25-64.25 31-99.75 31-97.25 0-176-78.75-176-176s78.75-176 176-176 176 78.75 176 176c0 35.5-10.75 70.5-31 99.75l85.75 85.75c5.75 5.75 9.25 14 9.25 22.5z"">

    • This reply was modified 4 years, 3 months ago by pareklinon.

    At the VERY END of the code you pasted 9.25 22.5z"">, you have two sets of double quotes (“). Instead it should be 9.25 22.5z">.

    Though I haven’t looked at the actual code in context, I just installed the plugin and I may be facing similar error…

    EDIT : So looking at the code of /pojo-accessiblity/includes/pojo-a11y-frontend.php, just search for:
    ""></path>'
    and replace with:
    "></path>'

    Also for the sake of letting devs know, I opened a git-hub issue here https://github.com/pojome/one-click-accessibility/issues/51

    • This reply was modified 4 years, 3 months ago by Nickolabs.
    • This reply was modified 4 years, 3 months ago by Nickolabs.

    Thanks @nickolabs! It helped me a lot! (and I suppose it helped the devs too!)

    You should be able to click on Plugin Editor under Plugins in the WordPress dashboard.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Error in SVG icon code’ is closed to new replies.