Adding the possibility to match other namespaces attributes
I have noticed that you cannot match other namespaces attributes in
the selectors...
When you use XHTML and you want the document to still be valid, you
can add other namespaces:
<html xmlns="http://www.w3.org/1999/xhtml"
bf:xmlns="blankFields"
swap:xmlns="swapImages">
...
And use it:
<form><input bf:value="Buscar..." type="text" accesskey="b"
name="buscar" id="buscar" /></form>
....
But when you try to find it with jQuery, it crashes:
$("input[bf:value]").focus(focusField)
---
I think it would be very useful to make jQuery works with this type of
attributes, because it improves the web standardization.
I've changed it to work by myself, but I think it would be very useful
to others. What I changed, and not in the best way was:
line 1202: - /^(\[) *@?([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,
line 1202:+ /^(\[) *@?([\w:-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *
\]/,
but the perfect change would be...
line 1202: - /^(\[) *@?([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,
line 1202:+ /^(\[) *@?(([\w-]+:)?[\w-]+) *([!*$^~=]*) *('?"?)
(.*?)\4 *\]/,
and the respective changes when you treat the regexp matches (I
haven't done).
NOTE: I repeat myself, that I think it is very important to add
this... Nowadays a valid xhtml page could look like this:
<html:html>
<html:body>
<html:p>hola</html:p>
</html:body>
</html:html>
What says not only for attributes, but for elements (I changed for me
only for attributes since I don't use other namespaces elements, but I
will use it).
By the way, thank you very much for such a great library!