Skip to content

Commit

Permalink
Add note about validator.nu not supporting global inputmode
Browse files Browse the repository at this point in the history
  • Loading branch information
xemlock committed Aug 19, 2020
1 parent 8c7b0d9 commit 747f6db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions library/HTMLPurifier/HTMLModule/HTML5/CommonAttributes.php
Expand Up @@ -23,6 +23,9 @@ class HTMLPurifier_HTMLModule_HTML5_CommonAttributes extends HTMLPurifier_HTMLMo
// The 'none' value has been intentionally omitted from the list of
// allowed values, as it effectively makes the element non-editable,
// unless there is a script implementing a custom virtual keyboard.
// It is worth noting that https://validator.nu/ is no longer up to
// date with the WHATWG HTML5 spec (as of Aug 2020), and doesn't
// recognize inputmode as a global attribute.
'inputmode' => 'Enum#text,decimal,numeric,tel,search,email,url',
),
'Lang' => array(
Expand Down

0 comments on commit 747f6db

Please sign in to comment.