ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
AllowedAttributes.php
Go to the documentation of this file.
1<?php
2
3
5
6
13{
14
20 public static function getAttributes()
21 {
22 return array(
23 // HTML
24 'about',
25 'accept',
26 'action',
27 'align',
28 'alt',
29 'autocomplete',
30 'background',
31 'bgcolor',
32 'border',
33 'cellpadding',
34 'cellspacing',
35 'checked',
36 'cite',
37 'class',
38 'clear',
39 'color',
40 'cols',
41 'colspan',
42 'coords',
43 'crossorigin',
44 'datetime',
45 'default',
46 'dir',
47 'disabled',
48 'download',
49 'enctype',
50 'encoding',
51 'face',
52 'for',
53 'headers',
54 'height',
55 'hidden',
56 'high',
57 'href',
58 'hreflang',
59 'id',
60 'integrity',
61 'ismap',
62 'label',
63 'lang',
64 'list',
65 'loop',
66 'low',
67 'max',
68 'maxlength',
69 'media',
70 'method',
71 'min',
72 'multiple',
73 'name',
74 'noshade',
75 'novalidate',
76 'nowrap',
77 'open',
78 'optimum',
79 'pattern',
80 'placeholder',
81 'poster',
82 'preload',
83 'pubdate',
84 'radiogroup',
85 'readonly',
86 'rel',
87 'required',
88 'rev',
89 'reversed',
90 'role',
91 'rows',
92 'rowspan',
93 'spellcheck',
94 'scope',
95 'selected',
96 'shape',
97 'size',
98 'sizes',
99 'span',
100 'srclang',
101 'start',
102 'src',
103 'srcset',
104 'step',
105 'style',
106 'summary',
107 'tabindex',
108 'title',
109 'type',
110 'usemap',
111 'valign',
112 'value',
113 'version',
114 'width',
115 'xmlns',
116
117 // SVG
118 'accent-height',
119 'accumulate',
120 'additivive',
121 'alignment-baseline',
122 'ascent',
123 'attributename',
124 'attributetype',
125 'azimuth',
126 'basefrequency',
127 'baseline-shift',
128 'begin',
129 'bias',
130 'by',
131 'class',
132 'clip',
133 'clip-path',
134 'clip-rule',
135 'color',
136 'color-interpolation',
137 'color-interpolation-filters',
138 'color-profile',
139 'color-rendering',
140 'cx',
141 'cy',
142 'd',
143 'dx',
144 'dy',
145 'diffuseconstant',
146 'direction',
147 'display',
148 'divisor',
149 'dur',
150 'edgemode',
151 'elevation',
152 'end',
153 'fill',
154 'fill-opacity',
155 'fill-rule',
156 'filter',
157 'flood-color',
158 'flood-opacity',
159 'font-family',
160 'font-size',
161 'font-size-adjust',
162 'font-stretch',
163 'font-style',
164 'font-variant',
165 'font-weight',
166 'fx',
167 'fy',
168 'g1',
169 'g2',
170 'glyph-name',
171 'glyphref',
172 'gradientunits',
173 'gradienttransform',
174 'height',
175 'href',
176 'id',
177 'image-rendering',
178 'in',
179 'in2',
180 'k',
181 'k1',
182 'k2',
183 'k3',
184 'k4',
185 'kerning',
186 'keypoints',
187 'keysplines',
188 'keytimes',
189 'lang',
190 'lengthadjust',
191 'letter-spacing',
192 'kernelmatrix',
193 'kernelunitlength',
194 'lighting-color',
195 'local',
196 'marker-end',
197 'marker-mid',
198 'marker-start',
199 'markerheight',
200 'markerunits',
201 'markerwidth',
202 'maskcontentunits',
203 'maskunits',
204 'max',
205 'mask',
206 'media',
207 'method',
208 'mode',
209 'min',
210 'name',
211 'numoctaves',
212 'offset',
213 'operator',
214 'opacity',
215 'order',
216 'orient',
217 'orientation',
218 'origin',
219 'overflow',
220 'paint-order',
221 'path',
222 'pathlength',
223 'patterncontentunits',
224 'patterntransform',
225 'patternunits',
226 'points',
227 'preservealpha',
228 'preserveaspectratio',
229 'r',
230 'rx',
231 'ry',
232 'radius',
233 'refx',
234 'refy',
235 'repeatcount',
236 'repeatdur',
237 'restart',
238 'result',
239 'rotate',
240 'scale',
241 'seed',
242 'shape-rendering',
243 'specularconstant',
244 'specularexponent',
245 'spreadmethod',
246 'stddeviation',
247 'stitchtiles',
248 'stop-color',
249 'stop-opacity',
250 'stroke-dasharray',
251 'stroke-dashoffset',
252 'stroke-linecap',
253 'stroke-linejoin',
254 'stroke-miterlimit',
255 'stroke-opacity',
256 'stroke',
257 'stroke-width',
258 'style',
259 'surfacescale',
260 'tabindex',
261 'targetx',
262 'targety',
263 'transform',
264 'text-anchor',
265 'text-decoration',
266 'text-rendering',
267 'textlength',
268 'type',
269 'u1',
270 'u2',
271 'unicode',
272 'values',
273 'viewbox',
274 'visibility',
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}
An exception for terminatinating execution or to throw for unit testing.
static getAttributes()
Returns an array of attributes.