Index: src/wp-includes/formatting.php
===================================================================
--- src/wp-includes/formatting.php	(revision 35773)
+++ src/wp-includes/formatting.php	(working copy)
@@ -541,7 +541,7 @@
 	// Optionally insert line breaks.
 	if ( $br ) {
 		// Replace newlines that shouldn't be touched with a placeholder.
-		$pee = preg_replace_callback('/<(script|style).*?<\/\\1>/s', '_autop_newline_preservation_helper', $pee);
+		$pee = preg_replace_callback('/<(script|style|svg).*?<\/\\1>/s', '_autop_newline_preservation_helper', $pee);
 
 		// Normalize <br>
 		$pee = str_replace( array( '<br>', '<br/>' ), '<br />', $pee );
@@ -4791,4 +4791,4 @@
 		$short_url = substr( $short_url, 0, $length - 3 ) . '&hellip;';
 	}
 	return $short_url;
-}
\ No newline at end of file
+}
Index: tests/phpunit/tests/formatting/Autop.php
===================================================================
--- tests/phpunit/tests/formatting/Autop.php	(revision 35773)
+++ tests/phpunit/tests/formatting/Autop.php	(working copy)
@@ -524,4 +524,35 @@
 		$this->assertEquals( $expected, trim( wpautop( $content ) ) );
 	}
 
+	/**
+	 * wpautop() should ignore inline SVG graphics
+	 *
+	 * @ticket 9437
+	 */
+	function test_that_wpautop_ignores_inline_svgs() {
+		$content=
+			'<svg xmlns="http://www.w3.org/2000/svg">
+				<circle cx="50" cy="50" r="30" fill="blue">
+					<animateTransform attributeName="transform" type="scale" to="1.5" dur="2s" fill="freeze"/>
+				</circle>
+			</svg>';
+		$expected='<p>'.$content.'</p>';
+		$this->assertEquals( $expected, trim( wpautop( $content ) ) );
+	}
+
+	/**
+	 * wpautop() should ignore inline scripts
+	 *
+	 * @ticket 9437
+	 */
+	function test_that_wpautop_ignores_inline_scripts() {
+		$content=
+			'<script type="text/javascript">
+
+				 var dummy = 1;
+			</script>';
+		$expected='<p>'.$content.'</p>';
+		$this->assertEquals( $expected, trim( wpautop( $content ) ) );
+	}
+
 }
