IE throws error KB927917 when displaying google map
Monday, October 12th, 2009 - 07:23Recently, when developing a directory of bed and breakfasts in Cornwall, which features a google map on the home page, and testing in Internet Explorer, IE8 threw the following error :
HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)
Previous versions of IE simply gave up, with the helpful message ‘Operation Aborted’. With a little digging, I came across a Microsoft help file, which explains that this message
‘is triggered by an HTML parsing exception that occurs when all the following specific conditions are met:
- The HTML file is being parsed
- Script is executing
- The executing script attempts to add, or remove an element from an unclosed ancestor in the markup tree (not including the script block’s immediate parent element).’
and that one way of preventing it occuring is to
‘move your script execution to a function that is invoked after parsing is complete (e.g., onload)’
All well and good, but …. not, because the google map on the home page was being called from an onload() function, in exactly the same way as another instance of the map elsewhere, but this other map was not throwing the error.
Why ? And why was it only throwing the error on the live instance of the site, not the local one ?
After much frustrated head scratching, the reason became clear. The home page map initialises hundreds of icons, but the other map initialises just one. The initialising of those icons was all being done inside the <head> of the page. The live site took longer to send the code to the brower, with the consequence that the google map was trying to modify its container element before the page was fully loaded.
The solution ? Simply, move all the icon initialisation code to after the closing <body> tag.
female viagra drug Cheap Pharmacy Viagra best cheap viagra
lily icos cialis online Cheap Quality Viagra 3 buy generic viagra online
lowest price on viagra Low Price For Viagra levitra online us
cialis perscription drug stores Buy Viagra In Bangkok cialis cheap online direct
best cheap viagra viagra viagra Canadian Drugs Cialis 3 discount generic viagra
what is the drug viagra! Generic Cialis Prices levitra order prescription;
viagra uk retailers Generic Cialis Price Order levitra on line cialis made in canada 696.
order cialis tampa florida Buy Viagra On Line Uk cialis overnight
viagra pill pictures Pill Splitter Viagra find viagra free sites edinburgh
drug effects more side viagra, Wanted To Buy Viagra “lowest cost cialis”
generic cialis pills coupon, Cheap Online Levitra female viagra drug
best cheap viagra Buy Viagra Australia lily icos cialis online
3 buy generic viagra online Best Price On Cialis lowest price on viagra
levitra online us Cialis Free Softtabs cialis perscription drug stores
cialis cheap online direct Paypal To Buy Viagra best cheap viagra viagra viagra
3 discount generic viagra Generic In Uk Viagra what is the drug viagra!
levitra order prescription; Viagra Discount Sale viagra uk retailers
Order levitra on line cialis made in canada 696. Buy Viagra Removethis order cialis tampa florida
cialis overnight Buy Generic Cialis Uk viagra pill pictures
find viagra free sites edinburgh Viagra Canada Generic drug effects more side viagra,
“lowest cost cialis” Purchase Viagra In Uk generic cialis pills coupon,
female viagra drug Try Levitra For Free best cheap viagra
lily icos cialis online Buring Levitra Online 3 buy generic viagra online
lowest price on viagra Buy Viagra In The Uk levitra online us
cialis perscription drug stores Order Generic Cialis cialis cheap online direct
best cheap viagra viagra viagra Dosages Levitra Order 3 discount generic viagra
what is the drug viagra! Viagra Alternative Uk levitra order prescription;
viagra uk retailers Cheap Viagra Generic Order levitra on line cialis made in canada 696.
order cialis tampa florida Viagra Generic Canada cialis overnight
viagra pill pictures Levitra Online Order find viagra free sites edinburgh
drug effects more side viagra, Caverta Cialis Cheap “lowest cost cialis”
generic cialis pills coupon, Viagra 6 Free Sample female viagra drug
best cheap viagra Cheap Viagra Kamagra lily icos cialis online
3 buy generic viagra online Cialis Canada Generic lowest price on viagra
levitra online us 2cheap Levitra Online cialis perscription drug stores
cialis cheap online direct Price Generic Viagra best cheap viagra viagra viagra
3 discount generic viagra Levitra Online Sales what is the drug viagra!
levitra order prescription; Cialis Pharmacy Sale viagra uk retailers
Order levitra on line cialis made in canada 696. Ultralow Price Viagra order cialis tampa florida
cialis overnight Viagra Pill For Sale viagra pill pictures
find viagra free sites edinburgh Cheap Viagra Discount drug effects more side viagra,
“lowest cost cialis” Active Drug In Viagra generic cialis pills coupon,
female viagra drug A Drug Called Levitra best cheap viagra
lily icos cialis online Buy Viagra Online Au 3 buy generic viagra online
lowest price on viagra Order Discount Viagra levitra online us
cialis perscription drug stores Buy Viagra Australian cialis cheap online direct
best cheap viagra viagra viagra Buy Viagra For Women 3 discount generic viagra
what is the drug viagra! Generic Cheap Cialis levitra order prescription;
viagra uk retailers Canada Cialis Online Order levitra on line cialis made in canada 696.

