RE: [Htmlparser-developer] CompositeTagScanner - Some comments
Brought to you by:
derrickoswald
From: <dha...@or...> - 2003-05-13 03:41:54
|
Dhaval Udani wrote: >> A STARTERS array would be useful to tell the scanner that when a particular >> start tag(say another OPTION tag in this case), as opposed to a end tag denoted >> by ENDERS, is encountered also perform end tag correction. I hope I've been >> able to explain the need more clearly. > I still don't follow why you would need a STARTERS array - if you encounter > another OPTION tag, the behavior is determined by the boolean variable - to > add or not to add children, and correction is done automatically. Or am I > missing something ? I put OPTION tag as an example probably a wrong one. Say something like this is there: <P> blah blah blah <TABLE> Now what I am saying that in the P scanner, if TABLE is provided as a member of the STARTERS array then a </P> will be put up before the beginning of <TABLE> tag. In essence the way the ENDERS array looks for a tag of type EndTag, similarly STARTERS array would look for a start tag of the type defined. I hope I've been clearer. Do let me know. Dhaval |