Skip to content

Button: added replace on radio name to escape quotes. Fixed #7505 - Butt...#754

Closed
DaleKocian wants to merge 1 commit intojquery:masterfrom
DaleKocian:escapeQuote
Closed

Button: added replace on radio name to escape quotes. Fixed #7505 - Butt...#754
DaleKocian wants to merge 1 commit intojquery:masterfrom
DaleKocian:escapeQuote

Conversation

@DaleKocian
Copy link
Contributor

...on: Buttonset not applied to radio group with quotation/apostrophe in name

…utton: Buttonset not applied to radio group with quotation/apostrophe in name
@jzaefferer
Copy link
Member

We need a more general escaping that isn't specific to single characters. Probably overlaps with what tabs is already doing:

_sanitizeSelector: function( hash ) {

@jzaefferer
Copy link
Member

Duplicate of #401 :sadpanda:

@jzaefferer jzaefferer closed this Oct 22, 2012
@jzaefferer
Copy link
Member

Kind of. Leaving this open for now.

@gnarf
Copy link
Member

gnarf commented Oct 25, 2012

I like this better than #401 since it only escapes the ' - Gonna close that old one

@mikesherov
Copy link
Member

@gnarf37, @jzaefferer what's the status of this pull request? And it also needs tests if it's going to land, right?

@jzaefferer
Copy link
Member

@DaleKocian could you add a unit test for this? Also, the replace call should happen inside the if ( name ) so that it doesn't throw up when there is no name property.

@mikesherov
Copy link
Member

@jzaefferer, besides a unit test, we'd also want to generalize the solution using

_sanitizeSelector: function( hash ) {
, right?

@scottgonzalez
Copy link
Member

I'm fine moving that method to core if it makes sense.

@jzaefferer
Copy link
Member

No we don't, according to @gnarf37 commenting here: #401 (comment)

@mikesherov
Copy link
Member

Ok, thanks @jzaefferer

@mikesherov
Copy link
Member

Landed something similar in cc7df71

@mikesherov mikesherov closed this Nov 19, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

5 participants