WordPress.org

Support

Support » Plugins and Hacks » HTML5 compliant

HTML5 compliant

Viewing 1 replies (of 1 total)
  • hmm… since in HTML5 you are forced to use id attribute of some container, there is a risk of duplicate id.

    Let’s say Your plugin adds the id’s to every Hx tag with its “safenamed” name like this:
    <h2 id="my_amazing_title_">My Amazing TITLE!</h2>

    OK, but what in case the page contains a heading like “calendar” and somewhere in the page there is also some <div id="calendar">...</div>… hups! Now we are having a duplicate id… that’s not good.

    Also… How to solve the stupid behaviour of browsers scrolling too much down? If you go to bookmarked heading, the browser (newest Firefox) scrolls below the heading, so you actually don’t see it… Maybe just add some little 1em scroll-up via Javascript (jQuery)? I don’t know…

    [ Signature moderated. ]

Viewing 1 replies (of 1 total)
  • The topic ‘HTML5 compliant’ is closed to new replies.