fixup 8a1908b7: don't protect disabled elements

This commit is contained in:
tophf 2017-11-21 10:59:14 +03:00
parent 46df47bf31
commit 24c60b7e8a

View File

@ -344,8 +344,9 @@ function initDocRootObserver() {
return;
}
const list = [];
for (const el of styleElements.values()) {
if (el.previousElementSibling !== expectedPrevSibling) {
for (const [id, el] of styleElements.entries()) {
if (!disabledElements.has(parseInt(id.substr(ID_PREFIX.length))) &&
el.previousElementSibling !== expectedPrevSibling) {
list.push({el, before: expectedPrevSibling.nextSibling});
}
expectedPrevSibling = el;