{"id":110,"date":"2008-04-29T05:16:18","date_gmt":"2008-04-29T13:16:18","guid":{"rendered":"http:\/\/www.oeconomist.com\/blogs\/daniel\/?p=110"},"modified":"2020-11-26T04:17:22","modified_gmt":"2020-11-26T12:17:22","slug":"nesting-syndrome","status":"publish","type":"post","link":"https:\/\/www.oeconomist.com\/blogs\/daniel\/?p=110","title":{"rendered":"Nesting Syndrome"},"content":{"rendered":"<p>Best practice in <abbr title=\"HyperText Mark-up Language\">HTML<\/abbr> is to put quotations into <code>Q<\/code>&#91;uotation&#93; elements, so that the mark-up looks like this:<\/p> <blockquote><code>Sam growled &lt;q&gt;I asked him, and he said &lt;q&gt;I swear on me mother's grave!&lt;\/q&gt;&lt;\/q&gt;<\/code><\/blockquote> <p>rather than like this:<\/p> <blockquote><code>Sam growled \u201cI asked him, and he said \u2018I swear on me mother's grave!\u2019\u201d<\/code><\/blockquote>  <p>Note that it is possible to have one <code>Q<\/code>&#91;uotation&#93; element inside of another &mdash; a good style-sheet will handle that.<\/p> <p>Unfortunately, the <a href=\"http:\/\/wordpress.org\/\">WordPress<\/a> editor seems to have been written by a programmer who believes that <code>Q<\/code>&#91;uotation&#93; elements must not nest, and the editor tries to <em>fix<\/em> things when it encounters nesting, by closing the outer element when it comes to the inner element.  In the case of my previous entry, it then discarded the original closing <q><code>&lt;\/q&gt;<\/code><\/q> tag of the outer element, but (who knows why?) added an extra <q><code>&lt;\/div&gt;<\/code><\/q> at the end of the entry.  The appearance of the whole page went to H_ll.<\/p> <p>I fixed things by by-passing the <a href=\"http:\/\/wordpress.org\/\">WordPress<\/a> software, and editing the &#39;blog's underlying <abbr title=\"database\">dB<\/abbr> with <a href=\"http:\/\/www.phpmyadmin.net\/\">phpMyAdmin<\/a>.<\/p> <p>I've filed a bug report.<\/p> <p>(I still need to arrive at a good specification of the list-bug that plagues <a href=\"?p=88\">my entry on installing Open Office<\/a>.)<\/p>","protected":false},"excerpt":{"rendered":"Best practice in HTML is to put quotations into Q&#91;uotation&#93; elements, so that the mark-up looks like this: Sam growled &lt;q&gt;I asked him, and he said &lt;q&gt;I swear on me mother's grave!&lt;\/q&gt;&lt;\/q&gt; rather than like this: Sam growled \u201cI asked him, and he said \u2018I swear on me mother's grave!\u2019\u201d Note that it is possible [&hellip;]","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[7,69,5,4],"tags":[51,145,146,459,13],"class_list":["post-110","post","type-post","status-publish","format-standard","hentry","category-blog-meta","category-information-technology","category-personal","category-public","tag-blogs","tag-bugs","tag-html","tag-software","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/www.oeconomist.com\/blogs\/daniel\/index.php?rest_route=\/wp\/v2\/posts\/110","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.oeconomist.com\/blogs\/daniel\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.oeconomist.com\/blogs\/daniel\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.oeconomist.com\/blogs\/daniel\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.oeconomist.com\/blogs\/daniel\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=110"}],"version-history":[{"count":2,"href":"https:\/\/www.oeconomist.com\/blogs\/daniel\/index.php?rest_route=\/wp\/v2\/posts\/110\/revisions"}],"predecessor-version":[{"id":11554,"href":"https:\/\/www.oeconomist.com\/blogs\/daniel\/index.php?rest_route=\/wp\/v2\/posts\/110\/revisions\/11554"}],"wp:attachment":[{"href":"https:\/\/www.oeconomist.com\/blogs\/daniel\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=110"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.oeconomist.com\/blogs\/daniel\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=110"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.oeconomist.com\/blogs\/daniel\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=110"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}