Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
HtmlDocument
Last updated at 7:12 am UTC on 16 September 2017
Note: This class is not available in Squeak 5.1 but it has been included again into 6.0a, category: 'Etoys-Squeakland-Network-HTML-Parser Entities'

Subclass of HtmlEntity.

An HtmlDocument object represents an object tree of a HTML document. It is created by the class HtmlParser.

An HtmlDocument object has two sub-entities: a HtmlHead object and a HtmlBody object.

To get all anchors a document contains, create the following method:

allAnchors

| a |

a := Set new.
self allSubentitiesDo: [ :e | e class == HtmlAnchor
ifTrue: [a add: e]].
^a