How can I modify currently displayed DOM document? I tried it this way, but without any success:
- Code: Select all
wxDOMDocument doc1 = m_about->GetWebControl()->GetDOMDocument();
wxDOMElement el1 = doc1.CreateElement( "p" );
el1.SetAttribute( "class", "gray" );
wxDOMText txt1 = doc1.CreateTextNode( "This is a sample text!" );
el1.AppendChild( doc1 );
doc1.AppendChild( el1 );
Is it possible?
Thanks,
Ilya