The information in this article applies to:
SYMPTOMSWhen hosting the WebBrowser control in your applications, inserting non- displayable HTML such as script or comments does not have any affect. This occurs when using any Dynamic HTML (DHMTL) function that allows you to insert HTML, such as insertAdjacentHTML, pasteHTML, outerHMTL, and so forth. CAUSEWhen inserting non-displayable HTML, the Web page is not reparsed. RESOLUTIONYou must insert some displayable HTML so that the page will be reparsed. This displayable HTML can be hidden so that it does not actually appear on the page. You may use a SPAN or DIV tag with a display style of none to cause HTML to be hidden. STATUSThis behavior is by design. MORE INFORMATIONSteps to Reproduce Behavior
ResolutionInsert displayable HTML before the non-displayable HTML. Do this by using a SPAN tag with the display style set to none.
When you execute the statement in step 4 above, the HTML comment now
appears in the document.
REFERENCES
For additional information, please see the following article in the
Microsoft Knowledge Base:
Q185128 Insert event handler into Web page from WebBrowser app
For more information, please see the MSDN Web Workshop: http://msdn.microsoft.com/workshop/default.asp © Microsoft Corporation 1999, All Rights Reserved. Additional query words: insertAdjacentHTML pasteHTML outerHTML kbWebBrowser
Keywords : kbDHTML kbIE400 kbIE401 kbWebBrowser kbIE500 kbIEFAQ |
Last Reviewed: January 27, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |