@letsrunit/playwright 0.18.0 → 0.18.2
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/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/scrub-html.ts +3 -3
package/dist/index.js
CHANGED
|
@@ -68997,9 +68997,9 @@ function isUtilityClass(token) {
|
|
|
68997
68997
|
}
|
|
68998
68998
|
function stripUtilityClasses(doc) {
|
|
68999
68999
|
for (const el of doc.body.querySelectorAll("[class]")) {
|
|
69000
|
-
const kept = el.
|
|
69000
|
+
const kept = [...el.classList].filter((t) => t && !isUtilityClass(t));
|
|
69001
69001
|
if (kept.length === 0) el.removeAttribute("class");
|
|
69002
|
-
else el.
|
|
69002
|
+
else el.setAttribute("class", kept.join(" "));
|
|
69003
69003
|
}
|
|
69004
69004
|
}
|
|
69005
69005
|
function limitListsAndRows(doc, limit) {
|