Join us and the lead editor of IRL, Mozilla's multi-award-winning podcast, for a behind-the-scenes look at the pod and to contribute your ideas for the next season, themed: "AI and ME." Mark your calendar and join our Community Call on Wednesday, Aug 7, 17:00–17:45 UTC. See you there!

Buscar en Ayuda

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

10.01 Different behavior of a document with XHTML doctype and HTML5 doctype otherwise same content

  • 1 respuesta
  • 1 tiene este problema
  • 3 visitas
  • Última respuesta de the-edmeister

more options

I am trying to develop simple popup footnotes for a web site I manage. I have it working in a test page. The behavior desired is that the popup appears when the mouse hovers over the footnote number in the text. There is a "close" link inside the popup, and when dismissed, the page behind it should be exactly as it was before the popup was shown. BUT ... I initially noticed that when I dismiss the popup in a broader test of some actual documents from the site, the browser jumps back to the top of the web page. It took me quite a while to discover that the correctly working initial test page has !DOCTYPE XHTML 1.0, whereas the pages from the site are !DOCTYPE html ie HTML5. I can reproduce this at will.

I am trying to develop simple popup footnotes for a web site I manage. I have it working in a test page. The behavior desired is that the popup appears when the mouse hovers over the footnote number in the text. There is a "close" link inside the popup, and when dismissed, the page behind it should be exactly as it was before the popup was shown. BUT ... I initially noticed that when I dismiss the popup in a broader test of some actual documents from the site, the browser jumps back to the top of the web page. It took me quite a while to discover that the correctly working initial test page has !DOCTYPE XHTML 1.0, whereas the pages from the site are !DOCTYPE html ie HTML5. I can reproduce this at will.

Todas las respuestas (1)

more options

Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox.
http://forums.mozillazine.org/viewforum.php?f=25
You'll need to register and login to be able to post in that forum.