themes/oxygen/header.tpl
changeset 81 d7fc25acd3f3
parent 80 cb7dde69c301
child 147 d8156d18ac58
child 211 753dabeca1ee
child 298 39c132e69781
--- a/themes/oxygen/header.tpl	Wed Aug 01 13:39:27 2007 -0400
+++ b/themes/oxygen/header.tpl	Sun Aug 05 15:58:50 2007 -0400
@@ -1,5 +1,5 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
-<html>
+<html xmlns="http://www.w3.org/1999/xhtml">
   <head>
     <title>{PAGE_NAME} &bull; {SITE_NAME}</title>
     <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
@@ -73,7 +73,7 @@
         elem = document.getElementById('h2PageName');
         if(!elem) return;
         elem.style.display = 'none';
-        name = elem.innerHTML;
+        name = elem.firstChild.nodeValue;
         textbox = document.createElement('input');
         textbox.type = 'text';
         textbox.value = name;
@@ -90,7 +90,8 @@
         if(!elem1 || !elem2) return;
         value = elem2.value;
         elem2.parentNode.removeChild(elem2); // just destroy the thing
-        elem1.innerHTML = value;
+        elem1.removeChild(elem1.firstChild);
+        elem1.appendChild(document.createTextNode(value));
         elem1.style.display = 'block';
         if(!value || value=='') return;
         ajaxPost(stdAjaxPrefix+'&_mode=rename', 'newtitle='+escape(value), function() {