{"id":1619,"date":"2007-06-14T12:01:17","date_gmt":"2007-06-14T15:01:17","guid":{"rendered":"http:\/\/brockerhoff.net\/bb\/viewtopic.php?p=2149"},"modified":"2010-05-08T17:41:59","modified_gmt":"2010-05-08T20:41:59","slug":"re-safari-on-windows","status":"publish","type":"post","link":"https:\/\/brockerhoff.net\/blog\/2007\/06\/14\/re-safari-on-windows\/","title":{"rendered":"Re: Safari on Windows"},"content":{"rendered":"<p>There&#8217;s one new thing on Safari 3 (for the Mac) that I found quite by accident.<\/p>\n<p>Right-click on anything in a browser page and at the end of the normal contextual menu you&#8217;ll see a &#8220;Inspect Element&#8221; item. Selecting that opens a semitransparent &#8220;Web Inspector&#8221; HUD which shows tons of information about the document&#8217;s DOM structure, including CSS styles, element metrics, properties, and so forth.<\/p>\n<p>The whole light-text-on-transparent-black look of these HUDs seems to be a matter of taste &#8211; I like them well enough in iPhoto, but on a white background, not so much &#8211; and there are some bugs; the top outline view doesn&#8217;t respond to the scroll wheel, for instance. Still, this seems to be a very useful tool for debugging your web pages; it&#8217;s making me want to (finally) redesign my site, even!<\/p>\n<p>Ah, and this seems to work only if you have Safari&#8217;s debugging menu enabled. To enable it, quit Safari, open the Terminal and type:<\/p>\n<pre><code>defaults write com.apple.Safari IncludeDebugMenu 1<\/code><\/pre>\n<p>and it should work when you run Safari again.<\/p>\n<p>People tell me this was already enabled in recent nightly WebKit builds, but I haven&#8217;t checked those for some time&#8230;<\/p>\n<p><strong>Update:<\/strong> as detailed <a href=\"http:\/\/webkit.org\/blog\/?p=41\">here<\/a>, you should do:<\/p>\n<pre><code>defaults write com.apple.Safari WebKitDeveloperExtras -bool true<\/code><\/pre>\n<p>if you don&#8217;t want the debug menu, just the inspector&#8230; and this is from January 2006! So this was there all along? Works in Safari 2, even? Heh.<\/p>\n<p><strong>Update#2:<\/strong> I just checked this&#8230; it doesn&#8217;t work in Safari 2 as such; you need a more recent build of WebKit.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There&#8217;s one new thing on Safari 3 (for the Mac) that I found quite by accident. Right-click on anything in a browser page and at the end of the normal contextual menu you&#8217;ll see a &#8220;Inspect Element&#8221; item. Selecting that opens a semitransparent &#8220;Web Inspector&#8221; HUD which shows tons of information about the document&#8217;s DOM [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","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":""},"categories":[19],"tags":[],"class_list":["post-1619","post","type-post","status-publish","format-standard","hentry","category-software"],"featured_image_src":null,"author_info":{"display_name":"Rainer Brockerhoff","author_link":"https:\/\/brockerhoff.net\/blog\/author\/rbrockerhoff\/"},"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1q3Zc-q7","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/brockerhoff.net\/blog\/wp-json\/wp\/v2\/posts\/1619","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/brockerhoff.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/brockerhoff.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/brockerhoff.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/brockerhoff.net\/blog\/wp-json\/wp\/v2\/comments?post=1619"}],"version-history":[{"count":0,"href":"https:\/\/brockerhoff.net\/blog\/wp-json\/wp\/v2\/posts\/1619\/revisions"}],"wp:attachment":[{"href":"https:\/\/brockerhoff.net\/blog\/wp-json\/wp\/v2\/media?parent=1619"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/brockerhoff.net\/blog\/wp-json\/wp\/v2\/categories?post=1619"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/brockerhoff.net\/blog\/wp-json\/wp\/v2\/tags?post=1619"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}