Bug Tracker

Opened 14 years ago

Closed 14 years ago

#4395 closed bug (duplicate)

css('padding') doesn't work correctly in each browser

Reported by: xaka Owned by:
Priority: critical Milestone: 1.4
Component: core Version: 1.3.2
Keywords: css padding Cc:
Blocked by: Blocking:

Description

This is test case for this bug.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <style type="text/css">
        .test-case {
            padding: 4px 0;
        }
    </style>
    
    <script type="text/javascript" src="jquery-1.3.2.js"></script>
    <script type="text/javascript">
        $(function() {
            alert($(".test-case").length); // show "1" - OK
            alert($(".test-case").css('padding')); // in FF-3 show "", in IE-(6,7,8) raise exception
        });
    </script>
</head>
<body>
    <div class="test-case">css("padding") test</div>
</body>
</html>

After inspecting code i have found that error between 829:841 lines. Seems like this block of code doesn't take into account multiple values in "padding", "margin", ...

Change History (1)

comment:1 Changed 14 years ago by dmethvin

Resolution: duplicate
Status: newclosed

This is a dup of #4295.

Note: See TracTickets for help on using tickets.