Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

fix(jqLite): trim HTML string in jqLite constructor #6112

Closed
wants to merge 1 commit into from

Conversation

caitp
Copy link
Contributor

@caitp caitp commented Feb 4, 2014

jQuery will construct DOM nodes containing leading whitespace. Prior to this change, jqLite would throw a nosel minErr due to the first character of the string not being '<'. This change corrects this behaviour by trimming the element string in jqLite constructor before testing for '<'.

Closes #6053

jQuery will construct DOM nodes containing leading whitespace. Prior to this change, jqLite would
throw a nosel minErr due to the first character of the string not being '<'. This change corrects
this behaviour by trimming the element string in jqLite constructor before testing for '<'.

Closes angular#6053
@vojtajina vojtajina self-assigned this Feb 5, 2014
@vojtajina
Copy link
Contributor

Thanks @caitp ! I did a subtle style change - move the trimming out of the "if" so that it's a little bit easier to read. Merged as 36d37c0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error: [jqLite:nosel] when compiling cached template
3 participants