384: Can't add comments in IE6

markd*****@gmai***** (Google Code) (Is this you? Claim this profile.)
Feb. 22, 2008
Use IE6.  Go to diff view.  Click on a line number.  
No comment dialog appears, but an error dialog with this error appears:
"Could not get the whiteSpace property. Invalid argument."


This occurs in yui/utilities/utilities.js, line 23.

Going up the callstack, the whiteSpace name comes from diffviewer.js (line
402, in rev 1150):
    this.proxyEl.setStyle("white-space", "pre-wrap");      // CSS 3
    this.proxyEl.setStyle("white-space", "-moz-pre-wrap"); // Mozilla, 1999+
    this.proxyEl.setStyle("white-space", "-pre-wrap");     // Opera 4-6
    this.proxyEl.setStyle("white-space", "-o-pre-wrap");   // Opera 7
    this.proxyEl.setStyle("word-wrap", "break-word");      // Opera 7

If I comment out all the lines with "white-space", the comment dialog works
on IE6.
david
#1 david
  • +Milestone-Release1.0
chipx86
#2 chipx86
Fixed in SVN.
  • +Fixed