Bug Tracker

Modify

Ticket #12147 (closed bug: invalid)

Opened 10 months ago

Last modified 10 months ago

Reword documentation for .width() method

Reported by: mail@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.2
Keywords: Cc:
Blocking: Blocked by:

Description

The wording on the page  http://api.jquery.com/width/ is confusing.

This text:

The difference between .css(width) and .width() is that the latter returns a unit-less pixel value (for example, 400) while the former returns a value with units intact (for example, 400px).

could be beter written as:

The difference between .width() and .css(width) is that the former returns a unit-less pixel value (for example, 400) while the latter returns a value with units intact (for example, 400px).

Change History

comment:1 Changed 10 months ago by rwaldron

  • Status changed from new to closed
  • Resolution set to invalid

Please file api doc related bugs here:  https://github.com/jquery/api.jquery.com

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.