Bug #24212
closed
Update meta tag "charset" for HTML5 – document character-encoding declaration
Added by Morton Jonuschat almost 14 years ago.
Updated about 7 years ago.
Description
When setting the doctype to html_5 TYPO3 still generates a http-equiv meta tag for setting the character encoding.
The attached patch makes the meta charset tag used by the pageRenderer configurable with a setter and adjusts tslib_pagegen so that it uses the recommended <meta charset=...> Tag.
(issue imported from #M16577)
Files
The old patch is not working and we move the function which called the setMetaCharsetTag to the existing switch condition html5 and created a new patch file.
Hi Violeng,
thanks for your contribution!
Do you know, that you must send your patch to Core List to get it in the next releases of TYPO3?
Check out http://typo3.org/teams/core/core-mailinglist-rules/
There you already find an example of what your mail should look like.
Hi Christoper,
Yes, I already sent the patch to the Core List.
Ahh, thanks for the note. Seems like I have missed that thread...
A little question: what if I'd want to use a custom doctype?
I'm asking because I'd like to use the "boilerplate standard", so my doctype is:
config.doctype(
<!doctype html>
)
In TYPO3 4.5 you could use the render-postProcess Hook to modify the doctype to get this kind of doctype. See #24214 for some more information on this.
- Category deleted (
Communication)
- Assignee set to Steffen Gebert
- Target version deleted (
0)
Patch set 1 of change I8275b677e5394f59dbd1efc65ced93f57149ebae has been pushed to the review server.
It is available at http://review.typo3.org/2280
- Category set to Frontend
- Status changed from New to Under Review
Patch set 2 of change I8275b677e5394f59dbd1efc65ced93f57149ebae has been pushed to the review server.
It is available at http://review.typo3.org/2280
Patch set 1 of change Ic1ec479086d955bed407e2c87fdc6ca0d9bc32f6 has been pushed to the review server.
It is available at http://review.typo3.org/2318
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Target version set to 4.5.4
- Category changed from Frontend to 1050
- Status changed from Resolved to Closed
- Category changed from 1050 to Frontend
Also available in: Atom
PDF