{"id":391,"date":"2006-02-18T18:28:42","date_gmt":"2006-02-18T18:28:42","guid":{"rendered":"http:\/\/www.stevepugh.net\/VTT\/?p=391"},"modified":"2006-02-18T18:28:42","modified_gmt":"2006-02-18T18:28:42","slug":"techie-post-feel-free-to-skip","status":"publish","type":"post","link":"https:\/\/stevepugh.net\/VTT\/2006\/02\/techie-post-feel-free-to-skip\/","title":{"rendered":"Techie post, feel free to skip"},"content":{"rendered":"<p>A certain site checking service (who have managed to bamboozle a large number of public sector bodies into paying attention to their &#8216;league tables&#8217;) complains about <a href=\"http:\/\/www.stevepugh.net\/VTT\/\">Very True Things<\/a> because it claims that &#8211;<\/p>\n<blockquote>\n<pre>Tag 'del' may not come under tags 'p' or 'div'\nTag 'ins' may not come under tags 'p' or 'div'<\/pre>\n<\/blockquote>\n<p>What&#8217;s more it claims that these problems make the page invalid and that its validity checks are carried out in accordance with the HTML 4.01 specification.<\/p>\n<p>Very True Things is XHTML 1.0 not HTML 4.01. What&#8217;s more it did at the time of the test contain a deprecated attribute which whilst picked up by said checker was not listed as a validation fail, despite the fact that I use a Strict doctype. Any system that claims to report on validity should at least check the doctype and apply the appropriate rules.<\/p>\n<p>More importantly, <code>ins<\/code> and <code>del<\/code>  are very odd elements.<br \/>As the XHTML DTD says:<\/p>\n<blockquote cite=\"http:\/\/www.w3.org\/TR\/xhtml1\/dtds.html\">\n<pre><code>&lt;!-- these can occur at block or inline level -->\n&lt;!ENTITY % misc.inline \"ins | del | script\"><\/code><\/pre>\n<\/blockquote>\n<p>The HTML DTD is a little more difficult to read as it relies on an SGMLism not much used in HTML:<\/p>\n<blockquote cite=\"http:\/\/www.w3.org\/TR\/html401\/sgml\/dtd.html\">\n<pre><code>&lt;!ELEMENT BODY O O (%block;|SCRIPT)+ +(INS|DEL) -- document body -->\n\n<\/code><\/pre>\n<\/blockquote>\n<p>But in either case the validator will confirm that <code>ins<\/code> and <code>del<\/code> can appear just about anywhere in the document, and can certainly be used within a <code>p<\/code> and <code>div<\/code> elements.<\/p>\n<p>So next time your client or boss gets hassled by a salesman from this company (<em class=\"rot13\" title=\"ROT13\">fvgr zbefr<\/em>) you can tell that they don&#8217;t know what they&#8217;re talking about and should be ignored.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A certain site checking service (who have managed to bamboozle a large number of public sector bodies into paying attention to their &#8216;league tables&#8217;) complains about Very True Things because it claims that &#8211; Tag &#8216;del&#8217; may not come under tags &#8216;p&#8217; or &#8216;div&#8217; Tag &#8216;ins&#8217; may not come under tags &#8216;p&#8217; or &#8216;div&#8217; What&#8217;s [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[15],"tags":[],"class_list":["post-391","post","type-post","status-publish","format-standard","hentry","category-www"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1fxq5-6j","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/stevepugh.net\/VTT\/wp-json\/wp\/v2\/posts\/391","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stevepugh.net\/VTT\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/stevepugh.net\/VTT\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/stevepugh.net\/VTT\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/stevepugh.net\/VTT\/wp-json\/wp\/v2\/comments?post=391"}],"version-history":[{"count":0,"href":"https:\/\/stevepugh.net\/VTT\/wp-json\/wp\/v2\/posts\/391\/revisions"}],"wp:attachment":[{"href":"https:\/\/stevepugh.net\/VTT\/wp-json\/wp\/v2\/media?parent=391"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stevepugh.net\/VTT\/wp-json\/wp\/v2\/categories?post=391"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stevepugh.net\/VTT\/wp-json\/wp\/v2\/tags?post=391"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}