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. ;)
hehe, can’t believe you found the same bug as me on almost the same day.
I’ve been doing the whole ‘code search’ through the source as well, and it’s bugging the hell out of me.
(And no way on Earth was I going to take the easy option and fire up IE!)
Download the OSX version of Mozilla and try that. I know it is better than Safari for working in Typepad. (You get all the little formatting and link buttons that don’t show up in Safari.)
Please view my Safari problem page.
http://www.planetplugged.net/crubenstein/portfolio/about/photography.html
The URL I placed in the field contains an IFRAME on the right side of the page and when viewed in Safari, the green strip at the bottom of the page with my telephone and email disappears. I have another page that was made with the same template, minus the IFRAME and the address is
http://www.planetplugged.net/crubenstein/portfolio/about/
It seems that Safari is ignoring all the code below the IFRAME tag. Can anyone help. I am a designer looking for work and I am sure that many of my potential employers will be on OSX, viewing my page with Safari…is there any hope or should I redesign?
Hey there– you wrote this a while back, but I’m wondering if you ever found a solution? I’m having the same problem on my site. Thanks! -irja.
Actually, that seems to have been fixed with one of the more recent updates to Safari. I noticed a few weeks ago that it was working for me, and I’ve just checked both the Amazon tool and Chris’ page that he linked to above, and both are now displaying the way they should be.
I’m currently using Safari 1.2.4 (v125.12) on Mac OS X 10.3.7. If you’re still running an older version of Safari, you might want to check Software Update and make sure you’re up to date on all the recent patches.