[TYPO3-core] RFC #16740: <img> Tags are rendered with border attribute in HTML5 mode

Martin Kutschker masi-no at spam-typo3.org
Sat Jan 15 10:39:55 CET 2011


Am 14.01.2011 12:01, schrieb Sebastian Michaelsen:
> This is an SVN patch request.
> 
> Type: Bug
> 
> Bugtracker references: http://bugs.typo3.org/view.php?id=16740
> 
> Branches: trunk
> 
> Problem: The HTML5 specification marked the border attribute for the <img> tag as obsolete, so it
> should not be used anymore. But by default TYPO3 uses this attribute when rendering an HTML5 page.
> 
> Solution: On XHTML Strict and others the border attribute is already ommitted, expand that behaviour
> to HTML5.

Completely different approach (for 3.6):

Create a document object that can be asked to render an img element, etc. The instance should be
available via $TSFE. A simple implementation would use one class and do doctype sniffing as the
current code. A better one would use different classes (and a factory to get the right one).

Masi


More information about the TYPO3-team-core mailing list