Index: /CKEditor/branches/prototype/_samples/replacebyclass.html
===================================================================
--- /CKEditor/branches/prototype/_samples/replacebyclass.html	(revision 2345)
+++ /CKEditor/branches/prototype/_samples/replacebyclass.html	(revision 2346)
@@ -22,5 +22,5 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
-	<title>Basic FCKeditor Integration</title>
+	<title>Replace Textareas by Class Name - CKEditor Sample</title>
 	<script type="text/javascript" src="sample.js"></script>
 </head>
Index: /CKEditor/branches/prototype/_samples/replacebycode.html
===================================================================
--- /CKEditor/branches/prototype/_samples/replacebycode.html	(revision 2345)
+++ /CKEditor/branches/prototype/_samples/replacebycode.html	(revision 2346)
@@ -22,5 +22,5 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
-	<title>Basic FCKeditor Integration</title>
+	<title>Replace Textarea by Code - CKEditor Sample</title>
 	<script type="text/javascript" src="sample.js"></script>
 </head>
Index: /CKEditor/branches/prototype/_samples/sample.js
===================================================================
--- /CKEditor/branches/prototype/_samples/sample.js	(revision 2345)
+++ /CKEditor/branches/prototype/_samples/sample.js	(revision 2346)
@@ -62,4 +62,10 @@
 				if ( samples.headScript )
 					samples.headScript = '<script id="headscript" type="text/javascript">' + samples.headScript + '</script>';
+
+				// The '//*/*/*' XPath is the only way to make it work with
+				// xmlns="http://www.w3.org/1999/xhtml" without workarounds. It
+				// means that we must always have <html><head><title> in this
+				// precise order.
+				document.title = sampleData.getInnerXml( '//*/*/*' );
 			}
 		}
