Div is not allowed to be in the body of span, I suppose you can change the span with id "expand" to a div to solve this.