Bug 23159
| Summary: | cannot get element.style.border | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Longhao Luo <luolonghao> |
| Component: | DOM | Assignee: | 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 | ||
Longhao Luo
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
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Robert Blaut
This problem is indeed replicable in Safari 3.2.1 but it isn't visible in WebKit r39671. So it is fixed WebKit nightly.
Robert Blaut
*** This bug has been marked as a duplicate of 15823 ***