Closed Bug 86126 Opened 23 years ago Closed 23 years ago

Page content displayed incorrectly, some missing.

Categories

(Core :: Layout: Tables, defect)

defect
Not set
major

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: mozilla, Assigned: karnaze)

References

()

Details

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.1) Gecko/20010607 BuildID: 2001060703 On the Google main page, the text 'Google Groups / usenet discussion forum' is not displayed in Mozilla but is shown in IE 5.5. Also, the text 'Google Web Directory / the web organized by topic' is shown in green in Mozilla, while the link (first line) is blue in IE and the underlying text is black. Lastly, the text 'Make Google Your Homepage!' near the bottom of page is not shown in Mozilla but is shown in IE. Reproducible: Always Steps to Reproduce: 1. View the page http://www.google.com/ and examine the content. Actual Results: Source from Mozilla: <html><head><meta HTTP-EQUIV="content-type" CONTENT="text/html; charset=ISO-8859-1"><title>Google</title><style><!-- body {font-family: arial,sans-serif;} //--></style> <script> <!-- function setfocus() { document.f.q.focus(); } // --> </script> </head><body bgcolor=#ffffff text=#000000 link=#0000cc vlink=551a8b alink=#ff0000 onLoad=setfocus()><center><img src="images/title_homepage4.gif" width="305" height="115" alt="Google"><br><br> <form action="/search" method=get name=f><table cellspacing=0 cellpadding=0 ><tr align=center valign=baseline><td width=75>&nbsp;</td><td nowrap><font face=arial,sans-serif size=-1>Search 1,346,966,000 web pages</font></td><td></td></tr><tr align=center valign=middle><td width=75>&nbsp;</td><td align=center><input type=text value="" framewidth=4 name=q size=55 maxlength=256><br><input name=btnG type=submit value="Google Search"><input name=btnI type=submit value="I'm Feeling Lucky"></td><td nowrap valign=top align=left><font face=arial,sans-serif size=-2>&nbsp;<a href="/advanced_search">Advanced&nbsp;Search</a><br>&nbsp;<a href="/preferences">Preferences</a></font></td></tr></table></form> <br><font size=-1><a href="http://directory.google.com"> <font color=#006600><b>Google Web Directory</b></font></a><br> <font color=#006600><i>the web organized by topic</i></font> </font><br><br><br> <br><br><br><font size=-1><a href="/jobs/">Cool&nbsp;Jobs</a> - <a href="/services/">Add&nbsp;Google&nbsp;to&nbsp;Your&nbsp;Site</a> - <a href="/ads/">Advertise&nbsp;with&nbsp;Us</a> - <b><a href="/about.html">All&nbsp;About&nbsp;Google</a></b></font> <p><font size=-2>&copy;2001 Google</font></center></body></html> Expected Results: Source from IE 5.5: charset=ISO-8859-1"><title>Google</title><style><!-- body {font-family: arial,sans-serif;} //--></style> <script> <!-- function setfocus() { document.f.q.focus(); } // --> </script> </head><body bgcolor=#ffffff text=#000000 link=#0000cc vlink=551a8b alink=#ff0000 onLoad=setfocus()><center><img src="images/title_homepage4.gif" width="305" height="115" alt="Google"><br><br> <form action="/search" method=get name=f><table cellspacing=0 cellpadding=0><tr align=center valign=baseline><td width=75>&nbsp;</td><td nowrap><font face=arial,sans-serif size=-1>Search 1,346,966,000 web pages</font></td><td></td></tr><tr align=center valign=middle><td width=75>&nbsp;</td><td align=center><input type=text value="" framewidth=4 name=q size=55 maxlength=256><br><input name=btnG type=submit value="Google Search"><input name=btnI type=submit value="I'm Feeling Lucky"></td><td nowrap valign=top align=left><font face=arial,sans-serif size=-2>&nbsp;<a href="/advanced_search">Advanced&nbsp;Search</a><br>&nbsp;<a href="/preferences">Preferences</a></font></td></tr></table></form><table border=0 cellspacing=0 cellpadding=5 align=center><tr valign=top><td><div align=center><font size=-1 face=arial,sans-serif><a href="http://directory.google.com"><b>Google Web Directory</b></a><br><i>the web organized by topic</i><font color=#006600><br></font></font></div></td><td>&nbsp;</td><td><div align=center><font face=arial,sans-serif size=-1><a href="http://groups.google.com"><b>Google Groups</b></a><br><i>usenet discussion forum</i><font color=#D9AD00><br></font></font></div></td></tr></table><br><br> <br><br><br><font size=-1><a href="/jobs/">Cool&nbsp;Jobs</a> - <a href="/services/">Add&nbsp;Google&nbsp;to&nbsp;Your&nbsp;Site</a> - <a href="/ads/">Advertise&nbsp;with&nbsp;Us</a> - <a href="http://toolbar.google.com">Google&nbsp;Toolbar</a> - <b><a href="/about.html">All&nbsp;About&nbsp;Google</a></b><span id=hp style="behavior:url(#default#homepage)"></span> <script> if (!hp.isHomePage('http://www.google.com/')) {document.write("<p><a href=\"/mgyhp.html\" onClick=\"style.behavior='url(#default#homepage)';setHomePage('http://www.google.com/');\">Make Google Your Homepage!</a>");} </script></font> <p><font size=-2>&copy;2001 Google</font></center></body></html>
It looks to me like google is sending out different pages to the different browsers (they have every right to). Mozilla seems to be rendering what it is getting correctly.
> On the Google main page, the text 'Google Groups / usenet discussion forum' > is not displayed in Mozilla but is shown in IE 5.5. I see this in a build from today. > Also, the text 'Google Web Directory / the web organized by topic' is shown > in green in Mozilla, while the link (first line) is blue in IE and the > underlying text is black. Looks fine to me. > Lastly, the text 'Make Google Your Homepage!' near the bottom of page is > not shown in Mozilla but is shown in IE. They're running this JS: if (!hp.isHomePage('http://www.google.com/')) { document.write("<p><a href=\"/mgyhp.html\" onClick=\"style.behavior='url(#default#homepage)'; setHomePage('http://www.google.com/');\">Make Google Your Homepage!</a>"); } Since we don't have an `hp' property on the global object, with which the home patch can be set, we're probably doing the right thing by not displaying the final link. Perhaps we should implement this (apparent) IE extension to the global window? I'm closing this bug as WORKSFORME; if we want to implement an |hp| object to copy IE's behavior, let's open another bug on that. barroma, jst: any thoughts?
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
OS: Windows NT → All
Hardware: PC → All
Resolution: --- → WORKSFORME
waterson, from what I can't tell, there is no window.hp in IE either, isn't that a function defined by one of the scripts in that page? I don't think we need a new bug for that.
Here's where they define hp: <span id=hp style="behavior:url(#default#homepage)"></span> I haven't seen a large number of sites that use IE's ability to set the homepage from JS, so, for now I don't think there is a need to copy this functionality, but we should keep it on the radar. BTW, I see the "Google Groups" link in the 20010725 N6.1 branch build.
You need to log in before you can comment on or make changes to this bug.