• Resolved bvo

    (@bvo)


    Hi,

    When running my site through the W3C validator it gives back this error:
    Error: Element style not allowed as child of element noscript in this context.

    And this is the html output line (347):
    <noscript><style>.lazyload{display:none;}</style></noscript><script data-noptimize=”1″…..

    It seems to me that lazyloading (via optimize plugin) causes this. What van I do about this?

    Kind regards,
    Bas

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    Hey Bas, you could:
    * ignore it OR
    * disable lazyload in Autoptimize OR
    * hook into the AO API (autoptimize_filter_imgopt_lazyload_cssoutput filter) to remove the noscript-part with a couple of lines of code, if I’m not mistaking this was already explained in an earlier topic here 🙂

    Groeten uit België,
    frank

    Thread Starter bvo

    (@bvo)

    Hi Frank,
    Ignore is by far the easiest option, and if solving it is to hard, I will.
    Disabeling lazyload is not an option, since thats why I use this plugin in the first place.
    I will look for the older post about adjusting the code.
    Thanks so far!

    Bas

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    OK, let me know if you need any further assistance Bas 🙂

    Thread Starter bvo

    (@bvo)

    Found it and it works. Thank you!
    Bas

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    you’re welcome, feel free to leave a review of the plugin and support here! 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘validation error’ is closed to new replies.