@stencil/mock-doc 5.0.0-rc.3 → 5.0.0-rc.5

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.
Files changed (2) hide show
  1. package/dist/index.mjs +2 -2
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -1009,10 +1009,10 @@ function* streamToHtml(node, opts, output) {
1009
1009
  if (node.hasAttribute("style")) {
1010
1010
  const cssText = node.style.cssText;
1011
1011
  if (opts.approximateLineWidth && opts.approximateLineWidth > 0 && output.currentLineWidth + cssText.length + 10 > opts.approximateLineWidth) {
1012
- yield `\nstyle="${cssText}">`;
1012
+ yield `\nstyle="${escapeString(cssText, true)}">`;
1013
1013
  output.currentLineWidth = 0;
1014
1014
  } else {
1015
- yield ` style="${cssText}">`;
1015
+ yield ` style="${escapeString(cssText, true)}">`;
1016
1016
  output.currentLineWidth += cssText.length + 10;
1017
1017
  }
1018
1018
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/mock-doc",
3
- "version": "5.0.0-rc.3",
3
+ "version": "5.0.0-rc.5",
4
4
  "description": "A minimal mock DOM implementation for SSR and testing",
5
5
  "keywords": [
6
6
  "dom",