When I try to execute
( HtmlValidator onUrl: 'http://en.wikipedia.org/wiki/Pharo' asUrl ) dom.

I get an error:
ByteString(Object)>>doesNotUnderstand: #url
HtmlValidator>>document
HtmlValidator>>content
HtmlValidator>>parse
HtmlValidator>>dom
UndefinedObject>>DoIt
Compiler>>evaluate:in:to:notifying:ifFail:logged:
[] in TextMorphForShoutEditor(ParagraphEditor)>>evaluateSelection
BlockClosure>>on:do:
TextMorphForShoutEditor(ParagraphEditor)>>evaluateSelection
TextMorphForShoutEditor(ParagraphEditor)>>doIt
[] in TextMorphForShoutEditor(ParagraphEditor)>>doIt:
TextMorphForShoutEditor(ParagraphEditor)>>terminateAndInitializeAround:
TextMorphForShoutEditor(ParagraphEditor)>>doIt:
TextMorphForShoutEditor(ParagraphEditor)>>dispatchOnKeyEvent:with:
TextMorphForShoutEditor(TextMorphEditor)>>dispatchOnKeyEvent:with:
TextMorphForShoutEditor(ParagraphEditor)>>keystroke:
TextMorphForShoutEditor(TextMorphEditor)>>keystroke:
[] in [] in TextMorphForShout(TextMorph)>>keyStroke:
TextMorphForShout(TextMorph)>>handleInteraction:

The failing place is:
document
    "Answer the value of document"

    document isNil ifTrue:
    [
        url isNil
            ifTrue: [nil]
            ifFalse:
            [
                document := self loader documentForUrl: self url.
                loader url: document url.
            ]
    ].
    ^document

Looks like "document url" trips on url.

I am new to ST, how can I find what's missing?
Thank you,
Andrew


On Sat, May 8, 2010 at 5:12 PM, Hernán Morales Durand <
[email protected]> wrote:

>
> http://lists.squeakfoundation.org/pipermail/beginners/2010-April/006986.html
>
> 2010/5/7 Andrei Stebakov <[email protected]>:
> > Hi
> >
> > Sent this message to the Pharo-users group, but no response for a couple
> of
> > days, so trying it here ;)
> >
> > I have a simple task of parsing some html content in Pharo (loading an
> html
> > page using HTTPSocket and retrieving useful info from it).
> > Having browsed for an html parser in my current one-click Pharo 1.0
> image, I
> > couldn't find one.
> > How do I find/download a (the) HTML parser?
> >
> > What's the general routine of discovering and installing packages in
> Pharo?
> > I believe in Squeak there was a menu to explore and download packages, I
> > couldn't find it in Pharo though.
> >
> >
> > Thank you,
> > Andrei
> >
> > _______________________________________________
> > Pharo-project mailing list
> > [email protected]
> > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
> >
>
> _______________________________________________
> Pharo-project mailing list
> [email protected]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to