- assigned_to: jamiemccarthy --> scc
Whenever I expand the tagging area on a slashdot article to see the list of example tags and the tag textbox, I get the following error:
'navigator.vendor' is null or not an object on line 834.
This is happening on IE6 on Windows XP Professional SP2.
Clicking on the textbox itself reiterates this error. I cannot type in the textbox as a result, however, I can type in an external program and paste into the textbox (after acknowledging the error).
Microsoft Script Debugger highlights this code for me:
var vendor=navigator.vendor.toLowerCase()
which is the first line inside the following function:
function attachCompleter(obj,id,is_admin,type,tagDomain,customize){var vendor=navigator.vendor.toLowerCase();if(vendor.indexOf("apple")!=-1||vendor.indexOf("kde")!=-1)
return false;if(customize===undefined)
customize=new Object();customize._id=id;customize._is_admin=is_admin;customize._type=type;if(tagDomain!=0&&customize.queryOnAttach===undefined)
customize.queryOnAttach=true;if(!YAHOO.slashdot.gCompleterWidget)
YAHOO.slashdot.gCompleterWidget=new YAHOO.slashdot.AutoCompleteWidget();YAHOO.slashdot.gCompleterWidget.attach(obj,customize,tagDomain);return false;}
which is inside all-minified.js.
The following is one way this could be fixed:
function attachCompleter(obj,id,is_admin,type,tagDomain,customize){if(typeof navigator.vendor != "undefined"){var vendor=navigator.vendor.toLowerCase();if(vendor.indexOf("apple")!=-1||vendor.indexOf("kde")!=-1)
return false;}if(customize===undefined)
customize=new Object();customize._id=id;customize._is_admin=is_admin;customize._type=type;if(tagDomain!=0&&customize.queryOnAttach===undefined)
customize.queryOnAttach=true;if(!YAHOO.slashdot.gCompleterWidget)
YAHOO.slashdot.gCompleterWidget=new YAHOO.slashdot.AutoCompleteWidget();YAHOO.slashdot.gCompleterWidget.attach(obj,customize,tagDomain);return false;}
This checks to see if navigator.vendor exists before using it.