I'm building my first Expresso store, and have hit an issue with IE8. Any page that contains "add to cart" buttons renders everything up to the buttons but the rest of the page is blank.
IE shows this error:
Message: HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)
I presume it's Expresso's inline JS that's causing this, and that IE doesn't like it manipulating the page before it's fully loaded? Has anyone else come across this or found a solution?
EDIT:
I've now narrowed it down to a very simple template that still shows this error:
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div class="container">
BEFORE
{exp:channel:entries channel="discography" limit="1" disable="categories|category_fields|member_data|trackbacks|pagination"}
{exp:store:product entry_id="{entry_id}" return="cart"}
<input type="text" name="item_qty" size="3" value="1" />
<input type="submit" name="submit" value="Buy now" class="submit" />
{/exp:store:product}
{/exp:channel:entries}
AFTER
</div>
</body>
</html>
When I view that in IE8 or lower I don't see the "AFTER" text, and I get the same parsing error as before. If I remove the .container div, it renders as expected. So I assume that Expresso is trying to manipulate the page before IE has finished rendering the container div. Any ideas?