DokuWiki

It's better when it's simple

User Tools

Site Tools


tips:xhtml5

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
tips:xhtml5 [2013-03-25 13:31] Klap-intips:xhtml5 [2016-04-20 21:13] (current) ach
Line 1: Line 1:
 ====== Switching to XHTML 5 ====== ====== Switching to XHTML 5 ======
  
-DokuWiki's [[template:dokuwiki|new default template]] (to be due 2012-10-13 "Adora Belle" version) will have the HTML 5 doctype (and keeps the "text/html" content-type). +If you want to switch to XHTML 5 and to a ''application/xhtml+xml'' content-type, here is what to do:
- +
-If you want to switch to XHTML 5 and to a application/xhtml+xml content-type, here is what to do:+
  
 Add Add
Line 39: Line 37:
 "XML parsers are permitted to silently remove the contents of comments. Therefore, you should not use comments to "hide" scripts or style sheets." "XML parsers are permitted to silently remove the contents of comments. Therefore, you should not use comments to "hide" scripts or style sheets."
   <script type="text/javascript" charset="utf-8" ><!--//--><![CDATA[//><!--   <script type="text/javascript" charset="utf-8" ><!--//--><![CDATA[//><!--
-  [...] 
  
-Which raises the questionIs it better to think about the past or the future? ;-)+Use this instead: 
 +  <script>/*<![CDATA[*/ 
 +  // doing something 
 +  /*!]]>*/</script>
  
 ==== Check plugins and templates ==== ==== Check plugins and templates ====
tips/xhtml5.1364214671.txt.gz · Last modified: 2013-03-25 13:31 by Klap-in

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki