innerHTML is not allowed on Firefox


innerHTML is not allowed on Firefox



I have those codes, and i need help to get Alternative for innerHTML?
i have 3 diferent codes



1


element.resizeSensor.style.cssText = style;
element.resizeSensor.innerHTML =
'<div class="resize-sensor-expand" style="' + style + '">' +
'<div style="' + styleChild + '"></div>' +
'</div>' +
'<div class="resize-sensor-shrink" style="' + style + '">' +
'<div style="' + styleChild + ' width: 200%; height: 200%"></div>' +
'</div>';
element.appendChild(element.resizeSensor);



2


PlaybackRateMenuButton.prototype.updateLabel = function updateLabel(event) {
if (this.playbackRateSupported()) {
this.labelEl_.innerHTML = this.player().playbackRate() + 'x';
}
};

return PlaybackRateMenuButton;
}(MenuButton);



3


if(this.label) {
this.label.innerHTML = this.options_.label;
}
},
onClick: function(customSourcePicker){
console.log(customSourcePicker)
this.onClickListener(this);
// Remember player state
var currentTime = this.player_.currentTime();
var isPaused = this.player_.paused();
this.showAsLabel();



4


hostSpan.innerHTML = labelText;
hostCell.style.paddingBottom = '5px';
return switchInput;
}



so i want to remove the innerHTML i have see this post Alternative for innerHTML? but this dont help me to mouch, so pleas how i can remove this innerHTML from my codes thanks


innerHTML


innerHTML





What do you mean by innerHTML is not allowed on Firefox? Do you get an error in the console?
– Olian04
Jul 1 at 10:32


innerHTML is not allowed on Firefox





Possible duplicate of Alternative for innerHTML?
– LGSon
Jul 1 at 10:33





Firefox, have disable my Extension, and my Developer is on vacation, and i don't know how to fix this, this is the message from Firefox.. Please fix all innerHTML usages in your add-on as described in your add-ons validation report. This add-on is creating DOM nodes from HTML strings containing potentially unsanitized data, by assigning to innerHTML, jQuery.html, or through similar means. Aside from being inefficient, this is a major security risk.
– Emio Lora
Jul 1 at 10:36






@LGSon if you read my question, you can see i say i have see that post what u say to me now, thanks
– Emio Lora
Jul 1 at 10:38









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

How to add background colour in existing image using Swift?

Moria Casán

How to make file upload 'Required' in Contact Form 7?