Bug 23159

Summary: cannot get element.style.border
Product: WebKit Reporter: Longhao Luo <luolonghao>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: webkit
Priority: P2    
Version: 525.x (Safari 3.2)   
Hardware: PC   
OS: Windows XP   
URL: http://kindsoft.net

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 ***