Skip to main content

Bug Tracker

Side navigation

#13836 closed bug (duplicate)

Opened April 29, 2013 09:32PM UTC

Closed April 29, 2013 09:56PM UTC

Strings that start with a whitespace will cause appendTo() to fail.

Reported by: WhollyAnointed@hotmail.com Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 2.0.0
Keywords: Cc:
Blocked by: Blocking:
Description

Strings that begin with a whitespace will cause appendTo() to fail. This applies to both 1.9.1 and 2.x. Previous versions didn't have this issue.

E.x:

http://jsfiddle.net/4ZBdZ/1/

// This will pass!
$('<h1>PASS</h1>').appendTo('#myDiv');

// This will fail due to string starting with whitespace
$(' <h1>FAIL!  String begins with whitespace!</h1>').appendTo('#myDiv');
Attachments (0)
Change History (1)

Changed April 29, 2013 09:56PM UTC by rwaldron comment:1

resolution: → duplicate
status: newclosed

Duplicate of #13223.