html - Why would IE8 remove custom data attribute from the body element/tag? -
im having real strange issue ie8 isn't parsing data attributes on <body>
tag.
for example, have following html:
<body data-controller="homectrl">
when inspect page in ie8 developer tools attribute missing. confirmed when execute javascript in console (it returns null!):
document.body.getattribute('data-controller')
if view source, data attribute indeed there, ie8 seems ignore or remove it?!?
more strangely, if have div within body.. example
<div id="main" data-controller="homectrl">
this works! can see in developer tools , can read value javascript. bizarre!
has come across before? cause happen?
Comments
Post a Comment