Crash in khtml::ComboBoxWidget selection event

Koos Vriezen koos.vriezen at xs4all.nl
Sat Aug 10 14:37:09 BST 2002


On Sat, 10 Aug 2002, Koos Vriezen wrote:

> Any ideas why I see this bt below lately, when selecting an item from a
> combobox form element?

Sorry, forgot to include a test case for it (select two times):

  <HTML><HEAD><SCRIPT>
    function selected(option) {
      loaded();
    }
    function loaded() {
      myframe.document.open();
      myframe.document.write("<html><body><form><select onChange=
        'javascript:top.selected(this.options[this.selectedIndex].text)'>
        <option selected>one</option><option>two</option>
        <option>three</option></select></form></body></html>");
      myframe.document.close();
    }
  </SCRIPT> </HEAD>
  <FRAMESET onLoad="loaded()">
    <FRAME NAME="myframe" SRC="about:blank">
  </FRAMESET></HTML>

(Don't forget to join the myframe.document.write line)

Probably dirty too :)

Regards,

Koos






More information about the kfm-devel mailing list