Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Help with JavaContentSink.cpp

Help
ppsb
2007-09-10
2013-04-17
  • ppsb
    ppsb
    2007-09-10

    Hi,

    First of all, I want to thank the project team for MozillaHtmlParser. It is a powerful and easy way of exposing underlying htmlparser.

    I want to print out the parsed items passed to JavaContentSink::callback() function.

    I am trying to parse following html contents -
    <html> <body> <script language="JavaScript"> var d = new Date(); </script></body></html>

    Callback function receives "var d = " only, when it reaches the script body. Also sometimes document.write("...abc...") is returned truncated as document.write(" and sometimes it is correctly returned with quotes.

    I am new to Mozilla sourcebase and don't know how to fix this. Any ideas how to fix this and consistently get all the items in callback function?

    thanks
    ppsb
     

     
    • ppsb
      ppsb
      2007-09-11

      my mistake. i just tested the original java based code, and everything seems to be fine.
      my changes must have broken something.

      thanks
      ppsb