{"id":5365,"date":"2010-12-14T03:05:02","date_gmt":"2010-12-14T02:05:02","guid":{"rendered":"http:\/\/www.chipwreck.de\/blog\/?p=5365"},"modified":"2016-12-31T02:24:24","modified_gmt":"2016-12-31T01:24:24","slug":"using-w3c-unicorn-validator-for-coda-plugin","status":"publish","type":"post","link":"https:\/\/www.chipwreck.de\/blog\/2010\/12\/14\/using-w3c-unicorn-validator-for-coda-plugin\/","title":{"rendered":"Using W3C Unicorn validator (for Coda Plugin)"},"content":{"rendered":"<h3>What is it?<\/h3>\n<p>The W3C Unicorn Validator is a combined HTML\/CSS\/Feed\/Mobile-Validator. You can use it online <a href=\"http:\/\/validator.w3.org\/unicorn\/\" class=\"external\">validator.w3.org\/unicorn<\/a> of course, but if you work with Coda (and my PHP &#038; Web-plugin) you can use it directly with your sourcecode.<!--more--><\/p>\n<h3>Why use the Unicorn validator?<\/h3>\n<p>The great advantage of the Unicorn validator is that embedded stylesheets are being validated also. Mobile and feed validation currently do not work with uploaded files &#8211; here you should use the validator in the browser.<\/p>\n<h3>How to use with the Coda-plugin<\/h3>\n<p>To use the Unicorn validator instead of the HTML validator you simply have to change two values in the preferences.<\/p>\n<p>Simply go to Plug-ins\/PHP &#038; Web Toolkit\/Preferences, choose &#8220;Advanced&#8221; and change the values for the HTML validator as follows:<\/p>\n<pre>\r\nURL: http:\/\/validator.w3.org\/unicorn\/check\r\nUpload fieldname: ucn_file\r\n<\/pre>\n<p>Click in another field and close the preferences window, it should look like this:<br \/>\n<br \/>\n<a href=\"https:\/\/www.chipwreck.de\/blog\/wp-content\/uploads\/2010\/12\/unicorn-1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.chipwreck.de\/blog\/wp-content\/uploads\/2010\/12\/unicorn-1-107x120.png\" alt=\"Unicorn validator settings\" title=\"Unicorn validator settings\" width=\"107\" height=\"120\" class=\"alignnone size-thumbnail wp-image-5369\" srcset=\"https:\/\/www.chipwreck.de\/blog\/wp-content\/uploads\/2010\/12\/unicorn-1-107x120.png 107w, https:\/\/www.chipwreck.de\/blog\/wp-content\/uploads\/2010\/12\/unicorn-1-269x300.png 269w, https:\/\/www.chipwreck.de\/blog\/wp-content\/uploads\/2010\/12\/unicorn-1.png 517w\" sizes=\"auto, (max-width: 107px) 100vw, 107px\" \/><\/a>\n<\/p>\n<p>Now the command &#8220;Validate HTML online&#8221; uses the Unicorn validator.<\/p>\n<p><\/p>\n<p><em>Note that the output is, well, ugly. This is no surprise, since the result is a webpage and currently it&#8217;s simply being displayed as HTML without CSS and images. And this is due to the fact that the W3C online service is meant to run in the browser &#8211; and has no webservice API at the moment. This will improve in one of the next versions of the plugin.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is it? The W3C Unicorn Validator is a combined HTML\/CSS\/Feed\/Mobile-Validator. You can use it online validator.w3.org\/unicorn of course, but if you work with Coda (and my PHP &#038; Web-plugin) you can use it directly with your sourcecode.<\/p>\n","protected":false},"author":2,"featured_media":5369,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[20,8],"tags":[82,41,42],"class_list":["post-5365","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-coda","category-webdevelopment","tag-coda","tag-validation","tag-w3c"],"jetpack_featured_media_url":"https:\/\/www.chipwreck.de\/blog\/wp-content\/uploads\/2010\/12\/unicorn-1.png","jetpack_shortlink":"https:\/\/wp.me\/paPEN-1ox","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.chipwreck.de\/blog\/wp-json\/wp\/v2\/posts\/5365","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chipwreck.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chipwreck.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chipwreck.de\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chipwreck.de\/blog\/wp-json\/wp\/v2\/comments?post=5365"}],"version-history":[{"count":0,"href":"https:\/\/www.chipwreck.de\/blog\/wp-json\/wp\/v2\/posts\/5365\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.chipwreck.de\/blog\/wp-json\/wp\/v2\/media\/5369"}],"wp:attachment":[{"href":"https:\/\/www.chipwreck.de\/blog\/wp-json\/wp\/v2\/media?parent=5365"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chipwreck.de\/blog\/wp-json\/wp\/v2\/categories?post=5365"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chipwreck.de\/blog\/wp-json\/wp\/v2\/tags?post=5365"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}