[yunqa.de] Problem with Background property and DIHtmlParser

  • From: Todd Cary <todd@xxxxxxxxxxxxxxxxxx>
  • To: yunqa@xxxxxxxxxxxxx
  • Date: Thu, 01 Apr 2010 10:56:11 -0700

I have the following set in the Constructor for TDIAbstractHtmlMimeMessage:

  { Set up the Links Plugin. }
FLinksPlugin := TDIHtmlLinksPlugin.Create{$IFNDEF DI_No_Unicode_Component}(Self){$ENDIF};
  FLinksPlugin.BASE_href := True;
  FLinksPlugin.Link_BODY_background := True;
  FLinksPlugin.Link_IMG_lowsrc := True;
  FLinksPlugin.Link_IMG_src := True;
  FLinksPlugin.Link_IMG_usemap := True;
  FLinksPlugin.Link_LINK_href := True;
  FLinksPlugin.Link_SCRIPT_src := True;
  FLinksPlugin.Link_TABLE_background := True;
  FLinksPlugin.Link_TD_background := True;
  FLinksPlugin.Link_TH_background := True;
  FLinksPlugin.Link_TR_background := True;
  FLinksPlugin.OnLink := OnHtmlLinksPluginLink;
  FLinksPlugin.HtmlParser := FHtmlParser;

In the HTML code,

*<img style="width: 900px; height: 84px;" alt="Header image" src="images/site_header.jpg">*

the site_header.jpg image is replaced as expected.  However, with

*<td width="908" height="500" valign="top" background="images/background.jpg" bgcolor="#FFFFFF">*

the background.jpg is not replaced.

Could I be missing something elsewhere in the code? Since I first acquired the GREAT library, I have only had <img> tags; not tags with the "background" property.

Thank you for your assistance.

Todd

--
Ariste Software
Petaluma, CA 94952

http://www.toddcary.com/aristephotography/

Other related posts: