Microsoft Windows Vista Community Forums - Vistaheads
Recommended Download



Welcome to the Microsoft Windows Vista Community Forums - Vistaheads, YOUR Largest Resource for Windows Vista related information.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so , join our community today!

If you have any problems with the registration process or your account login, please contact us.

Driver Scanner

HTML that worked with IE7 broken with IE8

microsoft.public.internetexplorer.general




Recommended Fix - Fix Vista Errors and Optimize Performance


Driver Scanner 2012 - Free Scan Now
Reply
  #1 (permalink)  
Old 05-26-2009
bendan
 

Posts: n/a
HTML that worked with IE7 broken with IE8
the site http://www.blueservo.net/camload.php?camid=1&frameid=1 works fine
with IE7 but is broken with IE8.
The Developer tools supplied with IE8 has a validate function and that shows:
48 Errors, 12 warning(s) for the page.

Did they change the rules for HTML?
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-26-2009
Leonard Grey
 

Posts: n/a
Re: HTML that worked with IE7 broken with IE8
Because of significant code and feature changes in Internet Explorer 8,
some existing web pages that were developed for previous versions of
Internet Explorer, or with proprietary HTML or scripting extensions,
might not function the same way in Internet Explorer 8. Web developers
need to test their web pages to identify compatibility issues with
Internet Explorer 8, and redesign web pages that do not function properly.

---
Leonard Grey
Errare humanum est

bendan wrote:
> the site http://www.blueservo.net/camload.php?camid=1&frameid=1 works fine
> with IE7 but is broken with IE8.
> The Developer tools supplied with IE8 has a validate function and that shows:
> 48 Errors, 12 warning(s) for the page.
>
> Did they change the rules for HTML?

Reply With Quote
  #3 (permalink)  
Old 05-26-2009
PA Bear [MS MVP]
 

Posts: n/a
Re: HTML that worked with IE7 broken with IE8
IE Developer Center
http://msdn.microsoft.com/en-us/ie/default.aspx

Learn IE8
http://msdn.microsoft.com/en-us/ie/aa740473.aspx

HTML and DHTML Overviews and Tutorials
http://msdn.microsoft.com/en-us/library/ms537623.aspx

Or you could post here instead:

MSDN IE Development Forums
http://forums.microsoft.com/MSDN/def...D=253&SiteID=1


bendan wrote:
> the site http://www.blueservo.net/camload.php?camid=1&frameid=1 works fine
> with IE7 but is broken with IE8.
> The Developer tools supplied with IE8 has a validate function and that
> shows: 48 Errors, 12 warning(s) for the page.
>
> Did they change the rules for HTML?


Reply With Quote
  #4 (permalink)  
Old 05-26-2009
VanguardLH
 

Posts: n/a
Re: HTML that worked with IE7 broken with IE8
bendan wrote:

> the site http://www.blueservo.net/camload.php?camid=1&frameid=1 works fine
> with IE7 but is broken with IE8.
> The Developer tools supplied with IE8 has a validate function and that shows:
> 48 Errors, 12 warning(s) for the page.
>
> Did they change the rules for HTML?


Web pages often check which web browser is rendering the page. Due to
differences in HTML (usually in what attributes are supported) and in
DOM, web pages have to react differently. For example, the
window.navigate(<href>) method works in IE but not in other web browsers
so window.location.href = <href> should be used instead.

When I visited the web page, the error said the _gat object had not been
defined. That means some code tried to use the _gat object but the
coder neglected to define it beforehand.

<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-6121754-4");
pageTracker._initData();
pageTracker._trackPageview();
</script>

Okay, so just where is the _gat object defined so it can be used later
to call its _getTracker() method? Maybe it's defined in a separate .js
file that is supposed to write to the current document (web page) but
the file could not be found. For example, just before the above script
section, there is another to load a file:

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>

So what if the ga.js file could not be found? If it defined _gat but
the file didn't load then the _gat object is undefined hence the error.
The web page you are visiting is using Google Analytics to track their
visitors. I'm not a Javascript expert. If the document.write() returns
a status code, they should've used it to check if the write to the web
page (of the retrieved script file) actually worked or not.

The web page author probably just copied and pasted code they were given
by Google. That doesn't mean it is good code with graceful recovery.

The validation of which you speak (which is sending the web page to W3's
validate page) shows lots of errors, many of which are due to the web
page author deciding to use a doctype of "XHTML 1.0 Strict". That was a
bad choice since the author decided to use attributes in tags and other
elements that are not allowed under that doctype. For example, the
color attribute in <font color=<somecolor> ...> is not valid. They
should've used TRANSISTIONAL to support the old attributes that are
obsoleted. That the attribute is invalid under Strict mode doesn't mean
a web browser will not use it. There seems to be quite a bit of
sloppiness built into most web browsers. A lot of errors you see from
W3's validation are due to the web author selecting an restrictive
document type but using a style in his coding that uses obsoleted tag
attributes.

A lot of the errors and warnings at W3's validator page can be ignored
but it appears the web author should change to Transitional for doctype.

The web page *looks* okay to me. You never bothered to describe what
"broken" means to you. I did not actually try to login since I don't
have an account there and don't want one. Looks the same in both IE8
and Firefox3.

By the way, this page creates an account and records your personal
information. It is NOT a secured page for their web form (SSL isn't
used, it isn't an https:// page). The form's action does not send its
data to an https:// page (to ensure the data transmitted goes to a page
that first does the SSL handshaking). Yeah, some secure page that is
for creating an account ... NOT! The web author needs to do some work.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Website broken in IE7 but worked fine in IE6 IceAngelRose microsoft.public.internetexplorer.general 5 12-03-2008 04:46
fix worked Brower Hopson microsoft.public.windowsupdate 2 08-11-2008 03:10
Lots of problems - regedit is broken, taskbar is misbehaving, audio is broken.. HELP! Elspeth microsoft.public.windows.vista.general 3 07-02-2008 23:19
Worked one day not the next. Brock microsoft.public.windows.vista.mail 1 07-02-2008 19:12




All times are GMT +1. The time now is 06:27.




Driver Scanner - Free Scan Now

Vistaheads.com is part of the Heads Network. See also XPHeads.com , Win7Heads.com and Win8Heads.com.


Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.6.0 RC 2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120