aFarkas / html5shiv

This script is the defacto way to enable use of HTML5 sectioning elements in legacy Internet Explorer.
http://paulirish.com/2011/the-history-of-the-html5-shiv/
9.89k stars 2.56k forks source link

Inline svg inside <header> in IE8 #172

Closed nathansh closed 9 years ago

nathansh commented 9 years ago

I just discovered that if you put an inline svg inside of a <header> element with the html5shiv included, the <header> element does not close. This codepen shows the code required to reproduce the issue http://codepen.io/nathansh/pen/gbMdyG. Codepen doesn't work in IE8 but you can download a zip of the code.

nathansh commented 9 years ago

In addition, if you remove all paths from inside the <svg> element this doesn't break the <header>, but even one path in the svg will break it.

aFarkas commented 9 years ago

@nathanshubert Have you tried to remove the xmlns attribute?

nathansh commented 9 years ago

@aFarkas thanks for pointing that out. I have no idea why, but removing the xmlns attribute does do the trick.

Ghostavio commented 9 years ago

there was any fix for it or it was just by removing the xmlns? what if this is not an option?