On 01/02/07, Mike Alsup <[EMAIL PROTECTED]> wrote:
> > file where one of the elements attributes is "for," which in my case will
> > help the end user know what the 'txt' attr is for in the design/flow of the
> > site and the naming convention was totally arbitrary. So, in my instance,
> > when I call .attr('for') i get 'undefined', but if I change the attribute to
> > 'whatfor' in the xml file and then call with .attr('whatfor'); it spits back
> > the value of the attribute. Other then for a label tag, I am not sure where
> > else the 'for' attribute is used for. I can toss up a test page if needed.
>
> There's a few attr names you'll want to stay away from for xml docs:
> for, class, float, opacity. jQuery has special handling for these to
> fix common mistakes and browser inconsistencies.
But could it check to see if the document is XML and not apply these
fixes if that is the case? There may be circumstances where you can't
edit the XML document. The fixes are only relevant to HTML anyway.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/