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.
@@ -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(m[1].toLowerCase());
390
+ if (val.indexOf('$x') === -1) toStrip.add(attrName);
389
391
  }
390
392
  if (toStrip.size === 0) return match;
391
393
  let newAttrs = attrsStr;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mnfst-render",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Render Manifest sites to static HTML for SEO",
5
5
  "type": "module",
6
6
  "bin": {