Side navigation
#4395 closed bug (duplicate)
Opened March 21, 2009 10:07AM UTC
Closed March 21, 2009 02:48PM UTC
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", ...
Attachments (0)
Change History (1)
Changed March 21, 2009 02:48PM UTC by comment:1
| resolution: | → duplicate |
|---|---|
| status: | new → closed |
This is a dup of #4295.