Some Improvements on Adblocker

Philipp Hülsdunk philipp_huelsdunk at yahoo.de
Mon Oct 9 19:30:54 BST 2006


Am Montag, 9. Oktober 2006 19:51 schrieb Maksim Orlovich:
> That code is used for XML parsing, not HTML. And, uhm, I would suggest
> that the HTML tokenizer is the worst place to touch for your first
> project...

so I will do this:

void KHTMLPart::write( const QString &str )
{
  if ( str.isNull() )
    return;

  if(d->m_bFirstData) {
      // determine the parse mode
      d->m_doc->setParseMode( DocumentImpl::Strict );
      d->m_bFirstData = false;
  }
  // I will add my code here
  khtml::Tokenizer* t = d->m_doc->tokenizer();
  if(t)
    t->write( str, true );
}

How can I get the full html code? Is there something like KHTMLPart::data?

		
___________________________________________________________ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de





More information about the kfm-devel mailing list