Pesquisar no site de suporte

Evite golpes de suporte. Nunca pedimos que você ligue ou envie uma mensagem de texto para um número de telefone, ou compartilhe informações pessoais. Denuncie atividades suspeitas usando a opção “Denunciar abuso”.

Learn More

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

  • 1 resposta
  • 1 tem este problema
  • 3 visualizações
  • Última resposta 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 as respostas (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.