• Hello. When calling the fep_notification_div hook during wp_head(), it outputs the HTML for the notification bar in the HEAD tag, producing invalid HTML. Example output below.

    However, the browser still parses it correctly. Developer tools complains:

    HTML1512: Unmatched end tag.
    HTML1514: Extra “<body>” tag found. Only one “<body>” tag should exist per document.

    You might consider revising to output the HTML after the BODY tag.

    I’ve identified a few other bugs and will submit them later. Nice plugin by the way! Thank you for your contribution.

    ======================================================================

    <meta name="msapplication-TileImage" content="/GC_Favicon.png" />
    <div id="fep-notification-bar" class="fep-notification-bar fep-hide"><p>You have<span class="fep_unread_message_count_hide_if_zero fep-hide"> <a href="https://gohiomobilityhub.com/message-center/?fepaction=messagebox"><span class="fep_unread_message_count_text">0 messages</span></a></span><span class="fep_hide_if_anyone_zero fep-hide"> and</span><span class="fep_unread_announcement_count_hide_if_zero fep-hide"> <a href="https://gohiomobilityhub.com/message-center/?fepaction=announcements"><span class="fep_unread_announcement_count_text">0 announcements</span></a></span> unread</p><button aria-label="Dismiss notice" class="fep-notice-dismiss">×</button></div>
    <style type="text/css" media="all">
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Notification Bar Causes Invalid HTML’ is closed to new replies.