mnfst-render 0.1.2 → 0.1.3
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/manifest.render.mjs +3 -1
- package/package.json +1 -1
package/manifest.render.mjs
CHANGED
|
@@ -384,8 +384,10 @@ function stripPrerenderDynamicBindings(html) {
|
|
|
384
384
|
const bindingRegex = /(?:^|\s)(?::|x-bind:)(\w+)=(?:"([^"]*)"|'([^']*)')/g;
|
|
385
385
|
let m;
|
|
386
386
|
while ((m = bindingRegex.exec(attrsStr)) !== null) {
|
|
387
|
+
const attrName = (m[1] || '').toLowerCase();
|
|
388
|
+
if (attrName === 'class' || attrName === 'style') continue;
|
|
387
389
|
const val = (m[2] !== undefined ? m[2] : m[3]) || '';
|
|
388
|
-
if (val.indexOf('$x') === -1) toStrip.add(
|
|
390
|
+
if (val.indexOf('$x') === -1) toStrip.add(attrName);
|
|
389
391
|
}
|
|
390
392
|
if (toStrip.size === 0) return match;
|
|
391
393
|
let newAttrs = attrsStr;
|