single-file-core 1.0.25 → 1.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "single-file-core",
3
- "version": "1.0.25",
3
+ "version": "1.0.26",
4
4
  "description": "SingleFile Core",
5
5
  "author": "Gildas Lormeau",
6
6
  "license": "AGPL-3.0-or-later",
@@ -138,7 +138,7 @@ function preProcessDoc(doc, win, options) {
138
138
  const invalidElements = new Map();
139
139
  let elementsInfo;
140
140
  if (win && doc.documentElement) {
141
- doc.querySelectorAll("button button, a a, p div").forEach(element => {
141
+ doc.querySelectorAll("button button, a a").forEach(element => {
142
142
  const placeHolderElement = doc.createElement("template");
143
143
  placeHolderElement.setAttribute(INVALID_ELEMENT_ATTRIBUTE_NAME, "");
144
144
  placeHolderElement.content.appendChild(element.cloneNode(true));