+ Start a Discussion
siddarth rajsiddarth raj 

When HTML5 allowed on apex page why not in page components

I do not see any stop holder to not supporting html5 in components when supported on apex pages.


RadnipRadnip
What do you mean stop holder?
siddarth rajsiddarth raj
I mean html5 embeding is not allowed in pagecomponent I see there is no docType attribute for apex component as like apex page. Why?
RadnipRadnip
The component is a part of the apex page. So why would you need the docType?
siddarth rajsiddarth raj

Yeah Its right page component anyway we have to embed it in one Apex page . But before to that I should be able to include html elements in the page component file without any failures to have saved on cloud.

I am trying to include <input value={!sObject.value} type="number"/> instead Including <inputtext value={!sObject.filed} lable="length"/> and applying some number validations to apex tag.

 

HTML5 input type number allows only numbers..so trying to use that in my page componnet.