[Webkit-unassigned] [Bug 10165] "Compose" feature of Vox lacks functionality

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Oct 14 15:24:28 PDT 2006


http://bugs.webkit.org/show_bug.cgi?id=10165





------- Comment #4 from chezsmithy at mac.com  2006-10-14 15:24 PDT -------
Did some investigation and found these two errors in the java script console. 
Probrably going to be more but this might get an investigation started??  I
noted the error and the code snipit it occured in.  The <<<< desigates the line
where the error occured.

ERROR #1: Null Value Error
this.savedSelection = selection.getRangeAt(0).cloneRange();

saveSelection:function(){
var selection = this.getSelection();
if(selection.createRange){
var range = selection.createRange();
if(range.parentElement){
var element = range.parentElement();
if(element && element.ownerDocument === this.document)
this.savedSelection = range.getBookmark();
}
}else if(selection.getRangeAt)
this.savedSelection = selection.getRangeAt(0).cloneRange(); <<<<
},


ERROR#2:  Value undefined (result of expression selection.removeAllRanges() is
not object.
selection.removeAllRanges();

restoreSelection:function(){
this.focus();
if(!this.savedSelection)
return;
var selection = this.getSelection();
if(selection.createRange){
var range = this.document.body.createTextRange();
range.moveToBookmark(this.savedSelection);
range.select();
}else if(selection.getRangeAt){
selection.removeAllRanges(); <<<<
selection.addRange(this.savedSelection);
}
this.savedSelection = null;
this.logSelection();
},


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list