Yes, the the images tag like <img src=".."> get parsed correctly. but problem comes only when image tag is self ending like <img ... />.
If it's jdk html parser feature then I think this problem must be coming for all other tags that are self ending (I had not tested this one). Is there any way we can rectify this problem... ? rajendra ----- Original Message ----- From: "Stuart Belden" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 07, 2003 6:58 AM Subject: Re: How to handle self-ending Tags in HTMLRewriter? > It is probably a feature of the jdk html parser. Do image tags that end like <img src=".." > get parsed correctly? > > >>> [EMAIL PROTECTED] 11/05/03 02:19PM >>> > Hi, > > Right now I'm using Websurf Portlet which uses HTMLRewriter to rewrite the urls so that they will be displayed in given Portlet window. > > Websurf Portlet works just fine. But I have some other issue. > If the url which I'm fetching has self-ending tags > for eg. <img src="/images/url.gif" /> > In this case, the rewritten url contains one more closing bracket ">" so in after rewriting url, the resulting image tag looks like <img src="/images/url.gif" />> > > Since my image tags carry url links with them, this extra closing tag gets visible. After debuggin' thru code found that in case of such tags only handleStartTag() gets called. And another thing that I noted is once parser finds / during processing, parser immediately puts the closing bracket itself. > > Can anybody pls guide me in how to set the HTMLRewriter so that it will handle such self-ending tags in correct way to avoid appending of extra closing brackets ? > > thanks, > j > > > --------------------------------- > Do you Yahoo!? > Protect your identity with Yahoo! Mail AddressGuard > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
