wbhtml: add script and style doctests
override close() to handle open <script> and <style> tags by forcing an end tag,
otherwise parser does not process the remainder