PRB: Trouble Inserting Non-Displayable HTML into Web Page (185140)
The information in this article applies to:
- Microsoft Internet Explorer (Programming) 4.0
- Microsoft Internet Explorer (Programming) 4.01
- Microsoft Internet Explorer (Programming) 5
This article was previously published under Q185140 SYMPTOMS
When 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 (DHTML) function that allows you to
insert HTML, such as insertAdjacentHTML, pasteHTML, outerHMTL, and so
forth.
CAUSE
When inserting non-displayable HTML, the Web page is not reparsed.
RESOLUTION
You 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.
STATUS
This behavior is by design.
REFERENCES
For additional information, please see the following article in the
Microsoft Knowledge Base:
185128 Insert event handler into Web page from WebBrowser app
For more information about developing Web-based solutions for Microsoft Internet Explorer, visit the following Microsoft Web sites:
Modification Type: | Major | Last Reviewed: | 5/11/2006 |
---|
Keywords: | kbDHTML kbFAQ kbpending kbprb kbWebBrowser KB185140 |
---|
|