Index: test/js/DOM.js
===================================================================
--- test/js/DOM.js	(revision 9965)
+++ test/js/DOM.js	(working copy)
@@ -30,6 +30,15 @@
 		ok(jQuery('div.testClass'), 'Setting the element class parameter should set the class on the DOM element');
 
 	});
+
+	test("createTiddlyText", function() {
+		expect(1);
+		var parent = makeTestNode();
+		createTiddlyText(parent, "<div>");
+		createTiddlyText(parent, "a");
+		createTiddlyText(parent, "</div>");
+		equals(parent.innerHTML, "&lt;div&gt;a&lt;/div&gt;", "createTiddlyText should append text node, not html element");
+	});
 	
 
 	test("addClass", function() {
Index: js/Dom.js
===================================================================
--- js/Dom.js	(revision 9965)
+++ js/Dom.js	(working copy)
@@ -310,7 +310,7 @@
 
 function createTiddlyText(parent,text)
 {
-	return jQuery(parent).append(text);
+	return parent.appendChild(document.createTextNode(text));
 }
 
 // Return the content of an element as plain text with no formatting

