xhtml: fix handling script/style elements in a block element (div, p, ...)