Search

3/03/2008

Web Bug Track: bug 165 - dynamic pre population fails in IE

Web Bug Track: bug 165 - dynamic pre population fails in IE

<script type="text/javascript">
myPreObj.innerHTML = 'This\nWill\nFail... no linebreaks or spaces';
</script>

Example Workaround Code:
<script type="text/javascript">
myPreObj.innerHTML = 'This\nWill\nFail... no linebreaks or spaces';
myPreObj.innerHTML = myPreObj.innerHTML;
</script>

keyword: preserve pre whitespace

沒有留言: