Side navigation
#13402 closed bug (notabug)
Opened February 06, 2013 05:14PM UTC
Closed February 07, 2013 04:43PM UTC
Crashing when beginning with newlines
Reported by: | hauke@jimdo.com | Owned by: | hauke@jimdo.com |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.9.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Today we switched from jQuery 1.8.3 to 1.9.1 and the following occured:
When a string containing HTML beginning with one or more newlines is passed to jQuery to get an jQuery object it fails with a syntax error.
I created two gists to reproduce the problem.
Working with 1.8.3: https://gist.github.com/Partyschaum/4723647
Not working in 1.9.x (I tested 1.9.0 and 1.9.1): https://gist.github.com/Partyschaum/4723669
Regards,
Hauke
Attachments (0)
Change History (3)
Changed February 06, 2013 05:31PM UTC by comment:1
owner: | → hauke@jimdo.com |
---|---|
status: | new → pending |
Changed February 07, 2013 04:25PM UTC by comment:2
status: | pending → new |
---|
Replying to [comment:1 dmethvin]:
What did the jQuery Migrate plugin say?
JQMIGRATE: $(html) HTML strings must start with '<' character
Ok, that exactly was my "fix" until now. Then it's no bug. Instead I've to cleanup my HTML strings before putting them into jQuery.
Thx!
This ticket could be closed.
Greetings from Hamburg!
Changed February 07, 2013 04:43PM UTC by comment:3
resolution: | → notabug |
---|---|
status: | new → closed |
What did the jQuery Migrate plugin say?