[TYPO3-core] RFC: #11503: HTML5 doctype implementation

Oliver Hader oliver at typo3.org
Fri May 28 23:14:46 CEST 2010


Hi Steffen,

Am 22.05.10 15:35, schrieb Steffen Kamper:
> Hi,
> 
> i made a new patch to enable HTML5 rendering.
> 
> FE: the easy part. Only the doctype has to be defined.
> tested with:
> config.doctype = html_5
> config.xmlprologue = none
> 
> BE: doctype defined, supressed xml prolog for HTML5.
> Also i added a var to supress the X-UA compatible meta tag - it doesn't
> validate in HTML5.
> 
> I got valid HTML5 source for my test module, except the docheader
> buttons: the input type="image" has invalid attributes. But the rest is
> ok and can be done from be module itself.
> 
> tested with:
> $this->doc->docType = 'html_5';
> $this->doc->noCompatibleTag = TRUE;
> 
> A small addition was done to the xUaCompatible function that now allows
> also to return different compatible tags.

I did some minor correction:
* removed noCompatibleTag to useCompatibilityTag and added an accordant
method to set the class member variable (double negations are not good
"noTrue=false")
* changed the comments for the xUaCompatible() method - the document
shall be rendered in the named browser (IE-8) with the compatibility
mode of a previous version of that user agent - I just skipped that part

+1 by reading and testing

olly
-- 
Oliver Hader
TYPO3 v4 Core Team Leader
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 11503_v3.diff
Type: text/x-patch
Size: 4744 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100528/52f2ce4d/attachment.bin>


More information about the TYPO3-team-core mailing list