Re: [Htmlparser-user] Image Tag anomolies
Brought to you by:
derrickoswald
From: Derrick O. <Der...@Ro...> - 2006-02-18 20:06:24
|
Ryan, There is no setter for the ids. You would instead subclass it as you did and override getIds() and getEnders() to return both names -- it only considers uppercase BTW. Then when you register your tag with the PrototypicalNodeFactory, objects of your class will be returned for both <IMG and <IMAGE tags, since the LinkTag registration will be overwritten. Derrick Ryan Smith wrote: > I have noticed that some HTML authors/HTML Editors are using <image > src=".... tags instead of the standard <IMG src=".... tags > I extended the ImageTag class to create a MyImageTag class but that is > ugly, > Is there s convenient way to add strings to the ImageTag's mIds array? > I would like to add "IMAGE", "Image", and "image" to the list of valid > ImageTag identifiers. > is there like a setter or some other way i can add tag ids? Thanks a > lot. > > -Ryan J. Smith > Live Data Group > Software Developer > > |