Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Learn More

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

  • 1 trả lời
  • 1 gặp vấn đề này
  • 3 lượt xem
  • Trả lời mới nhất được viết bởi 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.

Tất cả các câu trả lời (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.