Initial commit

This commit is contained in:
Alejandro Martinez
2026-02-12 02:04:10 +01:00
commit f09af719cf
13433 changed files with 2193445 additions and 0 deletions

29
node_modules/svgo/plugins/removeEmptyAttrs.js generated vendored Normal file
View File

@@ -0,0 +1,29 @@
import { attrsGroups } from './_collections.js';
export const name = 'removeEmptyAttrs';
export const description = 'removes empty attributes';
/**
* Remove attributes with empty values.
*
* @author Kir Belevich
*
* @type {import('../lib/types.js').Plugin}
*/
export const fn = () => {
return {
element: {
enter: (node) => {
for (const [name, value] of Object.entries(node.attributes)) {
if (
value === '' &&
// empty conditional processing attributes prevents elements from rendering
!attrsGroups.conditionalProcessing.has(name)
) {
delete node.attributes[name];
}
}
},
},
};
};