[squeak-dev] Re: HTML parser (again) (again)
Sean P. DeNigris
sean at clipperadams.com
Fri Oct 29 17:19:55 UTC 2010
Peter Kenny wrote:
>
> It will parse a string of HTML from your system, using the on: method, but
> this falls over if the HTML is a downloaded web page including a reference
> to CSS on the web. There may be a way round this, but I haven't found it.
>
Of course this is what i needed to use it for, lol.
Peter Kenny wrote:
>
> b. Having loaded the parser, find the method HtmlDOMNode>>parseContents:
> and edit it as follows: find the two occurrences of the expression ('/',
> Character separators) and change each of them to (Character separators,
> '/').
>
This worked, and I parsed google.com in 4.1. So I can't use it because of
on: string, but it's nice to know it's an option in the future.
Peter Kenny wrote:
>
> if you have written a package, you know how to use it, and writing
> detailed instructions for someone else is a pain.
>
That's why I said that if one doesn't have time to do it properly, throw a
paragraph into an Info package class comment. Compared to the cost of
developing the library, this is negligible. It probably takes longer to
create the project on SqS and upload :)
Thanks.
Sean
--
View this message in context: http://forum.world.st/HTML-parser-again-again-tp3018595p3019488.html
Sent from the Squeak - Dev mailing list archive at Nabble.com.
More information about the Squeak-dev
mailing list
|