I’ve been noticing a bug in Safari over the past few days, and finally figured it was worth writing up and seeing if this is a “just me” thing or not.
I just recently started using the Amazon Associates Build-A-Link tool to create the product boxes for certain items that I talk about (like the one for Season 7 of Deep Space Nine in this morning’s post). Unfortunately, once I find the item I want to create the product box for, when Amazon sends me the page that is supposed to give me the appropriate HTML code to copy and paste into my entry, the textarea
field is blank. In order to get the code, I’ve either been using Internet Explorer (shudder) or just viewing the source code for the Amazon page and digging through until I find the code snippet in question.
The code in question is found about 80% of the way down the source code. Here’s the relevant section of what Amazon sends, with what I should be seeing in that blank box on line six:
<tr>
<td>
<form name="snippet_form">
<center>
<textarea name="snippet" rows="7" cols="35">
<iframe marginwidth="0" marginheight="0" width="120" height="240" scrolling="no" frameborder="0" src="http://rcm.amazon.com/e/cm?o=1&l=as1&f=ifr&t=djwudicom-20&p=8&asins=B00008KA57&IS2=1<1=_blank"><MAP NAME="boxmap-p8"><AREA SHAPE="RECT" COORDS="14, 200, 103, 207" HREF="http://rcm.amazon.com/e/cm/privacy-policy.html?o=1" ><AREA COORDS="0,0,10000,10000" HREF="http://www.amazon.com/exec/obidos/redirect-home/djwudicom-20" ></MAP><img src="http://rcm-images.amazon.com/images/G/01/rcm/120x240.gif" width="120" height="240" border="0" usemap="#boxmap-p8" alt="Shop at Amazon.com"></iframe>
</textarea>
<br />
<input type="image" style="margin: 3px;" src=http://g-images.amazon.com/images/G/01/associates/build-links/highlight_html.gif name="highlight" onClick="javascript:this.form.snippet.focus();this.form.snippet.select(); return false;"/>
<p style="margin: 5px;"><font face="Verdana, Arial, Helvetica, sans-serif" size="-2">Paste all the HTML into your Web site's HTML.<br /> Note: your tracking ID, <strong>djwudicom-20</strong>, is already embedded in the HTML.</font></p>
</center>
</form>
</td>
</tr>
My immediate guess is that because the code ends up looking as if it’s requesting an iframe
inside a textarea
, Safari is just discarding what it sees as “bad code”. Unfortunately, as placing code inside a textarea
is a fairly common way to avoid issues with long text strings that muck up a page’s layout (such as, well, this very post), that behavior effectively breaks the Amazon tool.
I’ve submitted a bug through Safari’s bug reporting feature, but I figured sending a TrackBack ping to Dave of Surfin’ Safari couldn’t hurt, either. ;)