[wp-trac] [WordPress Trac] #17004: Apostrophe in first/last/nickname causes JS error on user profile page
WordPress Trac
wp-trac at lists.automattic.com
Thu Mar 31 01:50:29 UTC 2011
#17004: Apostrophe in first/last/nickname causes JS error on user profile page
----------------------------+------------------------------
Reporter: johnbillion | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 3.1
Severity: minor | Resolution:
Keywords: has-patch |
----------------------------+------------------------------
Changes (by jacobwg):
* cc: jacobwg (added)
* keywords: => has-patch
Comment:
According to http://api.jquery.com/category/selectors/, there are certain
characters that need to be escaped in the selector:
{{{
!"#$%&'()*+,./:;<=>?@[\]^`{|}~
}}}
And according to http://api.jquery.com/attribute-equals-selector/,
attribute equals selectors must always be quoted:
{{{
// wrong:
[attr=value]
// right:
[attr="value"]
}}}
Also, {{{.children()}}} does some special stuff that breaks when you have
escaped characters in your selector, so all {{{.children()}}} calls were
replaced with {{{.find()}}} calls.
My patch should address these issues.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17004#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list