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; return;
} }
const list = []; const list = [];
for (const el of styleElements.values()) { for (const [id, el] of styleElements.entries()) {
if (el.previousElementSibling !== expectedPrevSibling) { if (!disabledElements.has(parseInt(id.substr(ID_PREFIX.length))) &&
el.previousElementSibling !== expectedPrevSibling) {
list.push({el, before: expectedPrevSibling.nextSibling}); list.push({el, before: expectedPrevSibling.nextSibling});
} }
expectedPrevSibling = el; expectedPrevSibling = el;