In fact they are all the same. When you pass an html string, it opens a new converter (with ref_count=1), and then it just points the child nodes to that converter (and incs the ref_counter). So I'm only storing a pointer to the converter with a ref. counter associated. This is needed because you can access child nodes directly. But I still need to think more on the subject.

Nuno

----- Original Message -----
Do you need a separate converter per node? Can they all be different for some reason?

-Andrei

On Nov 1, 2006, at 10:28 AM, Nuno Lopes wrote:

nlopess Wed Nov  1 18:28:37 2006 UTC

  Modified files:
    /php-src/ext/tidy tidy.c
  Log:
  start converting the tidy and tidyNode objects to be Unicode aware
I added a converter pointer per node, so that the text can be converted to unicode when requested this commit also breaks a few tests in unicode mode, but it isnt scary at this time :P

--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to