Bug 23159 - cannot get element.style.border
Summary: cannot get element.style.border
Status: RESOLVED DUPLICATE of bug 15823
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 525.x (Safari 3.2)
Hardware: PC Windows XP
: P2 Normal
Assignee: Nobody
URL: http://kindsoft.net
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-07 00:30 PST by Longhao Luo
Modified: 2009-01-07 02:15 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Longhao Luo 2009-01-07 00:30:43 PST
execute the following code in safari 3.2, can not fetch the value of element's border.

example:
--
<div id="test_div" style="border:1px solid #000000;">style border test</div>
<script type="text/javascript">
alert(document.getElementById("test_div").style.border);
</script>
--
result:
style.border: no value
style.borderTop: will alert "1px solid rgb(0, 0, 0)"
style.borderLeft: no value
style.borderBottom: no value
style.borderRight: no value

demo url: http://kindsoft.net/test/style_border_test.html

browser version:
Windows XP, safari 3.2
Windows XP, chrome 1.0.154.36
Comment 1 Robert Blaut 2009-01-07 01:10:34 PST
This problem is indeed replicable in Safari 3.2.1 but it isn't visible in WebKit r39671. So it is fixed WebKit nightly. 
Comment 2 Robert Blaut 2009-01-07 02:15:45 PST

*** This bug has been marked as a duplicate of 15823 ***