It seems that firefox doesn't mind the gap but ie does. The only solution I can think of is to give the ul a background colour so that the focus is kept on the list.
I've just found out that if you specify a a background image then the focus remains on the list. The image doesn't even have to exist.
It doesn't seem to cause any problems.