Setting a textbox visible=false and invalidate its parent leading to "Failed to mount" error in Firefox

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Normal
    • 6.5.3
    • Affects Version/s: 6.5.2
    • Component/s: Browser Issue
    • Security Level: Jimmy
    • None
    • None

      Try the following code in FireFox.

      <div id="div">
      <textbox value="Jerry" width="150px" id="test" onOK="test.visible=false; div.invalidate();"/>
      </div>

      Hitting enter in the textbox will cause an error in FF as:

      Failed to mount: Component returned failure code: 0x80004005
      (NS_ERROR_FAILURE)
      [nsIDOMHTMLInputElement.setSelectionRange

            Assignee:
            RaymondChao
            Reporter:
            francishsiao
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: