|
@@ -282,7 +282,7 @@ this.singlefile.lib.helper = this.singlefile.lib.helper || (() => {
|
|
|
const visibility = computedStyle.getPropertyValue("visibility");
|
|
const visibility = computedStyle.getPropertyValue("visibility");
|
|
|
hidden = display == "none";
|
|
hidden = display == "none";
|
|
|
if (hidden) {
|
|
if (hidden) {
|
|
|
- if (!IGNORED_REMOVED_TAG_NAMES.includes(element.tagName)) {
|
|
|
|
|
|
|
+ if (element.style.getPropertyValue("display") != "none" && !IGNORED_REMOVED_TAG_NAMES.includes(element.tagName)) {
|
|
|
element.setAttribute(HIDDEN_CONTENT_ATTRIBUTE_NAME, "");
|
|
element.setAttribute(HIDDEN_CONTENT_ATTRIBUTE_NAME, "");
|
|
|
markedElements.push(element);
|
|
markedElements.push(element);
|
|
|
}
|
|
}
|