single-file-core 1.0.18 → 1.0.19

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.18",
3
+ "version": "1.0.19",
4
4
  "description": "SingleFile Core",
5
5
  "author": "Gildas Lormeau",
6
6
  "license": "AGPL-3.0-or-later",
@@ -48,7 +48,7 @@ const SELECTED_CONTENT_ATTRIBUTE_NAME = "data-single-file-selected-content";
48
48
  const INVALID_ELEMENT_ATTRIBUTE_NAME = "data-single-file-invalid-element";
49
49
  const ASYNC_SCRIPT_ATTRIBUTE_NAME = "data-single-file-async-script";
50
50
  const FLOW_ELEMENTS_SELECTOR = "*:not(base):not(link):not(meta):not(noscript):not(script):not(style):not(template):not(title)";
51
- const KEPT_TAG_NAMES = ["NOSCRIPT", "DISABLED-NOSCRIPT", "META", "LINK", "STYLE", "TITLE", "TEMPLATE", "SOURCE", "OBJECT", "SCRIPT", "HEAD"];
51
+ const KEPT_TAG_NAMES = ["NOSCRIPT", "DISABLED-NOSCRIPT", "META", "LINK", "STYLE", "TITLE", "TEMPLATE", "SOURCE", "OBJECT", "SCRIPT", "HEAD", "BODY"];
52
52
  const REGEXP_SIMPLE_QUOTES_STRING = /^'(.*?)'$/;
53
53
  const REGEXP_DOUBLE_QUOTES_STRING = /^"(.*?)"$/;
54
54
  const FONT_WEIGHTS = {