Index: test_post_filtering.php
===================================================================
--- test_post_filtering.php	(revision 289)
+++ test_post_filtering.php	(working copy)
@@ -60,6 +60,41 @@
 		$this->assertEquals( $expected, $post->post_content );
 	}
 
+	// test kses filtering of disallowed attribute
+	function test_post_content_disallowed_attr() {
+		
+		$content = <<<EOF
+<img src='foo' width='500' href='shlorp' />
+EOF;
+
+		$expected = <<<EOF
+<img src='foo' width='500' />
+EOF;
+
+		$id = $this->_insert_quick_post(__FUNCTION__, $content);
+		$post = get_post($id);
+		
+		$this->assertEquals( $expected, $post->post_content );
+	}
+
+	// test kses bug. xhtml does not require space before closing
+	// empty element
+	function test_post_content_xhtml_empty_elem() {
+		
+		$content = <<<EOF
+<img src='foo' width='500' height='300'/>
+EOF;
+
+		$expected = <<<EOF
+<img src='foo' width='500' height='300' />
+EOF;
+
+		$id = $this->_insert_quick_post(__FUNCTION__, $content);
+		$post = get_post($id);
+		
+		$this->assertEquals( $expected, $post->post_content );
+	}
+
 	// make sure unbalanced tags are fixed when they span a --more-- tag
 	function test_post_content_unbalanced_more() {
 		

