Theme-Mentor
Theme-Mentor copied to clipboard
No wp_footer or closing body tag found at file footer.php
Theme mentor reports no closing body tag as error, while it's perfectly valid with HTML 5.
W3C Html specification says: "A body element’s end tag may be omitted if the body element is not immediately followed by a comment and the element is either not empty or its start tag has not been omitted."
http://www.w3.org/TR/html-markup/body.html#body
Similar situation occure when there is no closing head tag.
See #1.
@toscho Right. This is similar issue but not exactly the same.
Thing is that test shouldn't look for 'head' or 'body' closing tags at all.
They are required in html4 output but there is no way to determine if markup rendered is html4 or html5.
In fact wordpress could render pages as 100% SVG - there is no technical limitation. And in this context checking html tags is just pointless.
So, in my opinion this test should be removed completely.