[jQuery] question about the behavior of .height() and .width() behavior

[jQuery] question about the behavior of .height() and .width() behavior


the documentation describes height()/width() as "Get the current
computed, pixel, height/width of the first matched element"... except
it isnt. the borders and padding are ignored. considering borders and
padding are in fact part of the element, then the returned value is
far away from the "computed pixel height/width" of the element,
rendering these functions as effectively useless because they dont
take the whole box model into account.
is this the intended behavior, or is this a bug?