• Resolved artedelweb

    (@artedelweb)


    Hi, your plugin is extremely simple to use and performant but when I try to do the w3c test I encounter the problem of “Trailing slash on void elements has no effect and interacts badly with unquoted attribute values.” I solved it by editing /complianz-gdpr/cookiebanner/templates/cookiebanner.php and removing the new line. If it could be implemented directly in future updates it would be perfect. Thank you.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor jarnovos

    (@jarnovos)

    Hi @artedelweb,

    Which one of the lines in the file did you remove? Could you indicate the line number, as seen in the below file on GitHub?

    https://github.com/Really-Simple-Plugins/complianz-gdpr/blob/master/cookiebanner/templates/cookiebanner.php

    Kind regards, Jarno

    Thread Starter artedelweb

    (@artedelweb)

    Sorry, I forgot to mention that the other error that appears with the W3C control is that both trailing slashes and new lines generate an error (or at least a warning)

    Hi, I didn’t delete any rows obviously but simply minimized the space by eliminating the stacks on line 27, 52, 75, 98

    from
    <input type=”checkbox”
    id=”cmplz-functional-{consent_type}”
    data-category=”cmplz_functional”
    class=”cmplz-consent-checkbox cmplz-functional”
    size=”40″
    value=”1″/>
    to this:
    <input type=”checkbox” id=”cmplz-functional-{consent_type}” data-category=”cmplz_functional” class=”cmplz-consent-checkbox cmplz-functional” size=”40″ value=”1″>
    and from value=”1″/> to this value=”1″>

    i hope this can help

    • This reply was modified 1 year, 5 months ago by artedelweb.
    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @artedelweb,

    Thank you for sharing the suggestion, we will take a closer look at this behavior in combination with the W3C plugin as well.

    If you have any further questions in the meantime, let me know.

    Kind regards, Jarno

    Thread Starter artedelweb

    (@artedelweb)

    Thank you. I hope it helped.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘W3C and trailing slash’ is closed to new replies.