Index: /CKEditor/tests/dt/core/htmlparser/fragment.html
===================================================================
--- /CKEditor/tests/dt/core/htmlparser/fragment.html	(revision 6860)
+++ /CKEditor/tests/dt/core/htmlparser/fragment.html	(revision 6861)
@@ -1,3 +1,3 @@
-﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+﻿﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
@@ -216,6 +216,17 @@
 			testParser(	'<div><b><font><span>A</font></span></b></div><div>X</div>',
 						'<div><b><font><span>A</span></font></b></div><div>X</div>' );
+		},
+
+		test_ticket_5788 : function()
+		{
+			testParser(	'<p>test<br /> whitespace</p>',
+						'<p>test<br />whitespace</p>' );
+
+			testParser(	'<div><p>paragraph</p> pseudo</div>',
+						'<div><p>paragraph</p>pseudo</div>' );
+
+			testParser(	'<div>pseudo <p>paragraph</p></div>',
+						'<div>pseudo<p>paragraph</p></div>' );
 		}
-
 		// shouldIgnoreAllBut : [],
 		//name : document.title
