Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5,176 changes: 1,905 additions & 3,271 deletions package-lock.json

Large diffs are not rendered by default.

7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,20 @@
"plugins-stylelint/*"
],
"devDependencies": {
"@babel/core": "^7.29.7",
"@babel/preset-env": "^7.29.7",
"@eslint/js": "^10.0.1",
"@microsoft/api-documenter": "^7.30.3",
"@microsoft/api-extractor": "^7.58.5",
"@rollup/plugin-babel": "^7.1.0",
"@rollup/plugin-commonjs": "^29.0.3",
"@rollup/plugin-node-resolve": "^16.0.3",
"@rollup/plugin-terser": "^1.0.0",
"@rollup/plugin-typescript": "^12.3.0",
"@stryker-mutator/core": "^9.6.1",
"@stylistic/eslint-plugin": "^5.8.0",
"@types/node": "^25.9.2",
"@types/node": "^26.0.0",
"eslint": "^10.4.1",
"globals": "^17.6.0",
"knip": "^6.16.1",
"rollup": "^4.61.1",
"rollup": "^4.62.2",
"tslib": "^2.8.0",
"typescript": "^6.0.3",
"typescript-eslint": "^8.60.1"
Expand Down
4 changes: 4 additions & 0 deletions plugins/css-blank-pseudo/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changes to CSS Blank Pseudo

### Unreleased (patch)

- Rewritten browser polyfill as ES3

### 8.0.1

_January 14, 2026_
Expand Down
2 changes: 1 addition & 1 deletion plugins/css-blank-pseudo/dist/browser-global.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugins/css-blank-pseudo/dist/browser-global.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion plugins/css-blank-pseudo/dist/browser.cjs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
var e=[" ",">","~",":","+","@","#","(",")"];function isValidReplacement(t){for(var n=!0,r=0,o=e.length;r<o&&n;r++)t.indexOf(e[r])>-1&&(n=!1);return n}var t="js-blank-pseudo";function isFormControlElement(e){return"INPUT"===e.nodeName||"SELECT"===e.nodeName||"TEXTAREA"===e.nodeName}function createNewEvent(e){var t;return"function"==typeof Event?t=new Event(e,{bubbles:!0}):(t=document.createEvent("Event")).initEvent(e,!0,!1),t}function observeValueOfHTMLElement(e,t){var n=Object.getOwnPropertyDescriptor(e.prototype,"value"),r=n.set;n.set=function set(){r.apply(this,arguments),t({target:this})},Object.defineProperty(e.prototype,"value",n)}module.exports=function cssBlankPseudoInit(e){var n={force:!1,replaceWith:"[blank]"};if(void 0!==e&&"force"in e&&(n.force=e.force),void 0!==e&&"replaceWith"in e&&(n.replaceWith=e.replaceWith),!isValidReplacement(n.replaceWith))throw new Error(n.replaceWith+" is not a valid replacement since it can't be applied to single elements.");try{if(document.querySelector(":blank"),!n.force)return}catch(m){}var r,o,a,i,l,c,d,s=("."===(r=n.replaceWith)[0]?(o=r.slice(1),a=function remove(e){return e.classList.remove(o)},i=function add(e){return e.classList.add(o)}):(o=r.slice(1,-1),a=function remove(e){return e.removeAttribute(o,"")},i=function add(e){return e.setAttribute(o,"")}),function handleInputOrChangeEvent(e){var t,n=e.target;isFormControlElement(n)&&(("SELECT"===n.nodeName?null!=(t=n.options[n.selectedIndex])&&t.value:n.value)?a(n):i(n))}),u=function bindEvents(){document.body&&(document.body.addEventListener("change",s),document.body.addEventListener("input",s))},f=function updateAllCandidates(){Array.prototype.forEach.call(document.querySelectorAll("input, select, textarea"),function(e){s({target:e})})};if(document.body?u():window.addEventListener("load",u),-1===document.documentElement.className.indexOf(t)&&(document.documentElement.className+=" "+t),observeValueOfHTMLElement(self.HTMLInputElement,s),observeValueOfHTMLElement(self.HTMLSelectElement,s),observeValueOfHTMLElement(self.HTMLTextAreaElement,s),l=self.HTMLOptionElement,c=Object.getOwnPropertyDescriptor(l.prototype,"selected"),d=c.set,c.set=function set(e){d.apply(this,arguments);var t=createNewEvent("change");this.parentElement.dispatchEvent(t)},Object.defineProperty(l.prototype,"selected",c),f(),"undefined"!=typeof self.MutationObserver)new MutationObserver(function(e){e.forEach(function(e){Array.prototype.forEach.call(e.addedNodes||[],function(e){1===e.nodeType&&isFormControlElement(e)&&s({target:e})})})}).observe(document,{childList:!0,subtree:!0});else{var p=function handleOnLoad(){return f()};window.addEventListener("load",p),window.addEventListener("DOMContentLoaded",p)}};
function isFormControlElement(e){return"INPUT"===e.nodeName||"SELECT"===e.nodeName||"TEXTAREA"===e.nodeName}function createNewEvent(e){var t;return"function"==typeof Event?t=new Event(e,{bubbles:!0}):(t=document.createEvent("Event")).initEvent(e,!0,!1),t}function observeValueOfHTMLElement(e,t){var n=Object.getOwnPropertyDescriptor(e.prototype,"value"),o=n.set;n.set=function set(){o.apply(this,arguments),t({target:this})},Object.defineProperty(e.prototype,"value",n)}module.exports=function cssBlankPseudoInit(e){var t={force:!1,replaceWith:"[blank]"};void 0!==e&&"force"in e&&(t.force=e.force),void 0!==e&&"replaceWith"in e&&(t.replaceWith=e.replaceWith);try{if(document.querySelector(":blank"),!t.force)return}catch(v){}var n,o,r,d,a,l,s,c=("."===(n=t.replaceWith)[0]?(o=n.slice(1),r=function remove(e){e.classList.remove(o)},d=function add(e){e.classList.add(o)}):(o=n.slice(1,-1),r=function remove(e){e.removeAttribute(o,"")},d=function add(e){e.setAttribute(o,"")}),function handleInputOrChangeEvent(e){var t=e.target;isFormControlElement(t)&&(("SELECT"===t.nodeName?t.options[t.selectedIndex]&&t.options[t.selectedIndex].value:t.value)?r(t):d(t))}),i=function bindEvents(){document.body&&(document.body.addEventListener("change",c),document.body.addEventListener("input",c))},u=function updateAllCandidates(){for(var e=document.querySelectorAll("input, select, textarea"),t=0;t<e.length;t++)c({target:e[t]})};document.body?i():window.addEventListener("load",i),-1===document.documentElement.className.indexOf("js-blank-pseudo")&&(document.documentElement.className+=" js-blank-pseudo"),observeValueOfHTMLElement(self.HTMLInputElement,c),observeValueOfHTMLElement(self.HTMLSelectElement,c),observeValueOfHTMLElement(self.HTMLTextAreaElement,c),a=self.HTMLOptionElement,l=Object.getOwnPropertyDescriptor(a.prototype,"selected"),s=l.set,l.set=function set(e){s.apply(this,arguments);var t=createNewEvent("change");this.parentElement.dispatchEvent(t)},Object.defineProperty(a.prototype,"selected",l),u(),"undefined"!=typeof self.MutationObserver?new MutationObserver(function(e){for(var t=0;t<e.length;t++)for(var n=e[t],o=0;o<n.addedNodes.length;o++){var r=n.addedNodes[o];1===r.nodeType&&isFormControlElement(r)&&c({target:r})}}).observe(document,{childList:!0,subtree:!0}):(window.addEventListener("load",u),window.addEventListener("DOMContentLoaded",u))};
//# sourceMappingURL=browser.cjs.map
Loading
Loading