解决FF中的bug:JavaScript focus() throws "Permission denied to get property XULElement.selectedIndex"
JavaScript focus() throws "Permission denied to get property XULElement.selectedIndex" 这个Bug通常在focus()方法被调用时发生,避免这个bug的发生,可把input控件的autocomplete属性设为false。
Javascript代码:
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif)
C#代码:
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif)
PS:若禁用autocomplete属性后,input文本框还有智能提示,请Ctrl + Shift + Delete,清除FF中的Private Data。