Project

General

Profile

Actions

Bug #43483

closed

doctype html5 css_styled_content ovverride doesnt work?

Added by Sebastian Reinhardt over 11 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Won't have this time
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2012-11-30
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.0
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

doctype.JPG (37.3 KB) doctype.JPG Sebastian Reinhardt, 2012-11-30 13:06
Actions #1

Updated by Sebastian Reinhardt over 11 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?

Actions #2

Updated by Ernesto Baschny over 11 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.

Actions

Also available in: Atom PDF