瀏覽代碼

Implement new quoting for CDATA elements.

It seems that CSS and Java-script stuff should be quoted in a very
strange way in order to make sure that the resulting file functions
correct in current browsers *and* validates against various XHTML and
XML standards.  To be honest, the quoting technique seem really
strange, but Sebastian Rose argues, that this is the way to handle
this issue.
Carsten Dominik 17 年之前
父節點
當前提交
760c3ec098
共有 3 個文件被更改,包括 9 次插入4 次删除
  1. 5 0
      lisp/ChangeLog
  2. 2 2
      lisp/org-exp.el
  3. 2 2
      lisp/org-jsinfo.el

+ 5 - 0
lisp/ChangeLog

@@ -1,5 +1,10 @@
 2008-12-03  Carsten Dominik  <carsten.dominik@gmail.com>
 
+	* org-exp.el (org-export-html-style-default): Implement new
+	quoting.
+
+	* org-jsinfo.el (org-infojs-template): Implement new quoting.
+
 	* org-w3m.el (w3m-minor-mode-hook): Also add the special copy
 	command to the `w3m-minor-mode-map'.
 

+ 2 - 2
lisp/org-exp.el

@@ -524,7 +524,7 @@ Org-mode file."
 
 (defconst org-export-html-style-default
 "<style type=\"text/css\">
-/* <![CDATA[ */
+ <!--/*--><![CDATA[/*><!--*/
   html { font-family: Times, serif; font-size: 12pt; }
   .title  { text-align: center; }
   .todo   { color: red; }
@@ -551,7 +551,7 @@ Org-mode file."
                                white-space:nowrap; }
   .org-info-js_search-highlight {background-color:#ffff00; color:#000000;
                                  font-weight:bold; }
-/* ]]> */
+  /*]]>*/-->
 </style>"
   "The default style specification for exported HTML files.
 Please use the variables `org-export-html-style' and

+ 2 - 2
lisp/org-jsinfo.el

@@ -106,10 +106,10 @@ means to use the maximum value consistent with other options."
 (defcustom org-infojs-template
   "<script type=\"text/javascript\" src=\"%SCRIPT_PATH\"></script>
 <script type=\"text/javascript\" >
-/* <![CDATA[ */
+<!--/*--><![CDATA[/*><!--*/
 %MANAGER_OPTIONS
 org_html_manager.setup();  // activate after the parameterd are set
-/* ]]> */
+/*]]>*/-->
 </script>"
   "The template for the export style additions when org-info.js is used.
 Option settings will replace the %MANAGER-OPTIONS cookie."