Permalink
Browse files

Tags: Add html5 form tags to simpletest tag.php, e.g. email counts a…

…s a text form input.
  • Loading branch information...
1 parent 73c5626 commit 67635c3a37be671714bdaf1ed03258c7e067ce3d @tchalvak tchalvak committed Jun 13, 2012
Showing with 13 additions and 1 deletion.
  1. +13 −1 tag.php
View
14 tag.php
@@ -83,6 +83,18 @@ protected function createInputTag($attributes) {
'checkbox' => 'SimpleCheckboxTag',
'radio' => 'SimpleRadioButtonTag',
'text' => 'SimpleTextTag',
+ 'email' => 'SimpleTextTag',
+ 'tel' => 'SimpleTextTag',
+ 'url' => 'SimpleTextTag',
+ 'search' => 'SimpleTextTag',
+ 'number' => 'SimpleTextTag',
+ 'color' => 'SimpleTextTag',
+ 'datetime' => 'SimpleTextTag',
+ 'datetime-local' => 'SimpleTextTag',
+ 'date' => 'SimpleTextTag',
+ 'month' => 'SimpleTextTag',
+ 'week' => 'SimpleTextTag',
+ 'time' => 'SimpleTextTag',
'hidden' => 'SimpleTextTag',
'password' => 'SimpleTextTag',
'file' => 'SimpleUploadTag');
@@ -1524,4 +1536,4 @@ function expectEndTag() {
return false;
}
}
-?>
+?>

0 comments on commit 67635c3

Please sign in to comment.