BJ Lazy Load
[resolved] Too many errors with HTML Markup Validation Service (validator.w3.org) (4 posts)

  1. riversatile
    Posted 3 years ago #


    Dear Bj Lazy Load's developper,

    By doing a HTML Markup validation at http://validator.w3.org/, I saw that there are massive errors that you can solve :

    document type does not allow element "noscript" here.
    The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

    One possible cause for this message is that you have attempted to put a block-level element (such as "<noscript>") inside an inline element (such as "<a>", "<span>", or "<font>").

    a <noscript>xxxxxx</noscript> tag is not allowed in a <a href="">xxxxxx</a> tag.
    This may be solved by change the line 166 in the file bj-lazy-load.php :
    $replaceHTML .= '<noscript>' . $imgHTML . '</noscript>';

    I don't think the data of the variable "$imgHTML" are necessary here as it's a perfect copy of the replaced HTML code by Lazy Load ?
    What do you think of this ?


  2. Bjørn Johansen
    Plugin Author

    Posted 3 years ago #

    Stop living in the past. Use HTML5.

  3. riversatile
    Posted 3 years ago #

    ...It's exact.
    When I change HTML encoding in the Head, no error that deals with <noscript>.


  4. Towfiq I.
    Posted 3 years ago #

    I am using html5 and I am still getting "Duplicate attribute class avatar"

    the HMTL output is this:

    <img class="lazy lazy-hidden" alt='' src="http://localhost/towfiqi/wp-content/plugins/bj-lazy-load/img/placeholder.gif" data-lazy-type="image" data-lazy-src='http://1.gravatar.com/avatar/77debcb5563060dc5480ed5353ebae5c?s=75&d=http%3A%2F%2Fi.imgur.com%2Fc6JkM4R.png%3Fs%3D75&r=G' class='avatar avatar-75 photo' height='75' width='75' /><noscript><img alt='' src='http://1.gravatar.com/avatar/77debcb5563060dc5480ed5353ebae5c?s=75&d=http%3A%2F%2Fi.imgur.com%2Fc6JkM4R.png%3Fs%3D75&r=G' class='avatar avatar-75 photo' height='75' width='75' /></noscript>

    any solution for this?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • BJ Lazy Load
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic