Skip to content

Commit e36b070

Browse files
committed
Addex exhaustive list of non boolean html attributes
1 parent 93df365 commit e36b070

File tree

1 file changed

+71
-1
lines changed

1 file changed

+71
-1
lines changed

src/HTML5/Serializer/OutputRules.php

Lines changed: 71 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,77 @@ class OutputRules implements \Masterminds\HTML5\Serializer\RulesInterface
7777
*/
7878
array(
7979
'nodeNamespace' => 'http://www.w3.org/1999/xhtml',
80-
'attrName' => array('alt', 'title', 'value', 'type', 'href', 'id', 'style'),
80+
'attrName' => array('href',
81+
'hreflang',
82+
'http-equiv',
83+
'icon',
84+
'id',
85+
'keytype',
86+
'kind',
87+
'label',
88+
'lang',
89+
'language',
90+
'list',
91+
'maxlength',
92+
'media',
93+
'method',
94+
'name',
95+
'placeholder',
96+
'rel',
97+
'rows',
98+
'rowspan',
99+
'sandbox',
100+
'spellcheck',
101+
'scope',
102+
'seamless',
103+
'shape',
104+
'size',
105+
'sizes',
106+
'span',
107+
'src',
108+
'srcdoc',
109+
'srclang',
110+
'srcset',
111+
'start',
112+
'step',
113+
'style',
114+
'summary',
115+
'tabindex',
116+
'target',
117+
'title',
118+
'type',
119+
'value',
120+
'width',
121+
'border',
122+
'charset',
123+
'cite',
124+
'class',
125+
'code',
126+
'codebase',
127+
'color',
128+
'cols',
129+
'colspan',
130+
'content',
131+
'coords',
132+
'data',
133+
'datetime',
134+
'default',
135+
'dir',
136+
'dirname',
137+
'enctype',
138+
'for',
139+
'form',
140+
'formaction',
141+
'headers',
142+
'height',
143+
'accept',
144+
'accept-charset',
145+
'accesskey',
146+
'action',
147+
'align',
148+
'alt',
149+
'bgcolor',
150+
),
81151
),
82152
array(
83153
'nodeNamespace' => 'http://www.w3.org/1999/xhtml',

0 commit comments

Comments
 (0)