Skip to main content

Bug Tracker

Side navigation

#12147 closed bug (invalid)

Opened July 25, 2012 06:53PM UTC

Closed July 25, 2012 08:35PM UTC

Reword documentation for .width() method

Reported by: mail@kerrickstaley.com Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:
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).

Attachments (0)
Change History (1)

Changed July 25, 2012 08:35PM UTC by rwaldron comment:1

resolution: → invalid
status: newclosed

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