Yii Framework Forum: HTML5 support in CHTML - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

HTML5 support in CHTML Rate Topic: -----

#1 User is offline   whuhacker 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 38
  • Joined: 01-November 11
  • Location:Hong Kong

Posted 02 April 2012 - 04:26 AM

HTML5 become more and more popular, we need to support some features in CHTML.

e.g.
CHtml::tag("div",array("class"=>"ico-small", "data-logid"=>"log-1890"))


The above code cannot generates the data-* attribute in div tag.
HTML5 tags such as header, footer, aside should be supported too. I think it is time for HTML5 in Yii 2.0
0

#2 User is offline   bennouna 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,166
  • Joined: 05-January 12
  • Location:Morocco

Posted 02 April 2012 - 06:54 AM

View Postwhuhacker, on 02 April 2012 - 04:26 AM, said:

HTML5 become more and more popular, we need to support some features in CHTML.

e.g.
CHtml::tag("div",array("class"=>"ico-small", "data-logid"=>"log-1890"))


The above code cannot generates the data-* attribute in div tag.
HTML5 tags such as header, footer, aside should be supported too. I think it is time for HTML5 in Yii 2.0


Fyi, there have been discussions and CHtml extensions to support HTML5 in Yii 1.1, but I'm not sure what the status is/will be for Yii 2 (XHTML4 vs. HTML5 ?)

Anyway, for your last idea, I believe header, footer, and aside tags are nothing but wrappers. I personally already use them in plain HTML (not generating them by Yii).
0

#3 User is offline   Maurizio Domba Cerin 

  • Yii - Yesss It Is !!!
  • Yii
  • Group: Yii Dev Team
  • Posts: 4,346
  • Joined: 12-October 09
  • Location:Croatia

Posted 02 April 2012 - 07:51 AM

Some elements have already been added to the CActiveForm in the development version - https://github.com/y...ft/yii/pull/328
Find more about me.... btw. Do you know your WAN IP?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users