Skip to content

Don't hookup val() or text().#89

Merged
polgfred merged 1 commit intojupiterjs:masterfrom
iamnoah:patch-1
Nov 16, 2011
Merged

Don't hookup val() or text().#89
polgfred merged 1 commit intojupiterjs:masterfrom
iamnoah:patch-1

Conversation

@iamnoah
Copy link
Contributor

@iamnoah iamnoah commented Nov 15, 2011

The value passed to either of these must be HTML encoded, so it should not produce an element to hookup to. $(args[0]) causes problems when the value or text contains HTML (which should be encoded). See http://jsfiddle.net/mUxPq/

The value passed to either of these must be HTML encoded, so it should not produce an element to hookup to. $(args[0]) causes problems when the value or text contains HTML (which should be encoded). See http://jsfiddle.net/mUxPq/
polgfred added a commit that referenced this pull request Nov 16, 2011
Don't hookup val() or text(). Neither of these operations will produce an element to hookup to. Fixes a bug where text() or val() incorrectly attempts to insert a DOMElement when the text is HTML-like.
@polgfred polgfred merged commit d283189 into jupiterjs:master Nov 16, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants