FIX: Use getAttribute instead of dataset (#10848)
IE10 does not have dataset field.
This commit is contained in:
parent
120fa8ad2f
commit
9c0892c47c
|
@ -23,7 +23,7 @@ var $buo = function() {
|
|||
var noscriptElements = document.getElementsByTagName("noscript");
|
||||
// find the element with the "data-path" attribute set
|
||||
for (var i = 0; i < noscriptElements.length; ++i) {
|
||||
if (noscriptElements[i].dataset["path"]) {
|
||||
if (noscriptElements[i].getAttribute("data-path")) {
|
||||
// noscriptElements[i].innerHTML contains encoded HTML
|
||||
mainElement.innerHTML = noscriptElements[i].childNodes[0].nodeValue;
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue