Ticket #1843 - Bug in jQuery.css

Ticket #1843 - Bug in jQuery.css


http://dev.jquery.com/ticket/1843
I just entered this bug into Trac. There seems to be a bug in the jQuery.css
function.
The lines:
if ( parPos == "static" )
e.parentNode.style.position = "relative";
Cause a problem in FF when the element is a direct child of the <body> tag.
If you happen to call the height() or width() methods while typing in a
textarea box, the cursor jumps to the end.
This seems to be because FF does some kind of weird screen refresh if you
try to set the position style on the <body> tag.
Changing the code to:
if ( parPos == "static" && e.parentNode.tagName != "BODY" )
    e.parentNode.style.position = "relative";
Seems to fix the problem.
-Dan