Smalltalk/X WebserverDocumentation of class 'HTML::HTMLParser': | ||||||
Class: HTMLParser (in HTML)Inheritance:Object | +--HTML::HTMLParser
Description:Instances of this class are used to read HTML documents and build a tree of HTML::Element objects. Notice: this is a newer and better version of the (old) parser found in libhtml. Due to the space limitations at the time, the old parser was written, the old parser used a much simpler html model (simple linked list), which is harder to process later. Please (try to) use this one for new projects. IMPORTANT: textScannedSoFar is in the characterEncoding of the input data. Conversion takes place when a textBlock is finished! Class protocol:initialization
Instance protocol:accessing
|
') printString = ((HTMLParser new) parseText_new:'
') printString ) self assert:( ((HTMLParser new) parseText_old:'
') printString = ((HTMLParser new) parseText_new:'
') printString ) self assert:( ((HTMLParser new) parseText_old:'
') printString = ((HTMLParser new) parseText_new:'
') printString ) self assert:( ((HTMLParser new) parseText_old:'
') printString = ((HTMLParser new) parseText_new:'
') printString ) self assert:( ((HTMLParser new) parseText_old:'
') printString = ((HTMLParser new) parseText_new:'
') printString ) self assert:( ((HTMLParser new) parseText_old:'
') printString = ((HTMLParser new) parseText_new:'
') printString ) self assert:( ((HTMLParser new) parseText_old:'
') printString = ((HTMLParser new) parseText_new:'
') printString ) self assert:( ((HTMLParser new) parseText_old:'
') printString = ((HTMLParser new) parseText_new:'
') printString ) self assert:( ((HTMLParser new) parseText_old:'
') printString = ((HTMLParser new) parseText_new:'
') printString ) self assert:( ((HTMLParser new) parseText_old:'
') printString = ((HTMLParser new) parseText_new:'
') printString ) self assert:( ((HTMLParser new) parseText_old:'
') printString = ((HTMLParser new) parseText_new:'
') printString ) self assert:( ((HTMLParser new) parseText_old:'
') printString = ((HTMLParser new) parseText_new:'
') printString ) self assert:( ((HTMLParser new) parseText_old:'
') printString = ((HTMLParser new) parseText_new:'
') printString ) self assert:( ((HTMLParser new) parseText_old:'
') printString = ((HTMLParser new) parseText_new:'
') printString ) self assert:( ((HTMLParser new) parseText_old:'
') printString = ((HTMLParser new) parseText_new:'
') printString ) self assert:( ((HTMLParser new) parseText_old:'
') printString = ((HTMLParser new) parseText_new:'
') printString ) self assert:( ((HTMLParser new) parseText_old:'
') printString = ((HTMLParser new) parseText_new:'
') printString ) self assert:( ((HTMLParser new) parseText_old:'
') printString = ((HTMLParser new) parseText_new:'
') printString ) self assert:( ((HTMLParser new) parseText_old:'
') printString = ((HTMLParser new) parseText_new:'
') printString ) self assert:( ((HTMLParser new) parseText_old:c'') printString = ((HTMLParser new) parseText_new:c'') printString ) self assert:( ((HTMLParser new) parseText_old:c'
\nI''m ¬it;\n\nI tell you-->') printString = ((HTMLParser new) parseText_new:c'') printString ) self assert:( ((HTMLParser new) parseText_old:c'') printString = ((HTMLParser new) parseText_new:c'') printString ) old version is buggy: ((HTMLParser new) parseText_old:'') printString ((HTMLParser new) parseText_new:' ') printString ((HTMLParser new) parseText_old:('../../doc/online/english/TOP.html' asFilename contentsOfEntireFile asString)) = ((HTMLParser new) parseText_new:('../../doc/online/english/TOP.html' asFilename contentsOfEntireFile asString)) ((HTMLParser new) parseText_new:('../../doc/online/english/TOP.html' asFilename readStream)) printString = ((HTMLParser new) parseText_old:('../../doc/online/english/TOP.html' asFilename readStream)) printString DiffTextView openOn:((HTMLParser new) parseText_new:('../../doc/online/english/TOP.html' asFilename readStream)) printString and:((HTMLParser new) parseText_old:('../../doc/online/english/TOP.html' asFilename readStream)) printString. DiffTextView openOn:((HTMLParser new) parseText_new:('../../doc/online/english/programming/viewintro.html' asFilename readStream)) printString and:((HTMLParser new) parseText_old:('../../doc/online/english/programming/viewintro.html' asFilename readStream)) printString.
Usage example(s):
|
Usage example(s):
| ||||||||
ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 04:27:29 GMT |