Skip to content
This repository
Browse code

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

…/yii into creocoder-html5-special-attributes

Conflicts:
	CHANGELOG
  • Loading branch information...
commit ea706bd0ffebecc99e55ce1b89f80ff358886d66 2 parents afe2ba2 + 3c3d0d4
Alexander Makarov samdark authored

Showing 2 changed files with 17 additions and 0 deletions. Show diff stats Hide diff stats

  1. +1 0  CHANGELOG
  2. +16 0 framework/web/helpers/CHtml.php
1  CHANGELOG
@@ -51,6 +51,7 @@ Version 1.1.13 work in progress
51 51 - Enh #1500: CSqlDataProvider now supports CDbCommand in constructor (slavcodev)
52 52 - Enh #1518: Allow to configure CHtml::$closeSingleTags and CHtml::$renderSpecialAttributesValue. Useful for HTML5 code (creocoder)
53 53 - Enh #1531: CArrayDataProvider is now able to sort cutted array, where sorting column is not available in every entry (Yiivgeny)
  54 +- Enh #1535: HTML5 special attributes added to CHtml::renderAttributes() (creocoder)
54 55 - Enh: Fixed the check for ajaxUpdate false value in jquery.yiilistview.js as that never happens (mdomba)
55 56 - Enh: Requirements checker: added check for Oracle database (pdo_oci extension) and MSSQL (pdo_dblib, pdo_sqlsrv and pdo_mssql extensions) (resurtm)
56 57 - Enh: Added CChainedLogFilter class to allow adding multiple filters to a logroute (cebe)
16 framework/web/helpers/CHtml.php
@@ -2238,16 +2238,32 @@ protected static function addErrorCss(&$htmlOptions)
2238 2238 public static function renderAttributes($htmlOptions)
2239 2239 {
2240 2240 static $specialAttributes=array(
  2241 + 'async'=>1,
  2242 + 'autofocus'=>1,
  2243 + 'autoplay'=>1,
2241 2244 'checked'=>1,
  2245 + 'controls'=>1,
2242 2246 'declare'=>1,
  2247 + 'default'=>1,
2243 2248 'defer'=>1,
2244 2249 'disabled'=>1,
  2250 + 'formnovalidate'=>1,
  2251 + 'hidden'=>1,
2245 2252 'ismap'=>1,
  2253 + 'loop'=>1,
2246 2254 'multiple'=>1,
  2255 + 'muted'=>1,
2247 2256 'nohref'=>1,
2248 2257 'noresize'=>1,
  2258 + 'novalidate'=>1,
  2259 + 'open'=>1,
2249 2260 'readonly'=>1,
  2261 + 'required'=>1,
  2262 + 'reversed'=>1,
  2263 + 'scoped'=>1,
  2264 + 'seamless'=>1,
2250 2265 'selected'=>1,
  2266 + 'typemustmatch'=>1,
2251 2267 );
2252 2268
2253 2269 if($htmlOptions===array())

0 comments on commit ea706bd

Please sign in to comment.
Something went wrong with that request. Please try again.