The Inline view should use fieldset instead of a div 

I think that fieldset must be used instead of div, since only then the following legend is drawn on the border and not below...