Anyone noticed the HTML5 articles appearing at the HTML5 Development Center at HTML Goodies ? Not only am I seeing some good content, but I also see that they are supporting IE9 site pinning. Not to step over the valuable articles there, I looked into their site pinning implementation and there are several lessons in their effort.
HTML Goodies Jump List Menu
Here’s their jump list menu for Windows 7 users:
HTML Goodies META tag’s
For reference, I’ve provided a snippet of their code below:
Static and Dynamic Jump Lists
Nothing earth shattering here, but I tell folks all the time: anyone can throw out a static jump list, but making the site more interactive will improve your customer retention – and you do that with dynamic jump lists and notifications. I believe that IE9 consumers will be the most valuable consumers to a site – if a site has a valued business proposition and creates an appropriate experience for the consumer through site pinning. But the site has to do its part. My soap box: simple experiences and low-valued content do not retain the consumer – so build something cool and engaging. It’s a win with IE9 consumers!
Semicolon in the static meta URL
If you’ve looked at the syntax for a static jump list, then you know that the format for building a static item is:
The content entry communicates 3 values: menu item text in name, the URL to jump to via action, and the icon to show. These fields are delimited by a semicolon. Easy enough!
But, what to do if you have semicolons in your URL? Notice what HTML Goodies did – just replace the semicolon with %3B, and problem solved. Note their code in lines 7, 8, and 10. (Thanks to Justin Posey and Brandon Satrom for this learning.)
Space in the static meta
Nothing note worthy here, but I haven’t left spaces around the proper field delimiter (semicolon) as in line 7 of the Html Goodies code. Just making a note that this was evidently valid syntax. I had no idea.
Another angle that caught my by surprise: when looking at their menu in the F12 Developer Tools on a static item that is broken across multiple lines (as in the semicolon example above), it shows the content attribute as one line, but with spaces in between the delimited string
I know that the MSDN doc’s talk about separators or dividers (my term) in the jump list menu. As you might notice in the HTML Goodies menu above, they have these dividers in the middle of the static jump list (what the UI exposes as the Tasks section). But this is the first production usage of the msapplication-task-separator that I’ve seen. Note line9 in the HTML Goodies sample above.
Got my curiosity going, so in my playing on my machine, here are few other pointers about this item:
- Using a separator does not take away from your limit of 5 static items.
- Back to back separator’s result in one divider in the menu.
- Multiple separator’s require a unique value in the content attribute.
More explanation here on MSDN.
StartUrl Pointing to a Page
In most cases, I see msapplication-starturl pointing to a folder. (I’ve blogged about the issues with this entry, so assuming you know those facts already.) But, in the case of HTML Goodies, they point to a page (see line 5 in their code above), and this is definitely acceptable. The path is in there, and it has the trailing slash already.
Thanks for stopping by again. Hoping that someone learns from these observations. I document them so my old mind won’t lose them.
Also, check out the content on HTML Goodies. Lots of good stuff there. I’m enjoying the HTML5 page. And you should pin it too!