Tidy automatically moves <style> elements from body to head; with show-body-only enabled this means that style elements in the body are discarded. This is a serious loss of functionality: while putting style elements in the body is technically invalid HTML, every CSS-aware browser interprets it without fault, and it is widely used when, for some reason, changing the head is not possible (PHP without output buffering, CMS where the user gets full control over the contents of a div etc). There should be either an option to disable moving style elements to the head, or it should be disabled automatically when show-body-only is enabled.
Version: HTML Tidy for Linux released on 25 March 2009
Log in to post a comment.