Bug #43483
closeddoctype html5 css_styled_content ovverride doesnt work?
0%
Description
Hi
the typo3 6.0 default doctype is html5, right? But the css_styled_content doesnt change the wrapping from <div> to <header>.
In the typoscript-object-browser everything is like it should be:
lib.stdheader.stdwrap has got the "override = <header class="csc-header csc-header-n{cOb..."
so the contentelements should render per default with html5 <header>
But they dont. see my attached image.
Files
Updated by Sebastian Reinhardt almost 12 years ago
info:
to make it work i have to set the doctype in TS to
config.doctype = html5
but if Typo3 6.0's doctype is html5, why i have top set it via TS?
Updated by Ernesto Baschny almost 12 years ago
- Category set to Frontend
- Status changed from New to Closed
- Priority changed from Should have to Won't have this time
- PHP Version deleted (
5.3)
You found out the setting anyway.
Default (no doctype setting at all) still "html", which means it behaves as previous versions, but instead of outputting an old "HTML 4.0 Transitional" DOCTYPE header, it outputs just "html" (the HTML5 one). But the rendering is still the same as before (due to backwards compatibility).
If you need proper html5, you need to set doctype to html5.
css_styled_content has lots of conditions in the TypoScript like this:
if.value = html5
if.equals.data = TSFE:config|config|doctype
So no change required on that.