Extensive research did not lead me to understanding why the below happens - I hope that the SO community can help...
I copied the files mentioned in Why HTML1113: Document mode restart from IE9 Standards to Quirks to local filesystem and opened the xml in IE9 (by specifying the path D:...
in the url bar).
Surprisingly, the behavior is quite different from opening the web version.
Now I can understand that "My Computer" zone settings differing from Internet zone ones explain the pop-up windows mentioned below, but I don't understand why the result is different and why quirks mode is not automatically chosen, just like was done when opening the xml on the web.
When I open the local file, I get the following:
which no doubt is caused by a local zone setting. Next, the browser mode is IE9 (not auto quirks as earlier) and it fails on applying the XSLT:
First I thought that this was caused by MSXML6 DOM basic settings like AllowXsltScript
not being set to true, but I am not sure about that any more, because it all works OK when opening the web version.
So why does the local one fail?
Stranger still, opening the web version led to auto quirks mode and correct result, but when I switch to quirks mode for the local file, it fails on the MSXML6 DOM object - actually this makes more sense to me than no error, because quirks mode probably only offers MSXML3 (or should only offer that - but then why was auto quirks in web version OK?).
After accepting, it changes to
Now, when selecting IE9 standards mode again, I get
and the result is the expected
Reciting events when using local files (apart from zone setting differences):
- IE9 standards mode XSLT8690 error
- Switching to quirks mode errors
- Switching back to IE9 standards mode is OK now
Reciting the events when opening the web version (apart from differences due to zone settings):
- quirks mode automatically
- page opens correctly in quirks - apparently MSXML6 is still used here in the auto quirks mode
- switch to IE9 standards mode is OK too
- Back to quirks mode errors as above ("The parameter is incorrect'")
What is causing all these peculiar differences?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…