Originally posted by: sao
For example: <HTML><BODY BGCOLOR=#ffffff></BODY><HTML>
When this string gets parsed whith IMarkupServices::ParseString it ends up as
<HTML><HEAD></HEAD><BODY></BODY><HTML>
the BGCOLOR=#ffffff just disappears. Can anyone tell me if
Hi I've tried using this code and also looked it up in
MSDN and it works great. However I've noticed some of
the attributes on some elements are missing when an html
document gets parsed.
this is a bug? thanks.
Originally posted by: Batiskaf
What i need to do for implementation of new tag ( for example "myTag")
ReplyOriginally posted by: Andrei Iliev
Dim m_dom As MSHTML.HTMLDocument
m_dom.body.innerHTML = sHtml
Do While Not (m_dom.readyState = "complete")
Text1.Text = m_dom.body.innerText
It is a little bit faster than your approach, at list for IE6.
If you want just parse body element, it seems easier to use MSHTML.HTMLDocument itself. Just use body.innerHTML property, like this (VB sample code):
Set m_dom = New MSHTML.HTMLDocument
DoEvents
Loop
By the way, did you notice, that creation of MSHTML.HTMLDocument in IE6, takes much more time than it was for IE5.x?
Originally posted by: Stanley
pNewDoc-gt;get_body(&pBody);
Must be a typo. Thanks!
Reply