Bug Tracker

Modify

Ticket #8051 (closed bug: duplicate)

Opened 2 years ago

Last modified 14 months ago

col .width() of a colgroup returns 0

Reported by: TiTi Owned by:
Priority: low Milestone: 1.next
Component: dimensions Version: 1.4.4
Keywords: Cc:
Blocking: Blocked by:

Description

Hello,

The .width() method returns 0 on a <col> element for Google Chrome current stable release (8.0.552.237), and also IE9 and Safari.

Doh in fact it only works on Firefox....

Test:  http://jsfiddle.net/NeTS5/

Workaround I'm using for thoses interested: get the corresponding <th> width, or a visible cell for that column...

Change History

comment:1 Changed 2 years ago by jitter

  • Priority changed from undecided to low
  • Resolution set to duplicate
  • Status changed from new to closed
  • Component changed from unfiled to dimensions

Thanks for taking the time to contribute to the jQuery project by writing a bug report and providing a test case!

This isn't a bug as the col element itself doesn't have a width. It's just used to style the real columns of a table.

See also these tickets #7913, #7782 for more information

comment:2 Changed 2 years ago by jitter

Duplicate of #7782.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.