• Problem: The plugin open and closes a div inside an ul, while it works it’s not allowed so doesn’t validate.
    Error:
    Element div not allowed as child of element ul in this context. (Suppressing further errors from this subtree.)
    <div↩class=’nlposts-ulist-pagination pagination’><ul↩cl

    The solution is to edit the plugin:
    find
    // Close wrapper
    echo $html_tags[‘wrapper_c’];
    cut it and paste it below
    // Close item box
    echo $html_tags[‘item_c’];
    }

    Then it will validate cos it will open and close the navigation div outside the list of posts. Cheers!

    https://ww.wp.xz.cn/plugins/network-latest-posts/

Viewing 1 replies (of 1 total)
  • Thread Starter Doug

    (@nicoblog)

    Actually that will make the pagination works with bugs, so i’ll wait for the author input.

Viewing 1 replies (of 1 total)

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