Appending Elements to a Section In IE
In IE7 and IE8, trying to do this fails:
- var $tagsection = $("<section class='links'></section>");
-
- $tagsection.html("<p>test</p>"); //or
- $tagsection.append("<p>test</p>");
But changing the section to a div, works:
- var $tagsection = $("<div class='links'></div>");
-
- $tagsection.html("<p>test</p>"); //or
- $tagsection.append("<p>test</p>");
I receive the following error:
Line : 17
Char : 55207
"Unexpected call to method or property access"
I'm using jQuery 1.5 and Modernizer.
Any ideas?