Skip to content
Permalink
Browse files

Fixed #874

  • Loading branch information
jzaefferer committed Jan 31, 2007
1 parent a82b048 commit d4849a0d3589ea3d369137f79b102eb68403b489
Showing with 4 additions and 1 deletion.
  1. +3 −0 src/jquery/coreTest.js
  2. +1 −1 src/jquery/jquery.js
@@ -14,6 +14,9 @@ test("Basic requirements", function() {
test("$()", function() {
var main = $("#main");
isSet( $("div p", main).get(), q("sndp", "en", "sap"), "Basic selector with jQuery object as context" );

// make sure this is handled
$('<p>\r\n</p>');
});

test("length", function() {
@@ -38,7 +38,7 @@ var jQuery = function(a,c) {
// Handle HTML strings
if ( typeof a == "string" ) {
// HANDLE: $(html) -> $(array)
var m = /^[^<]*(<(.|\n)+>)[^>]*$/.exec(a);
var m = /^[^<]*(<(.|\s)+>)[^>]*$/.exec(a);
if ( m )
a = jQuery.clean( [ m[1] ] );

0 comments on commit d4849a0

Please sign in to comment.
You can’t perform that action at this time.