[TYPO3-content-rendering] Target attribute XHTML/HTML

Patrick Broens patrick at patrickbroens.nl
Wed Aug 3 10:57:52 CEST 2011


Hi,

css_styled_content has several target parameters in constants.txt, which
are used in setup.txt. For instance images with an external link get a
target="_blank" by default. Of course, this is not allowed in XHTML, but
is in HTML.

I will make a few changes to css_styled_content setup.txt, where the
targets are empty by default (and not rendered) unless the following
conditions apply:

* Doctype is HTML instead of XHTML
* The target is explicitly given by a user in the RTE link wizard

Why not removing the target at all in XHTML? I'm sure some companies
will complain, because their clients still want to have the possibility
to use the target, if they are using XHTML. For instance _blank for
external links.

Do you think this is an acceptable solution?

Cheers

Patrick


More information about the TYPO3-project-content-rendering mailing list