Archive for the 'Safari/WebKit' Category

A note about your WordPress blog’s tagline

Tuesday, September 11th, 2007

On the general options pane, there is a field labeled “Tagline”:

Tagline: cd prh && dd if=brain of=blog

The value shown in that field is WRONG WRONG WRONG!

You see, that's actually supposed to be HTML—or at least, such is the implication of the Atom template's use of bloginfo_rss to get the description. The difference between {get_,}bloginfo_rss and {get_,}bloginfo is that the _rss versions call strip_tags to take out any HTML and escape any non-HTML characters, such as &.

That wouldn't be so bad if strip_tags worked properly, but it doesn't—not on this host, at least. It leaves the second & in the above example unescaped. (“OK, I escaped that one. It must be the only one. I'm off to Subway!”)

As if that wasn't bad enough, WordPress doesn't escape the tagline field's value when putting it back into the field the next time you load up the Options pane. (It does if it's plain text, but not if it's HTML. Go figure.) So if you click “Update Options” again, your HTML goes bye-bye. You need to remember to re-escape it every time you save the General Options.

(Given that, maybe it's not supposed to be HTML after all, and the use of bloginfo_rss in the Atom 0.3 template is a bug.)

Want to know how I found this out? Because the RSS reader in Safari 2 (I don't use 3) was critically failing on the Atom feed. It was slurring posts together once it saw that an ampersand was not escaped.

Relevant versions:

  • WordPress 2.1.3
  • PHP 5.1.4 or so (I have no idea what version is actually running the blogs)
  • Safari 2.0.4/419.3

WWDC 2007 session videos are out

Monday, July 30th, 2007

If you attended WWDC, you can head over to ADC on iTunes and see what you missed.

Apple Bug Friday! 48

Friday, March 9th, 2007

I missed a couple of weeks of ABF, so I'm going to run the missed Fridays' bugs today in addition to today's.

This bug is Feed button does not use the standard feed icon. It was filed on 2007-02-16 at 12:27 PST.

(more...)

Report-an-Apple-bug Friday! 25

Friday, April 14th, 2006

This bug is Allow folder menu items in Bookmarks menu to open the Bookmarks view. It was filed on 2006-04-14 at 23:05 PDT.


Summary:

Safari should allow you to click on a folder item in the Bookmarks menu to open the Bookmarks view to that folder.

Steps to Reproduce:

  1. Click on the Bookmarks menu.
  2. Click on any folder item.

Expected Results:

The Bookmarks view opens, with that folder and all its superfolders expanded.

Actual Results:

Nothing happens.

Regression:

None known.

Notes:

None.


Technorati tags: ,

Report-an-Apple-bug Friday! 22

Friday, April 14th, 2006

This bug is Navigation keys don't work in Bookmarks view. It was filed on 2006-04-14 at 22:12 PDT.


Summary:

The page-up, page-down, home, and end keys don't work in Safari's bookmarks view.

Steps to Reproduce:

  1. Choose "Show All Bookmarks" from the Bookmarks menu.
  2. Press page-up, page-down, home, or end, in an attempt to scroll the bookmarks view.

Expected Results:

The view scrolls.

Actual Results:

The view stands fast.

Regression:

None known.

Notes:

None.


Technorati tags: , .

On the Safari shell script exploit

Wednesday, February 22nd, 2006

reading John Gruber's account, I had a couple of ideas on what to do about it.

  1. in Finder, when a file has a custom “Open With” assocation on it, badge the file's icon with the application icon. in this case, it would have the Terminal icon badged onto it.
  2. in Safari, add a new warning when a file contains an “Open With” that points to an application that wouldn't normally handle that type of file. in this case, Terminal does not normally open JFIF files, and this should cause a warning.

discuss.

Safari feed icon, continued

Sunday, January 1st, 2006

Mac OS X Hints has an article on adding the standard feed icon to Safari. Of course, I already created one and put it on my website. I also sent in my own hint linking to my icon; my hint was not accepted.

The Mac OS X Hints post has several mentions of different Safari feed icons in the comments, including me mentioning my own. One problem with the hint's instructions is that the generated TIFF file will not have an alpha channel, leading to the ugly black corners that you see in the screenshot. AFAIK, none of the other renditions have this. Another problem is that it doesn't affect the “Hide” button—when you go to a feed page, the button will change to say “RSS” again.

You should try all the versions, as everybody seems to have a different taste for how the “Hide” button should work. If you can't find one you agree with, feel free to make your own interpretation.

Standard feed icon for Safari

Friday, December 23rd, 2005

Matt Brett recently created a vector-based reproduction of the standard feed icon of Firefox and IE 7. I just created a version of the standard feed icon for Safari, based on his work. Instructions included. Enjoy.