PluginProbe
Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization / 4.2.15
Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization v4.2.15
4.2.15 4.2.14 4.2.13 4.2.12 4.2.11 4.2.10 4.2.9 4.2.8 4.2.7 4.2.6 4.2.5 2.5.5 2.5.6 2.5.7 3.0.0 3.0.1 3.1.0 3.1.1 3.1.2 3.1.3 3.10.0 3.11.0 3.11.1 3.11.2 3.11.3 All 136 releases
optimole-wp / vendor / enshrined / svg-sanitize / src / data / AllowedAttributes.php

AllowedAttributes.php in Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization 4.2.15, at vendor/enshrined/svg-sanitize/src/data/AllowedAttributes.php

358 lines 8.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace enshrined\svgSanitize\data;
3
4 /**
5 * Class AllowedAttributes
6 *
7 * @package enshrined\svgSanitize\data
8 */
9 class AllowedAttributes implements AttributeInterface
10 {
11
12 /**
13 * Returns an array of attributes
14 *
15 * @return array
16 */
17 public static function getAttributes()
18 {
19 return array(
20 // HTML
21 'about',
22 'accept',
23 'action',
24 'align',
25 'alt',
26 'autocomplete',
27 'background',
28 'bgcolor',
29 'border',
30 'cellpadding',
31 'cellspacing',
32 'checked',
33 'cite',
34 'class',
35 'clear',
36 'color',
37 'cols',
38 'colspan',
39 'coords',
40 'crossorigin',
41 'datetime',
42 'default',
43 'dir',
44 'disabled',
45 'download',
46 'enctype',
47 'encoding',
48 'face',
49 'for',
50 'headers',
51 'height',
52 'hidden',
53 'high',
54 'href',
55 'hreflang',
56 'id',
57 'integrity',
58 'ismap',
59 'label',
60 'lang',
61 'list',
62 'loop',
63 'low',
64 'max',
65 'maxlength',
66 'media',
67 'method',
68 'min',
69 'multiple',
70 'name',
71 'noshade',
72 'novalidate',
73 'nowrap',
74 'open',
75 'optimum',
76 'pattern',
77 'placeholder',
78 'poster',
79 'preload',
80 'pubdate',
81 'radiogroup',
82 'readonly',
83 'rel',
84 'required',
85 'rev',
86 'reversed',
87 'role',
88 'rows',
89 'rowspan',
90 'spellcheck',
91 'scope',
92 'selected',
93 'shape',
94 'size',
95 'sizes',
96 'span',
97 'srclang',
98 'start',
99 'src',
100 'srcset',
101 'step',
102 'style',
103 'summary',
104 'tabindex',
105 'title',
106 'type',
107 'usemap',
108 'valign',
109 'value',
110 'version',
111 'width',
112 'xmlns',
113
114 // SVG
115 'accent-height',
116 'accumulate',
117 'additivive',
118 'alignment-baseline',
119 'ascent',
120 'attributename',
121 'attributetype',
122 'azimuth',
123 'basefrequency',
124 'baseline-shift',
125 'begin',
126 'bias',
127 'by',
128 'class',
129 'clip',
130 'clip-path',
131 'clip-rule',
132 'color',
133 'color-interpolation',
134 'color-interpolation-filters',
135 'color-profile',
136 'color-rendering',
137 'cx',
138 'cy',
139 'd',
140 'dx',
141 'dy',
142 'diffuseconstant',
143 'direction',
144 'display',
145 'divisor',
146 'dominant-baseline',
147 'dur',
148 'edgemode',
149 'elevation',
150 'end',
151 'fill',
152 'fill-opacity',
153 'fill-rule',
154 'filter',
155 'filterUnits',
156 'flood-color',
157 'flood-opacity',
158 'font-family',
159 'font-size',
160 'font-size-adjust',
161 'font-stretch',
162 'font-style',
163 'font-variant',
164 'font-weight',
165 'fx',
166 'fy',
167 'g1',
168 'g2',
169 'glyph-name',
170 'glyphref',
171 'gradientunits',
172 'gradienttransform',
173 'height',
174 'href',
175 'id',
176 'image-rendering',
177 'in',
178 'in2',
179 'k',
180 'k1',
181 'k2',
182 'k3',
183 'k4',
184 'kerning',
185 'keypoints',
186 'keysplines',
187 'keytimes',
188 'lang',
189 'lengthadjust',
190 'letter-spacing',
191 'kernelmatrix',
192 'kernelunitlength',
193 'lighting-color',
194 'local',
195 'marker-end',
196 'marker-mid',
197 'marker-start',
198 'markerheight',
199 'markerunits',
200 'markerwidth',
201 'maskcontentunits',
202 'maskunits',
203 'max',
204 'mask',
205 'media',
206 'method',
207 'mode',
208 'min',
209 'name',
210 'numoctaves',
211 'offset',
212 'operator',
213 'opacity',
214 'order',
215 'orient',
216 'orientation',
217 'origin',
218 'overflow',
219 'paint-order',
220 'path',
221 'pathlength',
222 'patterncontentunits',
223 'patterntransform',
224 'patternunits',
225 'points',
226 'preservealpha',
227 'preserveaspectratio',
228 'r',
229 'rx',
230 'ry',
231 'radius',
232 'refx',
233 'refy',
234 'repeatcount',
235 'repeatdur',
236 'restart',
237 'result',
238 'rotate',
239 'scale',
240 'seed',
241 'shape-rendering',
242 'specularconstant',
243 'specularexponent',
244 'spreadmethod',
245 'stddeviation',
246 'stitchtiles',
247 'stop-color',
248 'stop-opacity',
249 'stroke-dasharray',
250 'stroke-dashoffset',
251 'stroke-linecap',
252 'stroke-linejoin',
253 'stroke-miterlimit',
254 'stroke-opacity',
255 'stroke',
256 'stroke-width',
257 'style',
258 'surfacescale',
259 'tabindex',
260 'targetx',
261 'targety',
262 'transform',
263 'text-anchor',
264 'text-decoration',
265 'text-rendering',
266 'textlength',
267 'type',
268 'u1',
269 'u2',
270 'unicode',
271 'values',
272 'viewbox',
273 'visibility',
274 'vector-effect',
275 'vert-adv-y',
276 'vert-origin-x',
277 'vert-origin-y',
278 'width',
279 'word-spacing',
280 'wrap',
281 'writing-mode',
282 'xchannelselector',
283 'ychannelselector',
284 'x',
285 'x1',
286 'x2',
287 'xmlns',
288 'y',
289 'y1',
290 'y2',
291 'z',
292 'zoomandpan',
293
294 // MathML
295 'accent',
296 'accentunder',
297 'align',
298 'bevelled',
299 'close',
300 'columnsalign',
301 'columnlines',
302 'columnspan',
303 'denomalign',
304 'depth',
305 'dir',
306 'display',
307 'displaystyle',
308 'fence',
309 'frame',
310 'height',
311 'href',
312 'id',
313 'largeop',
314 'length',
315 'linethickness',
316 'lspace',
317 'lquote',
318 'mathbackground',
319 'mathcolor',
320 'mathsize',
321 'mathvariant',
322 'maxsize',
323 'minsize',
324 'movablelimits',
325 'notation',
326 'numalign',
327 'open',
328 'rowalign',
329 'rowlines',
330 'rowspacing',
331 'rowspan',
332 'rspace',
333 'rquote',
334 'scriptlevel',
335 'scriptminsize',
336 'scriptsizemultiplier',
337 'selection',
338 'separator',
339 'separators',
340 'slope',
341 'stretchy',
342 'subscriptshift',
343 'supscriptshift',
344 'symmetric',
345 'voffset',
346 'width',
347 'xmlns',
348
349 // XML
350 'xlink:href',
351 'xml:id',
352 'xlink:title',
353 'xml:space',
354 'xmlns:xlink',
355 );
356 }
357 }
358