From e36b070ebe68235d489a2b91d1299c8df6be7386 Mon Sep 17 00:00:00 2001 From: Asmir Mustafic Date: Sat, 9 May 2015 10:30:56 +0200 Subject: Addex exhaustive list of non boolean html attributes --- src/HTML5/Serializer/OutputRules.php | 72 +++++++++++++++++++++++++++++++++++- 1 file changed, 71 insertions(+), 1 deletion(-) diff --git a/src/HTML5/Serializer/OutputRules.php b/src/HTML5/Serializer/OutputRules.php index 7a51016..4ad74f6 100644 --- a/src/HTML5/Serializer/OutputRules.php +++ b/src/HTML5/Serializer/OutputRules.php @@ -77,7 +77,77 @@ class OutputRules implements \Masterminds\HTML5\Serializer\RulesInterface */ array( 'nodeNamespace' => 'http://www.w3.org/1999/xhtml', - 'attrName' => array('alt', 'title', 'value', 'type', 'href', 'id', 'style'), + 'attrName' => array('href', + 'hreflang', + 'http-equiv', + 'icon', + 'id', + 'keytype', + 'kind', + 'label', + 'lang', + 'language', + 'list', + 'maxlength', + 'media', + 'method', + 'name', + 'placeholder', + 'rel', + 'rows', + 'rowspan', + 'sandbox', + 'spellcheck', + 'scope', + 'seamless', + 'shape', + 'size', + 'sizes', + 'span', + 'src', + 'srcdoc', + 'srclang', + 'srcset', + 'start', + 'step', + 'style', + 'summary', + 'tabindex', + 'target', + 'title', + 'type', + 'value', + 'width', + 'border', + 'charset', + 'cite', + 'class', + 'code', + 'codebase', + 'color', + 'cols', + 'colspan', + 'content', + 'coords', + 'data', + 'datetime', + 'default', + 'dir', + 'dirname', + 'enctype', + 'for', + 'form', + 'formaction', + 'headers', + 'height', + 'accept', + 'accept-charset', + 'accesskey', + 'action', + 'align', + 'alt', + 'bgcolor', + ), ), array( 'nodeNamespace' => 'http://www.w3.org/1999/xhtml', -- cgit v1.2.3