Permalink
Browse files

Merge branch 'html5-special-attributes' of git://github.com/creocoder…

…/yii into creocoder-html5-special-attributes

Conflicts:
	CHANGELOG
  • Loading branch information...
2 parents afe2ba2 + 3c3d0d4 commit ea706bd0ffebecc99e55ce1b89f80ff358886d66 @samdark samdark committed Oct 10, 2012
Showing with 17 additions and 0 deletions.
  1. +1 −0 CHANGELOG
  2. +16 −0 framework/web/helpers/CHtml.php
View
@@ -51,6 +51,7 @@ Version 1.1.13 work in progress
- Enh #1500: CSqlDataProvider now supports CDbCommand in constructor (slavcodev)
- Enh #1518: Allow to configure CHtml::$closeSingleTags and CHtml::$renderSpecialAttributesValue. Useful for HTML5 code (creocoder)
- Enh #1531: CArrayDataProvider is now able to sort cutted array, where sorting column is not available in every entry (Yiivgeny)
+- Enh #1535: HTML5 special attributes added to CHtml::renderAttributes() (creocoder)
- Enh: Fixed the check for ajaxUpdate false value in jquery.yiilistview.js as that never happens (mdomba)
- Enh: Requirements checker: added check for Oracle database (pdo_oci extension) and MSSQL (pdo_dblib, pdo_sqlsrv and pdo_mssql extensions) (resurtm)
- Enh: Added CChainedLogFilter class to allow adding multiple filters to a logroute (cebe)
@@ -2238,16 +2238,32 @@ protected static function addErrorCss(&$htmlOptions)
public static function renderAttributes($htmlOptions)
{
static $specialAttributes=array(
+ 'async'=>1,
+ 'autofocus'=>1,
+ 'autoplay'=>1,
'checked'=>1,
+ 'controls'=>1,
'declare'=>1,
+ 'default'=>1,
'defer'=>1,
'disabled'=>1,
+ 'formnovalidate'=>1,
+ 'hidden'=>1,
'ismap'=>1,
+ 'loop'=>1,
'multiple'=>1,
+ 'muted'=>1,
'nohref'=>1,
'noresize'=>1,
+ 'novalidate'=>1,
+ 'open'=>1,
'readonly'=>1,
+ 'required'=>1,
+ 'reversed'=>1,
+ 'scoped'=>1,
+ 'seamless'=>1,
'selected'=>1,
+ 'typemustmatch'=>1,
);
if($htmlOptions===array())

0 comments on commit ea706bd

Please sign in to comment.