Skip to main content

Bug Tracker

Side navigation

#9906 closed bug (invalid)

Opened July 25, 2011 07:24PM UTC

Closed July 25, 2011 09:29PM UTC

Strange behavior with wrap() in IE and Mozilla

Reported by: anonymous Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.6.2
Keywords: Cc:
Blocked by: Blocking:

Example included for better understanding:

<table class="grid" border="1">
        <th>Column 1</th>
        <th>Column 2</th>
        <td>Content 1</td>
        <td>Content 2</td>

I try to get the TABLE tag with a parent function

var table = $('.grid tr:first').parent();

This means, get the parent of the first line from a table with the class "grid" assigned to it ("$('.grid table)" won't work btw.), which is the table itself.

Now trying to wrap the table in a DIV tag fails in IE 8 and ends up with a strange behavior in Mozilla.


But if you try to do the same with


everything is fine ...

The variable "table" seems to be a valid element. This code work:

Attachments (0)
Change History (1)

Changed July 25, 2011 09:29PM UTC by rwaldron comment:1

resolution: → invalid
status: newclosed

IE wraps trs in a tbody use closest("table")

Support questions should be directed to the support forum