]> source.dussan.org Git - jquery.git/commitdiff
no ticket: fix jQuery suite failure on Android
authorRichard Gibson <richard.gibson@gmail.com>
Wed, 17 Oct 2012 19:20:15 +0000 (15:20 -0400)
committerRichard Gibson <richard.gibson@gmail.com>
Wed, 17 Oct 2012 19:20:50 +0000 (15:20 -0400)
src/sizzle
test/data/testrunner.js

index badbeffba4714432a663f1150d3ffb1e20b6e191..f51e83a9c9bd78f1cafda9fa9b3b93fefa61c3ae 160000 (submodule)
@@ -1 +1 @@
-Subproject commit badbeffba4714432a663f1150d3ffb1e20b6e191
+Subproject commit f51e83a9c9bd78f1cafda9fa9b3b93fefa61c3ae
index ef3a5556809e273fd8919e5e78330dec644d5a78..9b77ac39fc8cf78349256fff586366db5f81ee15 100644 (file)
@@ -60,7 +60,7 @@ function testSubproject( label, url, risTests ) {
                success: function( data, status, jqXHR ) {
                        var page = jQuery.parseHTML(
                                // replace html/head with dummy elements so they are represented in the DOM
-                               ( data || "" ).replace( /(<\/?)(?:html|head)\b/g, "$1div" ),
+                               ( data || "" ).replace( /<\/?((!DOCTYPE|html|head)\b.*?)>/gi, "[$1]" ),
                                document,
                                true
                        );