astadtla / csexwb2

Automatically exported from code.google.com/p/csexwb2
0 stars 0 forks source link

Contribution HtmlEventHandler is not work #66

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. CsExWB/Community_Contribution/HtmlEventHandler.cs is used.
   ---C# Source----------------------------------------------------
   void cEXWB1_DocumentComplete(){
        HtmlEventHandler handler = new HtmlEventHandler
((mshtml.IHTMLDocument2)cEXWB1.GetActiveDocument());
        handler.OnHtmlElementEvent+=new HtmlElementEvent
(handler_OnHtmlElementEvent);
   }
   ----------------------------------------------------------------

2. The INPUT element has the onclick attribute. 
   The function with 'this' in the parameter is set to the onclick 
   attribute. 
   ---HTML Source--------------------------------------------------
   <input type="button" onclick="aa(this)" value="aaa"/>
   ・・・
   <script type="text/javascript">
   function aa(node){
      alert(node.tagName); ---(1)
   }
   </script>
   ----------------------------------------------------------------

3. It clicks on a button. !
   IE's Alert displays "INPUT". However, csexwb's Alert displays "FORM".

What is the expected output? What do you see instead?

What are the OS and IE versions?
OS:Windows XP SP3
IE:7

What version of the product are you using?
csExWBv2.0.0.2

Please provide any additional information below.
Bill Long.

Original issue reported on code.google.com by sinh...@gmail.com on 10 Jan 2009 at 5:31