• Resolved PatriceF

    (@patricef)


    There are two errors in your code breaking w3c valdation

    Error: No p element in scope but a p end tag seen.
    </div></p>
    must be replaced by
    </div>
    in two files :
    wp-security-general-init-tasks.php
    and
    wp-security-captcha.php

    thx to correct this
    best regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor wpsolutions

    (@wpsolutions)

    Hi,
    I checked the code again and I see no issues – ie, all html elements such as <div> and <p> have closing tags.
    How are you checking the validation? Have you checked the actual rendered HTML pages?

    Inside the php files the html code is split up across multiple lines where the variable containing that code is being concatenated with other code.
    Maybe your validator tool is not able to read the html code properly since it is constructed in fragments over multiple lines inside php code?

    Thread Starter PatriceF

    (@patricef)

    hello
    is use https://validator.w3.org/nu/
    you could ot have a <div>…</div> inside a <p> …</P>
    so </div></p> is not possible

    Best regards

    Plugin Contributor wpsolutions

    (@wpsolutions)

    Hi,
    Ah I see.
    I first thought the issue you were pointing out was something to do with missing end tags.

    I’ll take a look and see if I can modify the html to meet w3c validation.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error in w3c html validator’ is closed to new replies.