gecko-dev/dom/plugins/test/reftest/utils.js

19 строки
442 B
JavaScript

function forceLoadPluginElement(id) {
var e = document.getElementById(id);
var found = e.pluginFoundElement;
}
function forceLoadPlugin(ids, skipRemoveAttribute) {
if (Array.isArray(ids)) {
ids.forEach(function(element, index, array) {
forceLoadPluginElement(element);
});
} else {
forceLoadPluginElement(ids);
}
if (skipRemoveAttribute) {
return;
}
document.documentElement.removeAttribute("class");
}