Modify ↓
Ticket #175 (closed bug: fixed)
XHTML Tables
| Reported by: | john | Owned by: | |
|---|---|---|---|
| Priority: | undecided | Milestone: | |
| Component: | ajax | Version: | |
| Keywords: | "" | Cc: | "" |
| Blocking: | Blocked by: |
Description (last modified by dmethvin) (diff)
I just spotted in Revision 226, that jQuery will not by all means support XHTML as XML.
Line 743 reads:
if ( table && this.nodeName == "TABLE" && a[0].nodeName != "THEAD" ) {
nodeName in XML preserves case, that means in XHTML as XML it would return "table" and "thead" so that doesn't work here.
This may not have high priority but needs to be fixed, maybe in jQuery 1.01 or something?
Fix:
if ( table && this.nodeName.toUpperCase() == "TABLE" && a[0].nodeName.toUpperCase() != "THEAD" ) {
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

I would guess that this came from a non-IE direction as that returns uppercase regardless of the original case. That may be different in IE7, but I somehow doubt it. Either way, I heartily endorse this product and/or service.