Results 1 to 5 of 5
  1. #1
    Newbie
    Join Date
    February 10th, 2005
    Posts
    28
    Bad HTML code from where?
    Does Amazon insert HTML code, font data, etc., in the data it sends?

    I have removed all instances of font tags from my code, templates, .fmt files and still when I load this:

    <!--#include virtual="/cgi-bin/ae.pl?ssi&type=browse&mode=12925321"-->

    I get this:

    <p><font face=Verdana>Browse <B>Dogs</B></font></p><table cellspacing=0 cellpadding=0 width=100% border=0><tr valign=top>

    ....etc.,

    It's difficult creating standards-compliant code when the raw data appears to have deprecated, improperly formatted tags in there.

    Thanks.

  2. #2
    ABW Ambassador cusimano's Avatar
    Join Date
    January 18th, 2005
    Location
    Toronto, Canada
    Posts
    1,369
    The particular font tag you mention is output on browse index pages. It is hard-coded in AE (it is not part of the formatting library).

    AE outputs valid HTML; and in particular, the HTML fragment you mention is valid HTML. What part of it do you consider improperly formatted?

    Yours truly,
    Cusimano.Com Corporation
    per: David Cusimano

  3. #3
    Newbie
    Join Date
    February 10th, 2005
    Posts
    28
    >>>What part of it do you consider improperly formatted?

    As per HTML spec. from W3:

    i. attributes are not quoted

    <font face=Verdana>

    should be:

    <font face="Verdana">

    ii. The font tag is deprecated

    iii. mixture of UPPER and lowercase tags:

    <p><font face=Verdana>Browse <B>Dogs</B></font>

    shouild be:

    <p><font face="Verdana">Browse <b>Dogs</b></font>

    (or all uppercase tags)

    Finally, IMO it's generally not a good idea to hard-code formatting instructions into a script that outputs data.

  4. #4
    ABW Ambassador cusimano's Avatar
    Join Date
    January 18th, 2005
    Location
    Toronto, Canada
    Posts
    1,369
    1. Edit ae.ini and set packHtml to no to keep the quotation marks around field values. Web browsers do support no quotation marks around values.

    2. Web browsers do support the font tag.

    3. Web browsers do support uppercase/lowercase tags.

    4. Most of the formatting code is in the formatting library. The blended search results are hard-coded because they totally different than other type of results.

    Yours truly,
    Cusimano.Com Corporation
    per: David Cusimano

  5. #5
    Newbie
    Join Date
    February 10th, 2005
    Posts
    28
    You are correct, but web browser don't define standards. The code may be supported but it remains standards-incompliant.

    http://www.w3.org/.

    http://www.webstandards.org/

  6. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. HTML Code is Correct, Not Getting Leads, Please Help
    By amghawk in forum Commission Junction - CJ
    Replies: 0
    Last Post: January 9th, 2010, 12:49 AM
  2. Question About JS Code vs. HTML
    By Trust in forum PopShops
    Replies: 5
    Last Post: July 10th, 2008, 12:10 AM
  3. How to Do an HTML Redirect Without Bad Consequences
    By Cheesehead in forum Search Engine Optimization
    Replies: 4
    Last Post: November 21st, 2004, 11:59 PM
  4. Generated HTML Code
    By Wallboy in forum Commission Junction - CJ
    Replies: 2
    Last Post: June 17th, 2004, 10:20 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •