PageSourceSearch

https://svgo.dev/assets/js/554df264.bd7f20de.js

js svgo.dev collected 2026-10-02 17:26:20 UTC 2,840 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunksvgo_dev=globalThis.webpackChunksvgo_dev||[]).push([[9211],{506:(e,t,o)=>{o.d(t,{R:()=>n,x:()=>c});var r=o(2888);const s={},i=r.createContext(s);function n(e){const t=r.useContext(i);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function c(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:n(e.components),r.createElement(i.Provider,{value:t},e.children)}},3182:(e,t,o)=>{o.r(t),o.d(t,{assets:()=>a,contentTitle:()=>c,default:()=>d,frontMatter:()=>n,metadata:()=>r,toc:()=>l});const r=JSON.parse('{"id":"plugins/removeAttributesBySelector","title":"removeAttributesBySelector","description":"Removes specific attributes from elements that match a CSS selector.","source":"@site/svgo/docs/04-plugins/removeAttributesBySelector.mdx","sourceDirName":"04-plugins","slug":"/plugins/removeAttributesBySelector","permalink":"/docs/plugins/removeAttributesBySelector","draft":false,"unlisted":false,"editUrl":"https://github.com/svg/svgo/tree/main/docs/04-plugins/removeAttributesBySelector.mdx","tags":[],"version":"current","frontMatter":{"title":"removeAttributesBySelector","svgo":{"pluginId":"removeAttributesBySelector","parameters":{"selector":{"description":"<p>A CSS selector that matches the elements to be modified.</p>","default":"[fill=\'#00ff00\']"},"attributes":{"description":"<p>An attribute, or array of attributes, to remove from the matched elements.</p>","default":"fill"},"selectors":{"description":"<p>An array of objects, each containing <code>selector</code> and <code>attributes</code> as described above. To match on more than one selector, use this parameter instead of the two above.</p>","default":null}}}},"sidebar":"docsSidebar","previous":{"title":"prefixIds","permalink":"/docs/plugins/prefixIds"},"next":{"title":"removeAttrs","permalink":"/docs/plugins/removeAttrs"}}');var s=o(1684),i=o(506);const n={title:"removeAttributesBySelector",svgo:{pluginId:"removeAttributesBySelector",parameters:{selector:{description:"<p>A CSS selector that matches the elements to be modified.</p>",default:"[fill='#00ff00']"},attributes:{description:"<p>An attribute, or array of attributes, to remove from the matched elements.</p>",default:"fill"},selectors:{description:"<p>An array of objects, each containing <code>selector</code> and <code>attributes</code> as described above. To match on more than one selector, use this parameter instead of the two above.</p>",default:null}}}},c=void 0,a={},l=[];function u(e){const t={p:"p",...(0,i.R)(),...e.components};return(0,s.jsx)(t.p,{children:"Removes specific attributes from elements that match a CSS selector."})}function d(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(u,{...e})}):u(e)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.