[jQuery] jQuery attribute selection
jQuery doesn't seem to be able to handle namespaced attributes as selectors.
For example:
$("FORM[@my:handler='Validator'])
Fails to find any items.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:my="urn:my-extra-data">
...
<form id="user-info" my:handler="Validator">
<input type="text" size="10" my:pattern="#ssn"/>
<input type="text" size="2" my:pattern="#integer" my:min-value="0"
my:max-value="100"/>
I believe the desired enhancement falls within $.filter(), but complex
regular expressions make my head hurt. 8^{
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/