Welcome! » Log In » Create A New Profile

[BogusBug] IMG inside TD

Posted by laacz 
[BogusBug] IMG inside TD
April 26, 2007 10:43AM

Hello!

I encountered very interesting behavior (which, in fact, took some time to discover). If we try to parse following HTML:

<TABLE><TR><TD> <IMG style="MARGIN-TOP: 15px; DISPLAY: inline-block; MARGIN-LEFT: 0px" height=109 src="/mail/f/INBOX/98/part/1.3?inline" width=140 border=0></A></p></TD></TR></TABLE>

IMG element is removed completely. Why? Purifier configuration is as follows:

$purifier_config = HTMLPurifier_Config::createDefault(); $purifier_config->set('Core', 'EscapeInvalidTags', false); $purifier_config->set('URI', 'Host', 'amigo.lv'); $purifier_config->set('Core', 'RemoveInvalidImg', false);

Edited 2 time(s). Last edit at 04/29/2007 05:54PM by Ambush Commander.

Re: IMG inside TD
April 27, 2007 10:57AM

According to the demo, the img tag is being preserved. Try removing all of your configuration and trying again? (I will research why that particular combo may be causing the images to be removed when I get back home).

Re: IMG inside TD
April 27, 2007 11:15AM

Thank you. That did help.

Re: [Bug] IMG inside TD
April 29, 2007 08:54PM

I was unable to reproduce the bug, although I discovered a different bug in the process.

Sorry, you do not have permission to post/reply in this forum.