<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Ramblings of a Madman]]></title><description><![CDATA[General Ramblings About all things JavaScript and Browser Developer Tools]]></description><link>https://flailingmonkey.com/</link><image><url>https://flailingmonkey.com//logos/logo-48.png</url><title>Ramblings of a Madman</title><link>https://flailingmonkey.com/</link></image><generator>GatsbyJS Advanced Starter</generator><lastBuildDate>Sat, 04 Nov 2023 22:51:07 GMT</lastBuildDate><atom:link href="https://flailingmonkey.com//rss.xml" rel="self" type="application/rss+xml"/><copyright><![CDATA[Ramblings of a Madman © 2023]]></copyright><item><title><![CDATA[Why I Switched From Firefox to Brave After 21 Years]]></title><description><![CDATA[I have been an avid Firefox user since 2000 (back then it was called Netscape). I love Mozilla and all that it stands for. 13 years back I…]]></description><link>https://flailingmonkey.com/why-i-switched-from-firefox-to-brave-after-21-years/</link><guid isPermaLink="false">https://flailingmonkey.com/why-i-switched-from-firefox-to-brave-after-21-years/</guid><category><![CDATA[Brave]]></category><dc:creator><![CDATA[Mike Ratcliffe]]></dc:creator><pubDate>Fri, 07 Jan 2022 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;I have been an avid Firefox user since 2000 (back then it was called Netscape). I love Mozilla and all that it stands for. 13 years back I even moved my family from Switzerland to the UK so that I could continue working for Mozilla.&lt;/p&gt;
&lt;p&gt;I am well known in the area that I live in for promoting Firefox all of the time. When we leave the house we often dress our kids in Firefox clothes and all three of my boys have Firefox posters and stickers all over their walls.&lt;/p&gt;
&lt;p&gt;We went to the zoo a couple of weeks ago and all they cared about was seeing the red panda.&lt;/p&gt;
&lt;p&gt;To help you understand why I have switched to Brave you first need to understand my relationship with Firefox.&lt;/p&gt;
&lt;h2 id=&quot;how-did-i-start-using-firefox&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#how-did-i-start-using-firefox&quot; aria-label=&quot;how did i start using firefox permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;How Did I Start Using Firefox?&lt;/h2&gt;
&lt;p&gt;Back in 2000 I was at college looking at the Netscape 4 source code, when I discovered the &lt;a href=&quot;https://en.wikipedia.org/wiki/The_Book_of_Mozilla&quot;&gt;about:mozilla&lt;/a&gt; page. It fascinated me that Netscape was open source and that people could contribute to the source code.&lt;/p&gt;
&lt;p&gt;At this time nobody was standing up to the likes of Microsoft and AOL so I was very impressed that there were people around the world making a stand and trying to keep the internet free and open to everybody.&lt;/p&gt;
&lt;p&gt;At this point I started promoting Mozilla in any way that I could. I started to use Netscape on all my computers and was faithful to Mozilla ever since.&lt;/p&gt;
&lt;h2 id=&quot;my-history-with-mozilla&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#my-history-with-mozilla&quot; aria-label=&quot;my history with mozilla permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;My History With Mozilla&lt;/h2&gt;
&lt;h3 id=&quot;from-firebug-contributor-to-full-time-employee&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#from-firebug-contributor-to-full-time-employee&quot; aria-label=&quot;from firebug contributor to full time employee permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;From Firebug Contributor To Full-Time Employee&lt;/h3&gt;
&lt;p&gt;Around 2007 I started contributing to Firebug. At first I just fixed a few bugs in Firefox itself and then took over development of Firebug Lite (a bookmarklet version of Firebug). I eventually moved back to working on Firebug and eventually started working for Mozilla as a full time employee.&lt;/p&gt;
&lt;h3 id=&quot;google-mozillas-greatest-rival&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#google-mozillas-greatest-rival&quot; aria-label=&quot;google mozillas greatest rival permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Google: Mozilla&apos;s Greatest Rival&lt;/h3&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 690px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/5d8b262bacd1fbe9ede392d4c33dd728/29114/google-firefox.png&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 56.06936416184971%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAALCAIAAADwazoUAAAACXBIWXMAAAsTAAALEwEAmpwYAAACn0lEQVR42mNgYGAIlxa7YW/0xtn0k6vZVzfzDy5mr51Nz9saqHFy2yrzHI9Viklp8qreYl+y2qdz1b51nrPWFVsseeS66jFDtLTYF3dzoJ5PbubHrPTWGmuctzH462l53c5QnJ0tXl3kaoD2kSSTk8WmZ1rN7s/VvLbWUHnSJalZjzQW3GV47GTy0d7iroOxj4QwAyPQHQzsTExJcpIaPFxAdomuxIMU7Zt5qvdK1O/Vazyfr3ykxyqodqHtpB263QcYvs4R/BRi4CcmAlTKzMgI1g4xhEGAg/FApNTDdLWrWZo3izVv12g9mqt1oVjlWKDWsyrdttxMhv+nGE5P4mABamRiAmqQMU0wiF+jHzFfK3yhS9qyirqt2zJD7qYrXC/Uul2p9WCC1uUm9WtVIdtm9PtWbGT4f5RlYysz0DJGJiDJoBs1w3/+f8/Jv72m/Hfp+avf+X9OfsWjZKlr+dq3y7TutWl/WSg7qzpOM3ajQcJahv9HGPbO4GZgBjoZZLOsZbpx2i692OUm6XtcWj/Zt/1ckp17P0H6eo72jXzN4wna60usYlNLFXwW6ofMYji5Q8JvnZeAhRzIq0yMYBLkBGXnCtee/04tH/YkeN2OVbyarrXPWW29g76iRZ2CfYe6a5eicx+D6RJ/3dVhRnN9hc1lIIEFdIGElZ1z/Rurjv+pFQeuBCpfi1Y/H6Vx2FPjVpp6Q6i/inmZrGm1sVMJg5iLsvnGMNMNoaZrQ3V6XdUqbXUnuJutjbResMCr883K4JBLXnKXQzUvR6hfjtS4kabxpFRle6bZvFTH8y36ILtE7eQNZvsYrwo2WRdqtjHMZG2o6epA1amOHvY6B62UDrtrnvdTvxKmfjVK/XKUxoUozVtJqrcSVA57qgEA2D/1ww1OO4wAAAAASUVORK5CYII=&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Google vs. Mozilla&quot;
        title=&quot;&quot;
        src=&quot;/static/5d8b262bacd1fbe9ede392d4c33dd728/1e043/google-firefox.png&quot;
        srcset=&quot;/static/5d8b262bacd1fbe9ede392d4c33dd728/991de/google-firefox.png 173w,
/static/5d8b262bacd1fbe9ede392d4c33dd728/e4d6b/google-firefox.png 345w,
/static/5d8b262bacd1fbe9ede392d4c33dd728/1e043/google-firefox.png 690w,
/static/5d8b262bacd1fbe9ede392d4c33dd728/e3189/google-firefox.png 1035w,
/static/5d8b262bacd1fbe9ede392d4c33dd728/b1001/google-firefox.png 1380w,
/static/5d8b262bacd1fbe9ede392d4c33dd728/29114/google-firefox.png 1920w&quot;
        sizes=&quot;(max-width: 690px) 100vw, 690px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Google and Mozilla are rivals&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;In 2008 Mozilla was due to renew their search deal with Google. Previous to this I had never questioned where their money came from. I was a little disheartened to learn that every time people searched Google from within a Firefox Browser, Google would receive a small amount of money. I didn&apos;t like this because Google are a large advertising company and they already had a reputation for not respecting their user&apos;s privacy.&lt;/p&gt;
&lt;p&gt;In 2009 we started to become concerned that our user base was dropping. Chrome had been released and it was very fast. Our only other competitor was Internet Explorer but Chrome was taking more and more users away from us. We were surprised because it was already well known that Google were using Chrome to &lt;a href=&quot;https://en.wikipedia.org/wiki/Google_Chrome#Privacy&quot;&gt;gather information&lt;/a&gt; about their users browsing habits.&lt;/p&gt;
&lt;p&gt;At this point I was still proud to be working for Mozilla because we were standing up to Microsoft and Google. At the same time I felt very uncomfortable that all of Mozilla&apos;s money was coming from their biggest rival, who truly stood for everything we were fighting against.&lt;/p&gt;
&lt;p&gt;I spoke with management and they acknowledged that it was a problem. They said that they were actively looking into adding new revenue streams.&lt;/p&gt;
&lt;h2 id=&quot;firefox-os-the-beginning-of-the-end&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#firefox-os-the-beginning-of-the-end&quot; aria-label=&quot;firefox os the beginning of the end permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Firefox OS: The Beginning Of The End&lt;/h2&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 690px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/f0430b928c362ce3122b447712af53e8/3a20b/firefox-os.png&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 56.06936416184971%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAALCAIAAADwazoUAAAACXBIWXMAAAsTAAALEwEAmpwYAAACD0lEQVR42mOInX0ciCJmno6Zcypq6gHbwARzZx9br1B7nzD32LyYGYdj55yAqMFEDEAcPftE6fxNqQtORLUt17ZxUnf2N/cN945KcvALjerfEjf3dOysY9g1R84+VTdvzfrlzReWZZ7o8TJoWqGz8LbxnAvx6+77da2N7N0YNw+35uQ5hybOmR0+43TtvE3reuK0ahcbzL1iPPtMwPIbQZ2rQnu3ADVHzzwaPesYEMUA0ezjUSAGWHPc7GPRs0/GzjkZPON0R3mta+Ncy2nHGssLPZddiGpZXNE+JXr+uZT5J5LmAdFJIAnUkzL/ZMLcEzEQP8fPPhYx+1R7//xvxc5PKwKTJq4KmLbbYMHtuK75O6alRM49M2HnjdkH7yw+dh9Itm652rfzRt36y0CHgDQDwzNm2sHps1ZcXrfs/8lVnd29Ygufhs3cfGd24IF5RaGzz6XMO5G1+EzesrO5S88CGekLT6UtOAUN7djZx+LmnAiYd/FYQ9T/Tb2pU9ZqTz/1ZHnA/7U2tXNWhs0+GzvraNTMY5FANOMYkAHxP1Rz3OyjQBVt0+d/anV8Ni362NTUa/OS382xz031C+rdHj/vFCS047DGc/zso4GzLy6Z2XE5ULDTQ7rWRbzDWdxDS0hIRi1q8u64uadwRhXYyGNRc04VzNhSFpfk5JOkHFioGlykG1LgWtAXg0MbRDMAzeds9N3fQIIAAAAASUVORK5CYII=&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Firefox OS&quot;
        title=&quot;&quot;
        src=&quot;/static/f0430b928c362ce3122b447712af53e8/1e043/firefox-os.png&quot;
        srcset=&quot;/static/f0430b928c362ce3122b447712af53e8/991de/firefox-os.png 173w,
/static/f0430b928c362ce3122b447712af53e8/e4d6b/firefox-os.png 345w,
/static/f0430b928c362ce3122b447712af53e8/1e043/firefox-os.png 690w,
/static/f0430b928c362ce3122b447712af53e8/e3189/firefox-os.png 1035w,
/static/f0430b928c362ce3122b447712af53e8/b1001/firefox-os.png 1380w,
/static/f0430b928c362ce3122b447712af53e8/3a20b/firefox-os.png 3510w&quot;
        sizes=&quot;(max-width: 690px) 100vw, 690px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Firefox OS - formerly called BTG&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;In a drive to release B2G (Firefox OS), Mozilla had to recruit hundreds of new developers. This seemed like a good idea because Mozilla needed an alternate revenue stream to Google but it has ultimately marked the beginning of the end for Mozilla.&lt;/p&gt;
&lt;p&gt;In the early days, Mozilla was like one big family. We all believed in a free and open web and loved open source. Everybody&apos;s suggestions were important and taken seriously and we had freedom to be creative and make Firefox a success.&lt;/p&gt;
&lt;p&gt;The new wave of developers that joined Mozilla were employed purely for their technical abilities. For many of them Mozilla was just a job whereas before this time it was a set of beliefs, a job and a lifestyle.&lt;/p&gt;
&lt;p&gt;As the company grew there was also more and more bureaucracy involved and any suggestions or concerns would go up through the management chain and disappear into the ether. You could no longer email management and expect a response.&lt;/p&gt;
&lt;p&gt;Developers were no longer given the time to be creative. You just had to work on an endless line of bugs and had very little input when it came to the creative process.&lt;/p&gt;
&lt;p&gt;This is where Mozilla began to lose its soul. We have seen the integration of Pocket and many failed attempts at integrating things like video conferencing. Adverts were even added to the &lt;code class=&quot;language-text&quot;&gt;about:newtab&lt;/code&gt; page.&lt;/p&gt;
&lt;p&gt;Firefox looks more and more like Chrome. The rational behind making these changes is that it makes it easier for people to migrate from Chrome to Firefox. In my opinion the problem is that the people Firefox should be attracting are people that want something &lt;em&gt;different&lt;/em&gt; from Chrome so this is losing them users rather than gaining them.&lt;/p&gt;
&lt;h2 id=&quot;my-vision-of-firefox&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#my-vision-of-firefox&quot; aria-label=&quot;my vision of firefox permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;My Vision Of Firefox&lt;/h2&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 690px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/626e3d2178ddb879303548fe4fb4f3fb/2bef9/i-had-an-idea.png&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 50.28901734104046%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAYAAAC0VX7mAAAACXBIWXMAAA7EAAAOxAGVKw4bAAACpElEQVR42jWS20sTYBiHd9sRIlg7uencOTeb22zazKVTpzuoO7WsppszV82ZpqmVWGHiiTAPCGZEBAWdT1BQRNRNdBnUZf/K07dJFy8f33fxfM/vfV+JWlNBeUUlRpOFGocbd30jvrYgLrcHl9XMZK6feCROZ/Q04UiSaLKPcLSH9lCUtmAEn78Try9IY1M7nsYWJGVlmhKwUmdAbzBjNJqxVB2h2qgn29rA5+11Xm1t0Je5SO9AgdTAMLnBAmMXh2gNxOgIJ0TFBawVh7NOANXlaCv1JWClTo/BaKKq2om/vpa8v4HZ3lP8fv+Ce6trZPMT5EamGbs8xebyMr6AgAWjIlGIOk8TDpcAFiPv2JlKVYxuPeIi2lDH1W4fk11+vj/cZmNpURiOUBga50Y6ydfH28zNztMiLJtaAhytPy5kLEiKdibz4RLIctiG1VYj7lZcdidBdw2p47U8WppndXGJ3qFrDF+ZZjTg4fbZAE/ubxGK9RLqStDg9YnI7h3DCq2uZGcyV2G2WDELuFpnxG23E3GYWRjP8/fbB17nCixdmub6hSxr+SQrCwtEkv2c7EkTTZwh3BVHolSVodbs9LEILp5aAdSLfp5QKMjXV/N8bpJf75/yoyPE21oPbzpjPBjL8On1c4bHbpLNjdBzJkNEbIFEJpOhKlNTHE6xNGLiTlGdUim+XbvpkcuY6/azmkowodFyXmzFHa2Bdb+Xnx+fMTM9h7c5gNPlxlZtRyJXKIWhFrWAqcq12FUqzsvlLOpMDMgVBPbt57RSQVqlZFSppvvAAdJSOVNirV6uzPD9wzu6Yylqjx7DZrMXI+/Y/T+bDh4kKz3ELb2RDTGcglxJWnxwTqagX7x3CWDznr3EjVqWB0/y58srNu+uE0ukyfQN8g9xD3XthcAQFAAAAABJRU5ErkJggg==&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;I had an idea&quot;
        title=&quot;&quot;
        src=&quot;/static/626e3d2178ddb879303548fe4fb4f3fb/1e043/i-had-an-idea.png&quot;
        srcset=&quot;/static/626e3d2178ddb879303548fe4fb4f3fb/991de/i-had-an-idea.png 173w,
/static/626e3d2178ddb879303548fe4fb4f3fb/e4d6b/i-had-an-idea.png 345w,
/static/626e3d2178ddb879303548fe4fb4f3fb/1e043/i-had-an-idea.png 690w,
/static/626e3d2178ddb879303548fe4fb4f3fb/2bef9/i-had-an-idea.png 1024w&quot;
        sizes=&quot;(max-width: 690px) 100vw, 690px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;I had an idea!&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;Around 2004, Bill Gates said spam control in the future would be greatly improved. He proposed that email should become a paid service so that spammers would be forced to pay per email. It seemed like a reasonable idea but I wanted email to remain free.&lt;/p&gt;
&lt;p&gt;In 2009 I remember talking with a a bunch of people about my vision of what Firefox should become. I explained that I thought people could choose to be paid to receive adverts. Private browsing should be completely private in my opinion so I suggested using Tor for our private browsing mode.&lt;/p&gt;
&lt;p&gt;Unfortunately, it isn&apos;t practical to do that with Firefox because they would have to completely sever links with Google and then try to convince their users to sign up with their bank info or cryptocurrency accounts. In addition, it would mean setting up deals with advertisers and would prove very costly.&lt;/p&gt;
&lt;p&gt;Around 2015 Mozilla dropped support for Firefox OS. This was a relief to me because I believed that the project was doomed from the start. Now we had lots of engineers that would focus 100% on the Firefox codebase.&lt;/p&gt;
&lt;p&gt;At this point I suggested that we should stop maintaining and continually rewriting our codebase. It would make a lot more sense to migrate to the Chromium codebase because that is maintained by Google. Doing this would allow Mozilla to free up a whole army of developers to work creatively on various projects with the aim of bringing in that elusive non-Google revenue stream... kind of like a gigantic start-up. Not only that, the browser would look and act the same from a user&apos;s perspective.&lt;/p&gt;
&lt;p&gt;This idea was also dismissed as being too risky so I suggested creating a second browser that implemented these things on its own terms. This idea was discarded because it was also too risky.&lt;/p&gt;
&lt;p&gt;To be honest it was very frustrating that my ideas were constantly dismissed. I have always intuitively known what people want from a product point of view but I know that many people are make their living by making those decisions.&lt;/p&gt;
&lt;h2 id=&quot;mozillas-mass-layoffs&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#mozillas-mass-layoffs&quot; aria-label=&quot;mozillas mass layoffs permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Mozilla&apos;s Mass Layoffs&lt;/h2&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 690px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/e34c4e3e4fd158abc0a3675eec85579f/7608e/layoffs.png&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 58.38150289017341%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAMCAYAAABiDJ37AAAACXBIWXMAABcTAAAXEwG12DC2AAACTElEQVR42jWTa2jPURiAn/8wJSFhmUvJB0a5JMvlA7PEhm0180G5RPm3GJrrmGn/0sw1uUSby6iFNdexIqyM3HLJJUTIfNCifOKj5/j9fHh6z/uec973vJcDUCGH+0DdPGgYBRcLoF5bcxqUKW/JErktS+WuLJfrslKuSKUckfNCkxfvKx8UQ9sCeJuAc+rviGSnHJKvclR+yzF5TxT4e+z8hvwKDvXDJklVw77SKFKRTuu7wNwQtStMCoFlsrSqT1Wedn9mkLJQqqQaNye6KJgNW+fAiiKfb34uWdMNxqZFBwf/OwxDpTZI7RXpMDJ+TAi0SOaHF46Q3EGQ3wuye0PJFG3dIZmCLPfK2iHTwBv6Q0/1tU90ZIT15crxsFHbMF9r6ZlBXI/WUIdQu0RU9FCzF4XQOBw6PNmo/tE9Y/BtIOyZDh9K4GwP+KTtuFyVN8HhKbkpd+KO3fNinfK5zuqX2ZS+sDM0Sfte+el6VxJemt+BECgtqu8l6QgOc6U0pCKLwxiZbo5y/yrI2wbXHKVx6ifM1yWNW6yxtW7ZYfPUD5puvnJdPEaMllniGDLNQpeEixmw2loUZ9sU62GG6J8MU6xsivTkGZvQz+a5HiOFsR+8g+OHJSEnE8ptY5FNStVFQaqc5iEhTRlgyrW22jKy3YZkpUddnhAPf/DDBXkkjxPRb3ht+GbHqNNOXlb/kYgGOgxwqO2fRNSEL9IQ20NT2/4P9u74RzR78KSyJQ9qNkfdrtH2SumE8JRoRD7Hs9cef7ln4evGA/7wLz5okbeAdxFiAAAAAElFTkSuQmCC&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Laid Off&quot;
        title=&quot;&quot;
        src=&quot;/static/e34c4e3e4fd158abc0a3675eec85579f/1e043/layoffs.png&quot;
        srcset=&quot;/static/e34c4e3e4fd158abc0a3675eec85579f/991de/layoffs.png 173w,
/static/e34c4e3e4fd158abc0a3675eec85579f/e4d6b/layoffs.png 345w,
/static/e34c4e3e4fd158abc0a3675eec85579f/1e043/layoffs.png 690w,
/static/e34c4e3e4fd158abc0a3675eec85579f/7608e/layoffs.png 735w&quot;
        sizes=&quot;(max-width: 690px) 100vw, 690px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Laid off&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;I was part of Mozilla&apos;s first round of mass layoffs in 2020. I am first to admit that I felt betrayed as I had given my heart and soul to the company for such a long time. It wasn&apos;t just a job to me, it was what I believed in and a huge part of my lifestyle. At the same time, the writing had been on the wall for some time. Mozilla had lost its way and had become &lt;em&gt;very&lt;/em&gt; different from the ground-breaking company that it used to be.&lt;/p&gt;
&lt;p&gt;Many of us were surprised that most of the layoffs were senior developers and that made us employees acutely aware that the company was sacrificing senior developers with the goal of reducing its financial obligations. With that came the realization that it wasn&apos;t a personal thing, it was an attempt to save the company.&lt;/p&gt;
&lt;h2 id=&quot;a-brave-new-world&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#a-brave-new-world&quot; aria-label=&quot;a brave new world permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;A Brave New World&lt;/h2&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 690px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/816c98027bb40a4ef6662689b5bcfe57/ad997/be-brave.png&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 50.28901734104046%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAYAAAC0VX7mAAAACXBIWXMAAAsTAAALEwEAmpwYAAACKklEQVR42m2S204TURSG+zAaIwwznU7n0Dl2pqUBqiJNUUQFMUoCiQGNkhAiHtDExMOlhjfSBNF6w0so0ISjLf1cnXLh6eLP2llZ+9v/XvkzrTBizzLZVvpS7WY1jnyfThSDH4Dn/SnfhaDwryIHijaZHVXhwHM4Lvr8TEKOQpdmTuOwIEPFBFwB+L8Bg/8Awx4sBe5ZeTojgwIMUmC7EnMsdd+WgbAIjgybJliWnKXaOQHbpzC3B4tP1QVuDygcxwGtJOJIhk6GSj2H3e/W6lCpwMwM1Gswdgkmr0J1SFzbtFyLk0hqkGevoNMOTTLNnM6+k0+BBzLQKkfpLtulMkxNwcQErCzD6gosL8HL5/KQgF1Tdq/LHZOWZ7BvqbQFnDl0PX6cP5e6aw/G7GoKTV3lMCmxZeZpmAYNQ+dLVmVT+g3RN9vkq4A+CfCjbaTnTSdHwxOHJ3GJXV1jR+1Pv/q96y7w2QpDBk2NUHbmGQamnkVX+skrA5iaRk5R6D97BksecvOG1CymJCRDVKRTroh9SyKjyj4lLknChjg3/DH6/DqKV8MojqOHdVTpaaIBd1Tq5VSq11M2GBNgNwqSRZIyHQF1YomKV2BD+l5llpHhO4xW7+JUF/AuLlKsPWRk8hnDk48pjT+iemOFK7NrjN5aTc+Zv4Pb8bq5c/gs4b5wbYnpuTVm5l5wc+EN1++9ZmL+FfPLH0Tvuf3gHdPSv/90ncUn60wvvuUXoG7Mgs2pwDoAAAAASUVORK5CYII=&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Be Brave&quot;
        title=&quot;&quot;
        src=&quot;/static/816c98027bb40a4ef6662689b5bcfe57/1e043/be-brave.png&quot;
        srcset=&quot;/static/816c98027bb40a4ef6662689b5bcfe57/991de/be-brave.png 173w,
/static/816c98027bb40a4ef6662689b5bcfe57/e4d6b/be-brave.png 345w,
/static/816c98027bb40a4ef6662689b5bcfe57/1e043/be-brave.png 690w,
/static/816c98027bb40a4ef6662689b5bcfe57/ad997/be-brave.png 1012w&quot;
        sizes=&quot;(max-width: 690px) 100vw, 690px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Be Brave&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;At this point I had heard of &lt;a href=&quot;https://brave.com/&quot;&gt;Brave&lt;/a&gt; but I had no idea what it was all about. I have always been very focused on the world of privacy but had come to the conclusion that we had to allow web advertising in order for the internet to prosper.&lt;/p&gt;
&lt;p&gt;A months ago I decided to take a look at Brave. I was amazed to see what they have created a browser that did all of the things that I had suggested that Firefox should do. It is Chromium based and blocks all adverts.&lt;/p&gt;
&lt;p&gt;You can specify a maximum amount of adverts (currently up to 10 per hour) that you are happy to receive and pay you a small amount of BAT for each advert that you received.&lt;/p&gt;
&lt;p&gt;The browser itself is very snappy and responsive. It really is a pleasure to use.&lt;/p&gt;
&lt;p&gt;If you click an &lt;code class=&quot;language-text&quot;&gt;.onion&lt;/code&gt; link it automatically opens in a new window running through the Tor network. In fact, if Brave &quot;knows&quot; the onion link for a site it will automatically open that onion link in a new window.&lt;/p&gt;
&lt;p&gt;Their implementation really is great and it implements everything I wanted and more. I don&apos;t understand why Mozilla never did this back in the day when they could have done... lots of us had similar ideas.&lt;/p&gt;
&lt;p&gt;The truth is that Brendan would have known about these things and knew that Mozilla wasn&apos;t willing to take the risk so he decided to spin up a company that would. The people at Brave haven&apos;t only managed to pull it off... they have pulled it off with swagger.&lt;/p&gt;
&lt;p&gt;I just want to let the ladies and gentlemen at Brave know that they have done a great job in creating the Brave Browser.&lt;/p&gt;
&lt;p&gt;I am very happy to be a member of this new family!&lt;/p&gt;</content:encoded><author>michael@ratcliffefamily.org</author></item><item><title><![CDATA[Installing Debian Flavours on a USB Stick For Use on a MacBook Pro and PC]]></title><description><![CDATA[Before I begin let me just say that these instructions worked for me but if you break or lose anything then I am not responsible. I recently…]]></description><link>https://flailingmonkey.com/installing-debian-flavours-on-a-usb-stick-for-use-on-a-macbook-pro-and-pc/</link><guid isPermaLink="false">https://flailingmonkey.com/installing-debian-flavours-on-a-usb-stick-for-use-on-a-macbook-pro-and-pc/</guid><category><![CDATA[Linux]]></category><dc:creator><![CDATA[Mike Ratcliffe]]></dc:creator><pubDate>Mon, 25 Oct 2021 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Before I begin let me just say that these instructions worked for me but if you break or lose anything then I am not responsible.&lt;/p&gt;
&lt;p&gt;I recently tried running a bunch of &quot;Live&quot; Linux distributions from USB but was shocked to realize that you can&apos;t update them. I always thought that adding &quot;persistence&quot; would make this possible but that just adds a persistent partition to your USB stick. The operating system itself remains read-only.&lt;/p&gt;
&lt;p&gt;This kind of limited &quot;live&quot; setup just isn&apos;t for me... I want a full Linux release that:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Runs from a USB stick.&lt;/li&gt;
&lt;li&gt;Can be updated using &lt;code class=&quot;language-text&quot;&gt;apt update&lt;/code&gt;, &lt;code class=&quot;language-text&quot;&gt;apt upgrade&lt;/code&gt; and &lt;code class=&quot;language-text&quot;&gt;app dist-upgrade&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Can be booted on PCs and my MacBook Pro Retina (2016 model).&lt;/li&gt;
&lt;li&gt;WIFI should work on most PCs and my MacBook Pro Retina (2016 model).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;It really should be completely indistinguishable from Linux installed on the hard disk. Sure, it will run a little more slowly due to the thumb drives limitations but I want a useable OS.&lt;/p&gt;
&lt;p&gt;This shouldn&apos;t be so hard should it? As it turns out, MacBooks make this hard. This is because they don&apos;t follow the same EFI model as other vendors, available drivers for their WIFI cards don&apos;t tend to come with Linux flavours by default.&lt;/p&gt;
&lt;p&gt;Even when WIFI drivers exist they often don&apos;t work without you making modifications and there is very little information online explaining how this is to be done.&lt;/p&gt;
&lt;p&gt;So, let&apos;s get started!&lt;/p&gt;
&lt;h2 id=&quot;set-up-your-usb-sticks&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#set-up-your-usb-sticks&quot; aria-label=&quot;set up your usb sticks permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Set Up Your USB Sticks&lt;/h2&gt;
&lt;h3 id=&quot;you-will-need&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#you-will-need&quot; aria-label=&quot;you will need permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;You Will Need&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;PC or Laptop - You will need this so that you can install the OS and boot into it to make changes.&lt;/li&gt;
&lt;li&gt;Mac - Our goal is to boot your new OS on your Mac, so you will need this.&lt;/li&gt;
&lt;li&gt;USB1 - We need to burn your Linux install ISO to this.&lt;/li&gt;
&lt;li&gt;USB2 - This is your target USB drive on which we will install the operating system. This should be at least 32G but you are better off using at least 128G in my opinion.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;1-flash-your-debian-iso-to-usb1&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#1-flash-your-debian-iso-to-usb1&quot; aria-label=&quot;1 flash your debian iso to usb1 permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;1. Flash Your Debian ISO to USB1&lt;/h3&gt;
&lt;p&gt;The first thing you will need to do is download the ISO:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://www.debian.org/download&quot;&gt;Debian&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.parrotsec.org/download/&quot;&gt;Parrot OS&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.kali.org/get-kali/#kali-bare-metal&quot;&gt;Kali Linux (bare metal version)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://ubuntu.com/download&quot;&gt;Ubuntu&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://linuxmint.com/download.php&quot;&gt;Linux Mint&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://mxlinux.org/download-links/&quot;&gt;MX Linux&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://sourceforge.net/projects/antix-linux/files/Final/&quot;&gt;Antix (antiX-xx.y_x64-full.iso)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Now burn the ISO to USB1 using your favourite tool. I suggest using &lt;a href=&quot;https://www.balena.io/etcher/&quot;&gt;Balena Etcher&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&quot;2-install-your-debian-flavour-to-usb2&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#2-install-your-debian-flavour-to-usb2&quot; aria-label=&quot;2 install your debian flavour to usb2 permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;2. Install your Debian Flavour to USB2&lt;/h3&gt;
&lt;p&gt;So you now have an source USB stick (USB1) and a USB stick on which you want to install the operating system (USB2). This is fairly simple if you follow these steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Using a PC, delete all partitions on the target USB stick (USB2). This is necessary for some Debian flavours so that the installer can see the target USB stick.&lt;/li&gt;
&lt;li&gt;Insert your source USB stick (USB1) into a PC and boot from it.&lt;/li&gt;
&lt;li&gt;As soon as it boots, stick the target USB stick into a second USB port.&lt;/li&gt;
&lt;li&gt;Run through the steps like you would if you were installing to a hard disk but when you are at the disk selection stage it is very important to choose your target USB drive (USB2).&lt;/li&gt;
&lt;li&gt;There is usually an option to use the whole drive so you should choose that.&lt;/li&gt;
&lt;li&gt;Traditionally, Linux uses different partitions for &lt;code class=&quot;language-text&quot;&gt;/home&lt;/code&gt;, &lt;code class=&quot;language-text&quot;&gt;/var&lt;/code&gt; and &lt;code class=&quot;language-text&quot;&gt;/tmp&lt;/code&gt;. There is no need to do this when installing onto a single disk (or USB stick) although you may choose to install &lt;code class=&quot;language-text&quot;&gt;/home&lt;/code&gt; to its own partition if you want to encrypt it.&lt;/li&gt;
&lt;li&gt;After the installation shut down your PC and unplug the source USB stick(USB1). You should now be able to boot your new operating system from your target USB stick (USB2).&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&quot;make-changes-to-make-your-installation-work-on-a-macbook-pro&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#make-changes-to-make-your-installation-work-on-a-macbook-pro&quot; aria-label=&quot;make changes to make your installation work on a macbook pro permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Make Changes to Make Your Installation Work on a MacBook Pro&lt;/h2&gt;
&lt;h3 id=&quot;fix-osx-boot&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#fix-osx-boot&quot; aria-label=&quot;fix osx boot permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Fix OSX Boot&lt;/h3&gt;
&lt;p&gt;Whilst most vendors are flexible in their approach to EFI booting their operating systems, Apple are very rigid. OSX can only see a startup disk if it has an &lt;code class=&quot;language-text&quot;&gt;EFI/boot/bootx64.efi&lt;/code&gt; file on the EFI System partition.&lt;/p&gt;
&lt;p&gt;For some reason, Debian installers don&apos;t seem to create a &lt;code class=&quot;language-text&quot;&gt;bootx64.efi&lt;/code&gt; file in that path but the fix is fairly simple: copy and rename the file from the vendors folder to the OSX supported path.&lt;/p&gt;
&lt;h4 id=&quot;1-identify-the-efi-partition&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#1-identify-the-efi-partition&quot; aria-label=&quot;1 identify the efi partition permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;1. Identify the EFI Partition&lt;/h4&gt;
&lt;p&gt;To do this you will need to use &lt;code class=&quot;language-text&quot;&gt;sudo fdisk -l&lt;/code&gt;. Here you can see my thumb drive is &lt;code class=&quot;language-text&quot;&gt;/dev/sdc&lt;/code&gt; and my &lt;code class=&quot;language-text&quot;&gt;EFI System&lt;/code&gt; is &lt;code class=&quot;language-text&quot;&gt;/dev/sdc1&lt;/code&gt;.&lt;/p&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;shell&quot;&gt;&lt;pre class=&quot;language-shell&quot;&gt;&lt;code class=&quot;language-shell&quot;&gt;Disk /dev/sdc: &lt;span class=&quot;token number&quot;&gt;114.61&lt;/span&gt; GiB, &lt;span class=&quot;token number&quot;&gt;123060879360&lt;/span&gt; bytes, &lt;span class=&quot;token number&quot;&gt;240353280&lt;/span&gt; sectors
Disk model:  SanDisk &lt;span class=&quot;token number&quot;&gt;3&lt;/span&gt;.2Gen1
Units: sectors of &lt;span class=&quot;token number&quot;&gt;1&lt;/span&gt; * &lt;span class=&quot;token number&quot;&gt;512&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;512&lt;/span&gt; bytes
Sector size &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;logical/physical&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;: &lt;span class=&quot;token number&quot;&gt;512&lt;/span&gt; bytes / &lt;span class=&quot;token number&quot;&gt;512&lt;/span&gt; bytes
I/O size &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;minimum/optimal&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;: &lt;span class=&quot;token number&quot;&gt;512&lt;/span&gt; bytes / &lt;span class=&quot;token number&quot;&gt;512&lt;/span&gt; bytes
Disklabel type: gpt
Disk identifier: &lt;span class=&quot;token number&quot;&gt;33781042&lt;/span&gt;-B5EE-E342-933B-AA857D5FFCC7

Device      Start       End   Sectors   Size Type
/dev/sdc1    &lt;span class=&quot;token number&quot;&gt;4096&lt;/span&gt;    &lt;span class=&quot;token number&quot;&gt;618495&lt;/span&gt;    &lt;span class=&quot;token number&quot;&gt;614400&lt;/span&gt;   300M EFI System
/dev/sdc2  &lt;span class=&quot;token number&quot;&gt;618496&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;240348464&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;239729969&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;114&lt;/span&gt;.3G Linux filesystem&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h4 id=&quot;2-mount-and-fix-the-efi-partition&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#2-mount-and-fix-the-efi-partition&quot; aria-label=&quot;2 mount and fix the efi partition permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;2. Mount and Fix the EFI Partition&lt;/h4&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;shell&quot;&gt;&lt;pre class=&quot;language-shell&quot;&gt;&lt;code class=&quot;language-shell&quot;&gt;&lt;span class=&quot;token function&quot;&gt;sudo&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;mount&lt;/span&gt; /dev/sdc1 /mnt
&lt;span class=&quot;token builtin class-name&quot;&gt;cd&lt;/span&gt; /mnt/EFI/
&lt;span class=&quot;token function&quot;&gt;sudo&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;mkdir&lt;/span&gt; boot&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;The next command will vary according to your particular flavour of Debian. In a nutshell we just need to &lt;code class=&quot;language-text&quot;&gt;cp your-debian-flavour/grubx64.efi boot/bootx64.efi&lt;/code&gt;:&lt;/p&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;shell&quot;&gt;&lt;pre class=&quot;language-shell&quot;&gt;&lt;code class=&quot;language-shell&quot;&gt;&lt;span class=&quot;token comment&quot;&gt;# Debian&lt;/span&gt;
&lt;span class=&quot;token function&quot;&gt;sudo&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;cp&lt;/span&gt; Debian/grubx64.efi boot/bootx64.efi

&lt;span class=&quot;token comment&quot;&gt;# Parrot OS&lt;/span&gt;
&lt;span class=&quot;token function&quot;&gt;sudo&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;cp&lt;/span&gt; Parrot/grubx64.efi boot/bootx64.efi

&lt;span class=&quot;token comment&quot;&gt;# Kali Linux&lt;/span&gt;
&lt;span class=&quot;token function&quot;&gt;sudo&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;cp&lt;/span&gt; kali/grubx64.efi boot/bootx64.efi

&lt;span class=&quot;token comment&quot;&gt;# Ubuntu &amp;amp; Linux Mint&lt;/span&gt;
&lt;span class=&quot;token function&quot;&gt;sudo&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;cp&lt;/span&gt; ubuntu/grubx64.efi boot/bootx64.efi

&lt;span class=&quot;token comment&quot;&gt;# MX Linux &amp;amp; Antix (the folder varies... MX15, MX17 etc.)&lt;/span&gt;
&lt;span class=&quot;token function&quot;&gt;sudo&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;cp&lt;/span&gt; MX15/grubx64.efi boot/bootx64.efi&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;That&apos;s it, you should now be able to boot from the USB stick on your MacBook Pro by inserting the USB stick and booting whilst holding down the &lt;code class=&quot;language-text&quot;&gt;[Option]&lt;/code&gt; key and then choosing the &lt;code class=&quot;language-text&quot;&gt;EFI Boot&lt;/code&gt; option.&lt;/p&gt;
&lt;p&gt;Just don&apos;t expect your WIFI to work though. If it does then you are lucky enough to have a supported WIFI card but chances are that you will need to fix it.&lt;/p&gt;
&lt;h3 id=&quot;fix-wifi&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#fix-wifi&quot; aria-label=&quot;fix wifi permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Fix WIFI&lt;/h3&gt;
&lt;p&gt;Linux WIFI on a MacBook Pro is famously unreliable. Chances are that you either won&apos;t be able to see your WIFI card or that if you can then you probably can&apos;t authenticate with your access point. Let&apos;s fix that.&lt;/p&gt;
&lt;h4 id=&quot;1-identify-your-network-card&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#1-identify-your-network-card&quot; aria-label=&quot;1 identify your network card permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;1. Identify Your Network Card&lt;/h4&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;shell&quot;&gt;&lt;pre class=&quot;language-shell&quot;&gt;&lt;code class=&quot;language-shell&quot;&gt;&lt;span class=&quot;token comment&quot;&gt;# Run the following command to get the name, hardware ID and version of your network card&lt;/span&gt;
&lt;span class=&quot;token function&quot;&gt;sudo&lt;/span&gt; lspci &lt;span class=&quot;token parameter variable&quot;&gt;-nn&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;grep&lt;/span&gt; Network

&lt;span class=&quot;token comment&quot;&gt;# This is the output on my laptop&lt;/span&gt;

03:00.0 Network controller &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;0280&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;: Broadcom Inc. and subsidiaries BCM43602 &lt;span class=&quot;token number&quot;&gt;802&lt;/span&gt;.11ac Wireless LAN SoC &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;14e4:43ba&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;rev 02&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;There are a bunch of different network cards used in MacBooks and I can&apos;t cover them all here. If your Network Card is a BCM43602 with a hardware ID of 14e4:43ba then these instructions apply.&lt;/p&gt;
&lt;p&gt;If your card isn&apos;t a BCM43602 then this procedure is also likely to work as long as you have a Broadcom card.&lt;/p&gt;
&lt;p&gt;If it doesn&apos;t work then you should follow instructions for your card starting &lt;a href=&quot;https://wiki.debian.org/bcm43xx#Drivers&quot;&gt;here&lt;/a&gt; instead.&lt;/p&gt;
&lt;h4 id=&quot;2-add-non-free-repositories&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#2-add-non-free-repositories&quot; aria-label=&quot;2 add non free repositories permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;2. Add &quot;non-free&quot; Repositories&lt;/h4&gt;
&lt;p&gt;Add a &quot;non-free&quot; component to &lt;code class=&quot;language-text&quot;&gt;/etc/apt/sources.list&lt;/code&gt; for your Debian version, for example:&lt;/p&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;shell&quot;&gt;&lt;pre class=&quot;language-shell&quot;&gt;&lt;code class=&quot;language-shell&quot;&gt;&lt;span class=&quot;token comment&quot;&gt;# Debian 9 &quot;Stretch&quot;&lt;/span&gt;
deb http://deb.debian.org/debian stretch-backports main contrib non-free

&lt;span class=&quot;token comment&quot;&gt;# Debian 10 &quot;Buster&quot;&lt;/span&gt;
deb http://deb.debian.org/debian buster-backports main contrib non-free&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h4 id=&quot;3-install-the-relevant-linux-image-linux-headers-and-broadcom-sta-dkms-packages&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#3-install-the-relevant-linux-image-linux-headers-and-broadcom-sta-dkms-packages&quot; aria-label=&quot;3 install the relevant linux image linux headers and broadcom sta dkms packages permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;3. Install the Relevant linux-image, linux-headers and broadcom-sta-dkms Packages&lt;/h4&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;shell&quot;&gt;&lt;pre class=&quot;language-shell&quot;&gt;&lt;code class=&quot;language-shell&quot;&gt;&lt;span class=&quot;token function&quot;&gt;sudo&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;apt&lt;/span&gt; update
&lt;span class=&quot;token function&quot;&gt;sudo&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;apt&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;install&lt;/span&gt; linux-image-&lt;span class=&quot;token variable&quot;&gt;&lt;span class=&quot;token variable&quot;&gt;$(&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;uname&lt;/span&gt; -r&lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;sed&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&apos;s,[^-]*-[^-]*-,,&apos;&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;)&lt;/span&gt;&lt;/span&gt; linux-headers-&lt;span class=&quot;token variable&quot;&gt;&lt;span class=&quot;token variable&quot;&gt;$(&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;uname&lt;/span&gt; -r&lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;sed&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&apos;s,[^-]*-[^-]*-,,&apos;&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;)&lt;/span&gt;&lt;/span&gt; broadcom-sta-dkms&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h4 id=&quot;4-rescue-if-install-fails-in-previous-step-optional&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#4-rescue-if-install-fails-in-previous-step-optional&quot; aria-label=&quot;4 rescue if install fails in previous step optional permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;4. Rescue if Install fails in Previous Step (Optional)&lt;/h4&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;shell&quot;&gt;&lt;pre class=&quot;language-shell&quot;&gt;&lt;code class=&quot;language-shell&quot;&gt;&lt;span class=&quot;token function&quot;&gt;sudo&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;apt&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;install&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-f&lt;/span&gt;
&lt;span class=&quot;token function&quot;&gt;sudo&lt;/span&gt; dpkg-reconfigure broadcom-sta-dkms&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h4 id=&quot;5-check-the-built-dkms-kernel-modules&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#5-check-the-built-dkms-kernel-modules&quot; aria-label=&quot;5 check the built dkms kernel modules permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;5. Check the Built DKMS Kernel Modules&lt;/h4&gt;
&lt;p&gt;Check all the built DKMS kernel modules. There should be &lt;code class=&quot;language-text&quot;&gt;wl.ko&lt;/code&gt; in the list.&lt;/p&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;shell&quot;&gt;&lt;pre class=&quot;language-shell&quot;&gt;&lt;code class=&quot;language-shell&quot;&gt;&lt;span class=&quot;token function&quot;&gt;sudo&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;find&lt;/span&gt; /lib/modules/&lt;span class=&quot;token variable&quot;&gt;&lt;span class=&quot;token variable&quot;&gt;$(&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;uname&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-r&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;)&lt;/span&gt;&lt;/span&gt;/updates&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h4 id=&quot;6-unload-conflicting-modules&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#6-unload-conflicting-modules&quot; aria-label=&quot;6 unload conflicting modules permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;6. Unload Conflicting Modules&lt;/h4&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;shell&quot;&gt;&lt;pre class=&quot;language-shell&quot;&gt;&lt;code class=&quot;language-shell&quot;&gt;&lt;span class=&quot;token function&quot;&gt;sudo&lt;/span&gt; modprobe &lt;span class=&quot;token parameter variable&quot;&gt;-r&lt;/span&gt; b44 b43 b43legacy ssb brcmsmac bcma&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h4 id=&quot;7-load-the-wl-module&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#7-load-the-wl-module&quot; aria-label=&quot;7 load the wl module permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;7. Load the wl Module&lt;/h4&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;shell&quot;&gt;&lt;pre class=&quot;language-shell&quot;&gt;&lt;code class=&quot;language-shell&quot;&gt;&lt;span class=&quot;token function&quot;&gt;sudo&lt;/span&gt; modprobe wl&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h4 id=&quot;8-install-and-tweak-firmware&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#8-install-and-tweak-firmware&quot; aria-label=&quot;8 install and tweak firmware permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;8. Install and Tweak Firmware&lt;/h4&gt;
&lt;p&gt;This is the firmware config file for the BCM43602 card only. If this is not your card then there is no need to install it.&lt;/p&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;shell&quot;&gt;&lt;pre class=&quot;language-shell&quot;&gt;&lt;code class=&quot;language-shell&quot;&gt;&lt;span class=&quot;token builtin class-name&quot;&gt;cd&lt;/span&gt; /tmp
&lt;span class=&quot;token function&quot;&gt;wget&lt;/span&gt; https://gist.githubusercontent.com/MikeRatcliffe/9614c16a8ea09731a9d5e91685bd8c80/raw/38180b6a0ce552e1a3a2826ffea2bf1f52d05e9f/brcmfmac43602-pcie.txt&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Open &lt;code class=&quot;language-text&quot;&gt;brcmfmac43602-pcie.txt&lt;/code&gt; and populate &lt;code class=&quot;language-text&quot;&gt;macaddr=xx:xx:xx:xx:xx:xx&lt;/code&gt; in the file with your Mac&apos;s real mac address.&lt;/p&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;shell&quot;&gt;&lt;pre class=&quot;language-shell&quot;&gt;&lt;code class=&quot;language-shell&quot;&gt;&lt;span class=&quot;token function&quot;&gt;sudo&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;apt&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;install&lt;/span&gt; firmware-brcm80211
&lt;span class=&quot;token function&quot;&gt;sudo&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;cp&lt;/span&gt; ~/Desktop/brcmfmac43602-pcie.txt /lib/firmware/brcm/brcmfmac43602-pcie.txt
&lt;span class=&quot;token function&quot;&gt;sudo&lt;/span&gt; rmmod brcmfmac
&lt;span class=&quot;token function&quot;&gt;sudo&lt;/span&gt; modprobe brcmfmac&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;And then you will need to restart your network services. It&apos;s probably best to just reboot to make sure it takes.&lt;/p&gt;
&lt;p&gt;From this point on you should have full wireless access... hopefully!&lt;/p&gt;</content:encoded><author>michael@ratcliffefamily.org</author></item><item><title><![CDATA[Checking Out and Building Chrome Developer Tools (OSX Version)]]></title><description><![CDATA[After almost 9 years at Mozilla I have suddenly found myself in a place where I have plenty of time to experiment. One thing that I have…]]></description><link>https://flailingmonkey.com/checking-out-and-building-chrome-developer-tools-osx-version/</link><guid isPermaLink="false">https://flailingmonkey.com/checking-out-and-building-chrome-developer-tools-osx-version/</guid><category><![CDATA[Chromium]]></category><dc:creator><![CDATA[Mike Ratcliffe]]></dc:creator><pubDate>Sun, 09 Feb 2020 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;After almost 9 years at Mozilla I have suddenly found myself in a place where I have plenty of time to experiment.&lt;/p&gt;
&lt;p&gt;One thing that I have wanted to do for a while is play around with the Chrome DevTools codebase and start contributing.&lt;/p&gt;
&lt;p&gt;I thought that this would be easy because there is a &lt;strong&gt;lot&lt;/strong&gt; of documentation but unfortunately a lot of it is outdated. As somebody new to the codebase this is quite an issue because it is difficult to know which instructions you should use and which you can&apos;t.&lt;/p&gt;
&lt;p&gt;I suppose that by writing this I am adding to this problem but at least this article includes a creation date so that you know how recent these instructions are.&lt;/p&gt;
&lt;p&gt;There are a few methods that you can use. I have chosen to use a method where you can integrate a standalone checkout of the DevTools Frontend into a full Chromium checkout. The advantage of this approach is that you can be sure you have the latest version of DevTools and if you are planning on contributing you need to be working with the latest source.&lt;/p&gt;
&lt;p&gt;These steps are intentionally brief in order to get you up and running as quickly as possible.&lt;/p&gt;
&lt;h2 id=&quot;install-depot_tools-and-add-it-to-your-path&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#install-depot_tools-and-add-it-to-your-path&quot; aria-label=&quot;install depot_tools and add it to your path permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Install depot_tools and add it to your PATH&lt;/h2&gt;
&lt;p&gt;I have a folder just for commonly used scripts so I can keep them all in the same place. For me that folder is &lt;code class=&quot;language-text&quot;&gt;~/.scripts&lt;/code&gt; so I will use this path in my examples. Of course, you should change this path as appropriate.&lt;/p&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;shell&quot;&gt;&lt;pre class=&quot;language-shell&quot;&gt;&lt;code class=&quot;language-shell&quot;&gt;&lt;span class=&quot;token builtin class-name&quot;&gt;cd&lt;/span&gt; ~/.scripts
&lt;span class=&quot;token function&quot;&gt;git&lt;/span&gt; clone https://chromium.googlesource.com/chromium/tools/depot_tools.git&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Add the following to your &lt;code class=&quot;language-text&quot;&gt;~/.zshrc&lt;/code&gt; (or wherever your path is configured):&lt;/p&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;shell&quot;&gt;&lt;pre class=&quot;language-shell&quot;&gt;&lt;code class=&quot;language-shell&quot;&gt;&lt;span class=&quot;token builtin class-name&quot;&gt;export&lt;/span&gt; &lt;span class=&quot;token assign-left variable&quot;&gt;&lt;span class=&quot;token environment constant&quot;&gt;PATH&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&quot;&lt;span class=&quot;token environment constant&quot;&gt;$PATH&lt;/span&gt;:~/.scripts/depot_tools&quot;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;You can read more about depot_tools &lt;a href=&quot;https://chromium.googlesource.com/chromium/tools/depot_tools.git&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&quot;install-ccache&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#install-ccache&quot; aria-label=&quot;install ccache permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Install ccache&lt;/h2&gt;
&lt;p&gt;ccache is a compiler cache. It speeds up recompilation by caching previous compilations and detecting when the same compilation is being done again.&lt;/p&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;shell&quot;&gt;&lt;pre class=&quot;language-shell&quot;&gt;&lt;code class=&quot;language-shell&quot;&gt;brew &lt;span class=&quot;token function&quot;&gt;install&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;--HEAD&lt;/span&gt; ccache&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Check whether ccache is in you path by typing &lt;code class=&quot;language-text&quot;&gt;which ccache&lt;/code&gt;;&lt;/p&gt;
&lt;p&gt;If no path is displayed then the following to your .zshrc (or wherever your path is configured):&lt;/p&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;shell&quot;&gt;&lt;pre class=&quot;language-shell&quot;&gt;&lt;code class=&quot;language-shell&quot;&gt;&lt;span class=&quot;token builtin class-name&quot;&gt;export&lt;/span&gt; &lt;span class=&quot;token assign-left variable&quot;&gt;&lt;span class=&quot;token environment constant&quot;&gt;PATH&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&quot;&lt;span class=&quot;token environment constant&quot;&gt;$PATH&lt;/span&gt;:/usr/local/bin&quot;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h2 id=&quot;ensure-that-unicode-filenames-arent-mangled-by-hfs&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#ensure-that-unicode-filenames-arent-mangled-by-hfs&quot; aria-label=&quot;ensure that unicode filenames arent mangled by hfs permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Ensure that unicode filenames aren&apos;t mangled by HFS&lt;/h2&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;shell&quot;&gt;&lt;pre class=&quot;language-shell&quot;&gt;&lt;code class=&quot;language-shell&quot;&gt;&lt;span class=&quot;token function&quot;&gt;git&lt;/span&gt; config &lt;span class=&quot;token parameter variable&quot;&gt;--global&lt;/span&gt; core.precomposeUnicode &lt;span class=&quot;token boolean&quot;&gt;true&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;When &lt;code class=&quot;language-text&quot;&gt;core.precomposeUnicode=true&lt;/code&gt;, Git reverts the unicode decomposition of filenames done by Mac OS. This is useful when sharing a repository between Mac OS and Linux or Windows.&lt;/p&gt;
&lt;h2 id=&quot;fetch-devtools-source&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#fetch-devtools-source&quot; aria-label=&quot;fetch devtools source permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Fetch DevTools Source&lt;/h2&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;shell&quot;&gt;&lt;pre class=&quot;language-shell&quot;&gt;&lt;code class=&quot;language-shell&quot;&gt;&lt;span class=&quot;token builtin class-name&quot;&gt;cd&lt;/span&gt; ~/Desktop
&lt;span class=&quot;token function&quot;&gt;mkdir&lt;/span&gt; chrome-devtools &lt;span class=&quot;token operator&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class=&quot;token builtin class-name&quot;&gt;cd&lt;/span&gt; chrome-devtools
fetch devtools-frontend&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h2 id=&quot;prepare-to-build-devtools&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#prepare-to-build-devtools&quot; aria-label=&quot;prepare to build devtools permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Prepare to build DevTools&lt;/h2&gt;
&lt;p&gt;You only need to do this once... don&apos;t do it every time you build!&lt;/p&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;shell&quot;&gt;&lt;pre class=&quot;language-shell&quot;&gt;&lt;code class=&quot;language-shell&quot;&gt;&lt;span class=&quot;token builtin class-name&quot;&gt;cd&lt;/span&gt; ~/Desktop/chrome-devtools/devtools-frontend
gn gen out/Default &lt;span class=&quot;token parameter variable&quot;&gt;--args&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&apos;cc_wrapper = &quot;ccache&quot; is_debug = true symbol_level = 2&apos;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h2 id=&quot;build-devtools&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#build-devtools&quot; aria-label=&quot;build devtools permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Build DevTools&lt;/h2&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;shell&quot;&gt;&lt;pre class=&quot;language-shell&quot;&gt;&lt;code class=&quot;language-shell&quot;&gt;&lt;span class=&quot;token builtin class-name&quot;&gt;cd&lt;/span&gt; ~/Desktop/chrome-devtools/devtools-frontend
autoninja &lt;span class=&quot;token parameter variable&quot;&gt;-C&lt;/span&gt; out/Default&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h2 id=&quot;fetch-chromium-source&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#fetch-chromium-source&quot; aria-label=&quot;fetch chromium source permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Fetch Chromium Source&lt;/h2&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;shell&quot;&gt;&lt;pre class=&quot;language-shell&quot;&gt;&lt;code class=&quot;language-shell&quot;&gt;&lt;span class=&quot;token builtin class-name&quot;&gt;cd&lt;/span&gt; ~/Desktop
&lt;span class=&quot;token function&quot;&gt;mkdir&lt;/span&gt; chromium &lt;span class=&quot;token operator&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class=&quot;token builtin class-name&quot;&gt;cd&lt;/span&gt; chromium
fetch chromium&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h2 id=&quot;remove-the-built-in-devtools&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#remove-the-built-in-devtools&quot; aria-label=&quot;remove the built in devtools permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Remove the built-in DevTools&lt;/h2&gt;
&lt;p&gt;We need to remove the DevTools that come with a chromium checkout because we need to use the most up-to-date version, which we have checked out under &lt;code class=&quot;language-text&quot;&gt;devtools-frontend&lt;/code&gt;.&lt;/p&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;shell&quot;&gt;&lt;pre class=&quot;language-shell&quot;&gt;&lt;code class=&quot;language-shell&quot;&gt;&lt;span class=&quot;token builtin class-name&quot;&gt;cd&lt;/span&gt; ~/Desktop/chromium&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Edit &lt;code class=&quot;language-text&quot;&gt;.gclient&lt;/code&gt; and add this to the &lt;code class=&quot;language-text&quot;&gt;custom_deps&lt;/code&gt; section:&lt;/p&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;shell&quot;&gt;&lt;pre class=&quot;language-shell&quot;&gt;&lt;code class=&quot;language-shell&quot;&gt;&lt;span class=&quot;token string&quot;&gt;&quot;src/third_party/devtools-frontend/src&quot;&lt;/span&gt;&lt;span class=&quot;token builtin class-name&quot;&gt;:&lt;/span&gt; None,&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Then run the following to remove the built-in DevTools files:&lt;/p&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;shell&quot;&gt;&lt;pre class=&quot;language-shell&quot;&gt;&lt;code class=&quot;language-shell&quot;&gt;&lt;span class=&quot;token builtin class-name&quot;&gt;cd&lt;/span&gt; ~/Desktop/chromium/src
gclient &lt;span class=&quot;token function&quot;&gt;sync&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-D&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h2 id=&quot;symlink-your-devtools-repository-so-it-will-be-built-with-chromium&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#symlink-your-devtools-repository-so-it-will-be-built-with-chromium&quot; aria-label=&quot;symlink your devtools repository so it will be built with chromium permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Symlink your DevTools Repository so it will be built with Chromium&lt;/h2&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;shell&quot;&gt;&lt;pre class=&quot;language-shell&quot;&gt;&lt;code class=&quot;language-shell&quot;&gt;&lt;span class=&quot;token builtin class-name&quot;&gt;cd&lt;/span&gt; ~/Desktop
&lt;span class=&quot;token function&quot;&gt;ln&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-s&lt;/span&gt; devtools/devtools-frontend chromium/src/third_party/devtools-frontend/src&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h2 id=&quot;prepare-to-build-chromium&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#prepare-to-build-chromium&quot; aria-label=&quot;prepare to build chromium permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Prepare to build Chromium&lt;/h2&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;shell&quot;&gt;&lt;pre class=&quot;language-shell&quot;&gt;&lt;code class=&quot;language-shell&quot;&gt;&lt;span class=&quot;token builtin class-name&quot;&gt;cd&lt;/span&gt; ~/Desktop/chromium/src
gn gen out/Default &lt;span class=&quot;token parameter variable&quot;&gt;--args&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&apos;cc_wrapper = &quot;ccache&quot; is_debug = true is_component_build = true symbol_level = 2&apos;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h2 id=&quot;build-chromium&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#build-chromium&quot; aria-label=&quot;build chromium permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Build Chromium&lt;/h2&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;shell&quot;&gt;&lt;pre class=&quot;language-shell&quot;&gt;&lt;code class=&quot;language-shell&quot;&gt;&lt;span class=&quot;token builtin class-name&quot;&gt;cd&lt;/span&gt; ~/Desktop/chromium/src
autoninja &lt;span class=&quot;token parameter variable&quot;&gt;-C&lt;/span&gt; out/Default chrome&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h2 id=&quot;run-chromium&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#run-chromium&quot; aria-label=&quot;run chromium permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Run Chromium&lt;/h2&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;shell&quot;&gt;&lt;pre class=&quot;language-shell&quot;&gt;&lt;code class=&quot;language-shell&quot;&gt;~/Desktop/chromium/src/out/Default/Chromium.app/Contents/MacOS/Chromium&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h2 id=&quot;this-is-a-lot-to-remember-is-there-another-way&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#this-is-a-lot-to-remember-is-there-another-way&quot; aria-label=&quot;this is a lot to remember is there another way permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;This is a lot to remember, is there another way?&lt;/h2&gt;
&lt;p&gt;Yes, this is a lot to remember and I am sure it will change over time. Here are a couple of aliases called &lt;code class=&quot;language-text&quot;&gt;cu&lt;/code&gt; and &lt;code class=&quot;language-text&quot;&gt;cdu&lt;/code&gt; that you can add to your &lt;code class=&quot;language-text&quot;&gt;~/.zshrc&lt;/code&gt; to make it easier to run these tasks.&lt;/p&gt;
&lt;p&gt;After adding the aliases run &lt;code class=&quot;language-text&quot;&gt;source ~/.zshrc&lt;/code&gt; in your shell to apply the changes.&lt;/p&gt;
&lt;p&gt;Please make sure that the paths match those on your computer and use &lt;code class=&quot;language-text&quot;&gt;cu -h&lt;/code&gt; or &lt;code class=&quot;language-text&quot;&gt;cdu -h&lt;/code&gt; for help:&lt;/p&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;shell&quot;&gt;&lt;pre class=&quot;language-shell&quot;&gt;&lt;code class=&quot;language-shell&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;token function-name function&quot;&gt;cu&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token builtin class-name&quot;&gt;local&lt;/span&gt; &lt;span class=&quot;token assign-left variable&quot;&gt;current&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;&lt;span class=&quot;token variable&quot;&gt;$(&lt;/span&gt;&lt;span class=&quot;token builtin class-name&quot;&gt;pwd&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
  &lt;span class=&quot;token builtin class-name&quot;&gt;cd&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;&lt;span class=&quot;token environment constant&quot;&gt;$HOME&lt;/span&gt;/Desktop/chromium/src&quot;&lt;/span&gt;

  &lt;span class=&quot;token keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$#&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-eq&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;then&lt;/span&gt;
    &lt;span class=&quot;token builtin class-name&quot;&gt;echo&lt;/span&gt; usage: cu &lt;span class=&quot;token punctuation&quot;&gt;\&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;-c &lt;span class=&quot;token parameter variable&quot;&gt;-g&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-b&lt;/span&gt; -h&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;
  &lt;span class=&quot;token keyword&quot;&gt;fi&lt;/span&gt;

  &lt;span class=&quot;token keyword&quot;&gt;while&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;&lt;span class=&quot;token variable&quot;&gt;$1&lt;/span&gt;&quot;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;!=&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;&quot;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;do&lt;/span&gt;
    &lt;span class=&quot;token keyword&quot;&gt;case&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$1&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;in&lt;/span&gt;
      &lt;span class=&quot;token parameter variable&quot;&gt;-c&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; --clobber&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
        &lt;span class=&quot;token builtin class-name&quot;&gt;echo&lt;/span&gt; Clobbering&lt;span class=&quot;token punctuation&quot;&gt;..&lt;/span&gt;.
        &lt;span class=&quot;token function&quot;&gt;rm&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-rf&lt;/span&gt; out/Default
        &lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
      &lt;span class=&quot;token parameter variable&quot;&gt;-g&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;--gen&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
        &lt;span class=&quot;token builtin class-name&quot;&gt;echo&lt;/span&gt; Generating out/Default&lt;span class=&quot;token punctuation&quot;&gt;..&lt;/span&gt;.
        gn gen out/Default &lt;span class=&quot;token parameter variable&quot;&gt;--args&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&apos;cc_wrapper = &quot;ccache&quot; is_debug = true is_component_build = true symbol_level = 2&apos;&lt;/span&gt;
        &lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
      &lt;span class=&quot;token parameter variable&quot;&gt;-u&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;--update&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
        &lt;span class=&quot;token builtin class-name&quot;&gt;echo&lt;/span&gt; Updating third_party repos and running pre-compile hooks&lt;span class=&quot;token punctuation&quot;&gt;..&lt;/span&gt;.
        gclient &lt;span class=&quot;token function&quot;&gt;sync&lt;/span&gt;
        &lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
      &lt;span class=&quot;token parameter variable&quot;&gt;-b&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;--build&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
        &lt;span class=&quot;token builtin class-name&quot;&gt;echo&lt;/span&gt; Building Chromium with autoninja&lt;span class=&quot;token punctuation&quot;&gt;..&lt;/span&gt;.
        autoninja &lt;span class=&quot;token parameter variable&quot;&gt;-C&lt;/span&gt; out/Default chrome
        &lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
      &lt;span class=&quot;token parameter variable&quot;&gt;-h&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;--help&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
        cu-help
        &lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
      * &lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
        cu-help
    &lt;span class=&quot;token keyword&quot;&gt;esac&lt;/span&gt;
    &lt;span class=&quot;token builtin class-name&quot;&gt;shift&lt;/span&gt;
  &lt;span class=&quot;token keyword&quot;&gt;done&lt;/span&gt;

  &lt;span class=&quot;token builtin class-name&quot;&gt;cd&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;&lt;span class=&quot;token variable&quot;&gt;$current&lt;/span&gt;&quot;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;token keyword&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;token function-name function&quot;&gt;cdu&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token builtin class-name&quot;&gt;local&lt;/span&gt; &lt;span class=&quot;token assign-left variable&quot;&gt;current&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;&lt;span class=&quot;token variable&quot;&gt;$(&lt;/span&gt;&lt;span class=&quot;token builtin class-name&quot;&gt;pwd&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
  &lt;span class=&quot;token builtin class-name&quot;&gt;cd&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;&lt;span class=&quot;token environment constant&quot;&gt;$HOME&lt;/span&gt;/Desktop/chromium/src/third_party/devtools-frontend/src&quot;&lt;/span&gt;

  &lt;span class=&quot;token keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$#&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-eq&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;then&lt;/span&gt;
    &lt;span class=&quot;token builtin class-name&quot;&gt;echo&lt;/span&gt; usage: cdu &lt;span class=&quot;token punctuation&quot;&gt;\&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;-c &lt;span class=&quot;token parameter variable&quot;&gt;-g&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-b&lt;/span&gt; -h&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;
  &lt;span class=&quot;token keyword&quot;&gt;fi&lt;/span&gt;

  &lt;span class=&quot;token keyword&quot;&gt;while&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;&lt;span class=&quot;token variable&quot;&gt;$1&lt;/span&gt;&quot;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;!=&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;&quot;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;do&lt;/span&gt;
    &lt;span class=&quot;token keyword&quot;&gt;case&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$1&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;in&lt;/span&gt;
      &lt;span class=&quot;token parameter variable&quot;&gt;-c&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; --clobber&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
        &lt;span class=&quot;token builtin class-name&quot;&gt;echo&lt;/span&gt; Clobbering&lt;span class=&quot;token punctuation&quot;&gt;..&lt;/span&gt;.
        &lt;span class=&quot;token function&quot;&gt;rm&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-rf&lt;/span&gt; out/Default
        &lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
      &lt;span class=&quot;token parameter variable&quot;&gt;-g&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;--gen&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
        &lt;span class=&quot;token builtin class-name&quot;&gt;echo&lt;/span&gt; Generating out/Default&lt;span class=&quot;token punctuation&quot;&gt;..&lt;/span&gt;.
        gn gen out/Default &lt;span class=&quot;token parameter variable&quot;&gt;--args&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&apos;cc_wrapper = &quot;ccache&quot; is_debug = true symbol_level = 2&apos;&lt;/span&gt;
        &lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
      &lt;span class=&quot;token parameter variable&quot;&gt;-u&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;--update&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
        &lt;span class=&quot;token builtin class-name&quot;&gt;echo&lt;/span&gt; Updating third_party repos and running pre-compile hooks&lt;span class=&quot;token punctuation&quot;&gt;..&lt;/span&gt;.
        gclient &lt;span class=&quot;token function&quot;&gt;sync&lt;/span&gt;
        &lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
      &lt;span class=&quot;token parameter variable&quot;&gt;-b&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;--build&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
        &lt;span class=&quot;token builtin class-name&quot;&gt;echo&lt;/span&gt; Building Chrome DevTools Frontend with autoninja&lt;span class=&quot;token punctuation&quot;&gt;..&lt;/span&gt;.
        autoninja &lt;span class=&quot;token parameter variable&quot;&gt;-C&lt;/span&gt; out/Default
        &lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
      &lt;span class=&quot;token parameter variable&quot;&gt;-h&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;--help&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
        cdu-help
        &lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
      * &lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
        cdu-help
    &lt;span class=&quot;token keyword&quot;&gt;esac&lt;/span&gt;
    &lt;span class=&quot;token builtin class-name&quot;&gt;shift&lt;/span&gt;
  &lt;span class=&quot;token keyword&quot;&gt;done&lt;/span&gt;

  &lt;span class=&quot;token builtin class-name&quot;&gt;cd&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;&lt;span class=&quot;token variable&quot;&gt;$current&lt;/span&gt;&quot;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;token keyword&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;token function-name function&quot;&gt;cu-help&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token builtin class-name&quot;&gt;printf&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;usage: cu [arguments]&lt;span class=&quot;token entity&quot; title=&quot;\n&quot;&gt;\n&lt;/span&gt;&lt;span class=&quot;token entity&quot; title=&quot;\n&quot;&gt;\n&lt;/span&gt;&quot;&lt;/span&gt;
  &lt;span class=&quot;token builtin class-name&quot;&gt;printf&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;Tools to help manage the chromium codebase.&lt;span class=&quot;token entity&quot; title=&quot;\n&quot;&gt;\n&lt;/span&gt;&lt;span class=&quot;token entity&quot; title=&quot;\n&quot;&gt;\n&lt;/span&gt;&quot;&lt;/span&gt;
  &lt;span class=&quot;token builtin class-name&quot;&gt;printf&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;-c, --clobber&lt;span class=&quot;token entity&quot; title=&quot;\t&quot;&gt;\t&lt;/span&gt;%s&lt;span class=&quot;token entity&quot; title=&quot;\n&quot;&gt;\n&lt;/span&gt;&quot;&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&apos;Erase out/Default]&apos;&lt;/span&gt;
  &lt;span class=&quot;token builtin class-name&quot;&gt;printf&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;-g, --gen&lt;span class=&quot;token entity&quot; title=&quot;\t&quot;&gt;\t&lt;/span&gt;%s&lt;span class=&quot;token entity&quot; title=&quot;\n&quot;&gt;\n&lt;/span&gt;&quot;&lt;/span&gt;     &lt;span class=&quot;token string&quot;&gt;&apos;Generate out/Default.&apos;&lt;/span&gt;
  &lt;span class=&quot;token builtin class-name&quot;&gt;printf&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;-u, --update&lt;span class=&quot;token entity&quot; title=&quot;\t&quot;&gt;\t&lt;/span&gt;%s&lt;span class=&quot;token entity&quot; title=&quot;\n&quot;&gt;\n&lt;/span&gt;&quot;&lt;/span&gt;  &lt;span class=&quot;token string&quot;&gt;&apos;Update third_party repos and run pre-compile hooks.&apos;&lt;/span&gt;
  &lt;span class=&quot;token builtin class-name&quot;&gt;printf&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;-b, --build&lt;span class=&quot;token entity&quot; title=&quot;\t&quot;&gt;\t&lt;/span&gt;%s&lt;span class=&quot;token entity&quot; title=&quot;\n&quot;&gt;\n&lt;/span&gt;&quot;&lt;/span&gt;   &lt;span class=&quot;token string&quot;&gt;&apos;Build Chromium with autoninja.&apos;&lt;/span&gt;
  &lt;span class=&quot;token builtin class-name&quot;&gt;printf&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;-h, --help&lt;span class=&quot;token entity&quot; title=&quot;\t&quot;&gt;\t&lt;/span&gt;%s&lt;span class=&quot;token entity&quot; title=&quot;\n&quot;&gt;\n&lt;/span&gt;&quot;&lt;/span&gt;    &lt;span class=&quot;token string&quot;&gt;&apos;Show this help message.&apos;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;token keyword&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;token function-name function&quot;&gt;cdu-help&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token builtin class-name&quot;&gt;printf&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;usage: cdu [arguments]&lt;span class=&quot;token entity&quot; title=&quot;\n&quot;&gt;\n&lt;/span&gt;&lt;span class=&quot;token entity&quot; title=&quot;\n&quot;&gt;\n&lt;/span&gt;&quot;&lt;/span&gt;
  &lt;span class=&quot;token builtin class-name&quot;&gt;printf&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;Tools to help manage the chrome devtools frontend codebase.&lt;span class=&quot;token entity&quot; title=&quot;\n&quot;&gt;\n&lt;/span&gt;&lt;span class=&quot;token entity&quot; title=&quot;\n&quot;&gt;\n&lt;/span&gt;&quot;&lt;/span&gt;
  &lt;span class=&quot;token builtin class-name&quot;&gt;printf&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;-c, --clobber&lt;span class=&quot;token entity&quot; title=&quot;\t&quot;&gt;\t&lt;/span&gt;%s&lt;span class=&quot;token entity&quot; title=&quot;\n&quot;&gt;\n&lt;/span&gt;&quot;&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&apos;Erase out/Default]&apos;&lt;/span&gt;
  &lt;span class=&quot;token builtin class-name&quot;&gt;printf&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;-g, --gen&lt;span class=&quot;token entity&quot; title=&quot;\t&quot;&gt;\t&lt;/span&gt;%s&lt;span class=&quot;token entity&quot; title=&quot;\n&quot;&gt;\n&lt;/span&gt;&quot;&lt;/span&gt;     &lt;span class=&quot;token string&quot;&gt;&apos;Generate out/Default.&apos;&lt;/span&gt;
  &lt;span class=&quot;token builtin class-name&quot;&gt;printf&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;-u, --update&lt;span class=&quot;token entity&quot; title=&quot;\t&quot;&gt;\t&lt;/span&gt;%s&lt;span class=&quot;token entity&quot; title=&quot;\n&quot;&gt;\n&lt;/span&gt;&quot;&lt;/span&gt;  &lt;span class=&quot;token string&quot;&gt;&apos;Update third_party repos and run pre-compile hooks.&apos;&lt;/span&gt;
  &lt;span class=&quot;token builtin class-name&quot;&gt;printf&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;-b, --build&lt;span class=&quot;token entity&quot; title=&quot;\t&quot;&gt;\t&lt;/span&gt;%s&lt;span class=&quot;token entity&quot; title=&quot;\n&quot;&gt;\n&lt;/span&gt;&quot;&lt;/span&gt;   &lt;span class=&quot;token string&quot;&gt;&apos;Build Chrome DevTools Frontend with autoninja.&apos;&lt;/span&gt;
  &lt;span class=&quot;token builtin class-name&quot;&gt;printf&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;-h, --help&lt;span class=&quot;token entity&quot; title=&quot;\t&quot;&gt;\t&lt;/span&gt;%s&lt;span class=&quot;token entity&quot; title=&quot;\n&quot;&gt;\n&lt;/span&gt;&quot;&lt;/span&gt;    &lt;span class=&quot;token string&quot;&gt;&apos;Show this help message.&apos;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h2 id=&quot;but-there-is-a-mistake-or-something-is-missing-from-this-article&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#but-there-is-a-mistake-or-something-is-missing-from-this-article&quot; aria-label=&quot;but there is a mistake or something is missing from this article permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;But there is a mistake or something is missing from this article&lt;/h2&gt;
&lt;p&gt;I am sure this article is far from perfect so feel free to comment and I will take your advice and make it better... I have just got everything building so I am sure I am missing something.&lt;/p&gt;
&lt;h2 id=&quot;but-i-didnt-explain-how-to-contribute&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#but-i-didnt-explain-how-to-contribute&quot; aria-label=&quot;but i didnt explain how to contribute permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;But I didn&apos;t explain how to contribute&lt;/h2&gt;
&lt;p&gt;That is explained clearly along with some of the information in this article on the &lt;a href=&quot;https://commondatastorage.googleapis.com/chrome-infra-docs/flat/depot_tools/docs/html/depot_tools_tutorial.html&quot;&gt;depot_tools manual page&lt;/a&gt;. I will add an article explaining how to contribute when I have time.&lt;/p&gt;
&lt;h2 id=&quot;useful-links&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#useful-links&quot; aria-label=&quot;useful links permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Useful Links&lt;/h2&gt;
&lt;p&gt;Again, if you know of anything up-to-date that you think I should include then please let me know. Here is my list so far:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href=&quot;https://chromium.googlesource.com/chromium/src/+/master/docs/mac_build_instructions.md&quot;&gt;Checking out and building Chromium for Mac&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://chromedevtools.github.io/devtools-protocol/&quot;&gt;Chrome DevTools Protocol Viewer (official)&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://vanilla.aslushnikov.com/&quot;&gt;Chrome DevTools Protocol Viewer (unofficial)&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://bugs.chromium.org/p/chromium/issues/list?mode=grid&quot;&gt;Chromium bug list&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://codereview.chromium.org/&quot;&gt;Chromium Code Reviews&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://source.chromium.org/&quot;&gt;Chromium Code Search&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://ci.chromium.org/p/devtools-frontend/g/main/console&quot;&gt;Chromium devtools-frontend Main Ci Console&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://chromium.googlesource.com/chromium/src/+/master/styleguide/web/web.md&quot;&gt;Chromium Web Development Style Guide&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://ci.chromium.org/p/chromium/g/main/console&quot;&gt;Chromium&apos;s Main Ci Console&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://docs.google.com/document/d/1c-COD2kaK__5iMM5SEx-PzNA7HFmgttcYfOHHX0HaOM/edit&quot;&gt;Contributing to Chrome DevTools Protocol&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://docs.google.com/document/d/1WNF-KqRSzPLUUfZqQG5AFeU_Ll8TfWYcJasa_XGf7ro/edit#heading=h.xz439gqj1lwr&quot;&gt;Contributing to Chrome DevTools&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://meowni.ca/posts/chromium-101/&quot;&gt;Contributing to Chromium: an illustrated guide&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://dev.chromium.org/developers/how-tos/debugging-on-os-x&quot;&gt;Debugging Chromium on macOS&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://commondatastorage.googleapis.com/chrome-infra-docs/flat/depot_tools/docs/html/depot_tools_tutorial.html&quot;&gt;depot_tools_tutorial Manual Page&lt;/a&gt;: This has a lot of information about how to get the source contribute to the Chromium codebase.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/ChromeDevTools/devtools-frontend&quot;&gt;devtools-frontend GitHub repository (a couple of days behind their Google repository)&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://chromium.googlesource.com/devtools/devtools-frontend&quot;&gt;devtools-frontend Google repository&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://gn.googlesource.com/gn/+/master/docs/quick_start.md&quot;&gt;GN Quick Start guide&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://dev.chromium.org/developers/how-tos&quot;&gt;The Chromium Projects How-Tos&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://blogs.windows.com/msedgedev/&quot;&gt;The Microsoft Edge Team Blog&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://chromium.googlesource.com/chromium/src/+/master/docs/ccache_mac.md&quot;&gt;Using CCache on Mac&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://chromium.googlesource.com/chromium/src/+/master/docs/vscode.md#Setup-For-Chromium&quot;&gt;VSCode Dev - Use VSCode to hack on Chromium&lt;/a&gt;.&lt;/li&gt;
&lt;/ol&gt;</content:encoded><author>michael@ratcliffefamily.org</author></item><item><title><![CDATA[Running ESLint in Atom for Mozilla Development]]></title><description><![CDATA[Due to some recent changes in the way that we use eslint to check that our coding style linting Mozilla source code in Atom has been broken…]]></description><link>https://flailingmonkey.com/running-eslint-in-atom-for-mozilla-development/</link><guid isPermaLink="false">https://flailingmonkey.com/running-eslint-in-atom-for-mozilla-development/</guid><category><![CDATA[Mozilla]]></category><dc:creator><![CDATA[Mike Ratcliffe]]></dc:creator><pubDate>Tue, 18 Oct 2016 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Due to some recent changes in the way that we use eslint to check that our coding style linting Mozilla source code in Atom has been broken for a month or two.&lt;/p&gt;
&lt;p&gt;I have recently spent some time working on Atom&apos;s linter-eslint plugin making it possible to bring all of that linting goodness back to life!&lt;/p&gt;
&lt;p&gt;From the root of the project type:&lt;/p&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;shell&quot;&gt;&lt;pre class=&quot;language-shell&quot;&gt;&lt;code class=&quot;language-shell&quot;&gt;./mach eslint &lt;span class=&quot;token parameter variable&quot;&gt;--setup&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Install the linter-eslint package v.8.00 or above. Then go to the package settings and enable the following options:&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 651px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/cfaa876d0de5e2622bb2e230bb326b81/1ac66/Eslint-atom-settings.png&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 127.7456647398844%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAaCAYAAAC3g3x9AAAACXBIWXMAAAsTAAALEwEAmpwYAAACkUlEQVR42p1Vya6bQBDk/z8qlxzyJB8iRZGenh9mX8wyLMaAn33odDUzeIkd7BxaMxqgpqu6urHW6w9arVb04+2NHMehw+FAfd/TMAyy7vf7l8KK4pj8ICDX8yiMIsrznLIso+12S0pVAtp13fOA+BBAcZJQEIYM7lPgB+S5HkX6AlWpp8BwsZU1ipqmobZtZW30WlWVxG63E/rPhGT4LftFoB3HiWTq+z6FYURt09I4jlrHfs7AxGMNbY+L4QqQ47oUsJ7QtKrrc9Yckmk/zAV7CPi78ihjnYqiEL2gaZbllKapnEuBdBgZirKkbnc/S+tnblPAVKXCDFroAFjJH+Z5IaCJvgDPAI6M7wKmYUye75HLVc2LnGqmikAmoDpoiib6YYEyHsLMpgC3IUCX+6Uqx1xhlwsCH6IICNAxe8RLxgYtpZRQrHkPuuJDTb3mcwDey/42BBDCY2MOerYG6D+KYRj/TRm+m1ouEA/COqCMjJG5ZK9gl2nfcNYLvZzOg8G2N/S52XDVff5wakd0zKWe7QO7zIC59hX85XKnANTjC6DfM7r9pSFuNfyh0fF4otPpSF9fh9lO1xou2AZZmdEFCyFbtF3KZ1gbXXlj9EXblEwVHyYCsJXiYEhgYKBAxkp1NdloyZNWFMU8rkKOQAZqLKOMI5kucbglNxtH9mCCFjW+PAOdx5sFXaCVCaPV5b9lHK+1mtsS601/W9v0PPpjpu7z+IeFQD/g7COdcRSFcp7gnGUBKzAK9Dq17o6suqnnfp37lsMMVYT5RVy+Z86k7/W7XccZflfvXNmtDNacB6vRat/vp7hoSxOPPCiU3+0Pqaht2yI+uma9/qSIi/Jf/2W0VqlK3bPqqodfBQPgH6EouC4b6R6vAAAAAElFTkSuQmCC&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Eslint Settings&quot;
        title=&quot;&quot;
        src=&quot;/static/cfaa876d0de5e2622bb2e230bb326b81/1ac66/Eslint-atom-settings.png&quot;
        srcset=&quot;/static/cfaa876d0de5e2622bb2e230bb326b81/991de/Eslint-atom-settings.png 173w,
/static/cfaa876d0de5e2622bb2e230bb326b81/e4d6b/Eslint-atom-settings.png 345w,
/static/cfaa876d0de5e2622bb2e230bb326b81/1ac66/Eslint-atom-settings.png 651w&quot;
        sizes=&quot;(max-width: 651px) 100vw, 651px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Figure 1: Eslint Settings in Atom&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;Once done, you should see errors and warnings as shown in the screenshot below:&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 651px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/d48deeccc77860abfaf777f1dc188dd4/1ac66/Eslint-atom.png&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 91.90751445086705%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAASCAYAAABb0P4QAAAACXBIWXMAAAsTAAALEwEAmpwYAAADHElEQVR42oVUyY7bRhTU/3+ED8kfJD4YiI9GYAQ5eGZEcd9EiZtISuIirlKlXkszyYwPaaDQC5vV9d6r7pW5ecGTrmGjW9A2JjbEer3By4uG5+c1DNOGzm+m9IbF7wZ0tc+AaTnwvEDBcVzOLay8MIYfRPCCLRxvi6LMMY5nnM8pjsc9qmqH0ynhPHmb932JZWlwvTaY5zNutw770IX9/ExCfwvL8WDaHnTTQZ4n3Nzicjmg6w5o2wxNkz3GuUJ/KRQZ0JGsZT/C+vE3vv/2O1aOGyoiwZqhZPmBhAtVTljmBdM0U8V877k+cTxOk5rLnmEYcSNlxJDd73+R0HtPmGY55mHgxoE/LgxvRD+QnPPlcsHSPcD59XpVh0tLwi2iH+t7yKJSiC3HZ8gFw+uQpTlqjo+nmuHzZ6q6iZrh3l+pUJQx5jthEGL3SuiSTGDYLvZxojaWVYU8jlmQWin5v7ZIinjwW8gGLfBEu/g8SVrTNGgbFochX4Yeo4Tbthg5H0fJ3/juoNtD6cp2g0cObWj0W5JmuDEvZVkiyzLsqNRNcnXA1HYYhJC5HaefCQUrlyGblguLttkYNuI4Ba4L1dU4lQXO7NPTGQXVHamy6lpWfSLZQhfMarws878KDdOCTR8KLIb9qrCqayRViZTISJxQcXqs4BcF104oeVDXX34mdP1QKTRZEF0UJnfCgVXt+p4YlN96qutZ/Z6hX7jes9KvlvmQw4cPSSY+3DNkITzsdrxOAZJ9jIqqR5JJYUZVmB4zD7ldb+/ypwj/W2Vtcy+KtOp4RH4+49A2iImChDXVHZkKuUEf2xuhJw8DC6P8SIR7PgLaGqmuI9jS/YSTJAh8H4mmIeF6XZTq+o1ym8ZRYXiMVZXlhsjjYDGPBq+Q++kTrM+foZNEiHzC8zya30PEVKRpSsOfUFPtR6zk2ZKiGI/7bG4jRL/+Av/LF1jbEBHzuIsihEFA+Hy+SpyYDvlZFUrQC3p6tMdKkTF/Fo1tPa2hyUP6x1do3/6EbnOdMC15XPmo6gYCRrBjocSv+aFARsS8rlG0o/oY/wAEfUfhKV3MTAAAAABJRU5ErkJggg==&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Eslint in Atom&quot;
        title=&quot;&quot;
        src=&quot;/static/d48deeccc77860abfaf777f1dc188dd4/1ac66/Eslint-atom.png&quot;
        srcset=&quot;/static/d48deeccc77860abfaf777f1dc188dd4/991de/Eslint-atom.png 173w,
/static/d48deeccc77860abfaf777f1dc188dd4/e4d6b/Eslint-atom.png 345w,
/static/d48deeccc77860abfaf777f1dc188dd4/1ac66/Eslint-atom.png 651w&quot;
        sizes=&quot;(max-width: 651px) 100vw, 651px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Figure 1: Eslint in Atom&lt;/figcaption&gt;
&lt;/figure&gt;</content:encoded><author>michael@ratcliffefamily.org</author></item><item><title><![CDATA[Installing VPN from the Linux Command Line]]></title><description><![CDATA[To stop people snooping on what we are doing on the internet or when restrictive governments prevent people from accessing popular websites…]]></description><link>https://flailingmonkey.com/installing-vpn-from-the-linux-command-line/</link><guid isPermaLink="false">https://flailingmonkey.com/installing-vpn-from-the-linux-command-line/</guid><category><![CDATA[Linux]]></category><dc:creator><![CDATA[Mike Ratcliffe]]></dc:creator><pubDate>Wed, 02 Sep 2015 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;To stop people snooping on what we are doing on the internet or when restrictive governments prevent people from accessing popular websites you can use a VPN to protect your privacy and allow you to access the internet without restrictions.&lt;/p&gt;
&lt;p&gt;Most VPN providers provide simple step-by-step instructions to get VPN set up on most operating systems but many fail to give instructions about how to autostart a VPN in a non graphical environment.&lt;/p&gt;
&lt;p&gt;The following will work with the files provided by most VPN providers with a couple of small changes:&lt;/p&gt;
&lt;p&gt;Of course, the url that your provider uses may be different:&lt;/p&gt;
&lt;figure&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;powershell&quot;&gt;&lt;pre class=&quot;language-powershell&quot;&gt;&lt;code class=&quot;language-powershell&quot;&gt;&lt;span class=&quot;token comment&quot;&gt;# Get the Files from your Provider&lt;/span&gt;
$ cd &lt;span class=&quot;token operator&quot;&gt;/&lt;/span&gt;tmp
$ wget https:&lt;span class=&quot;token operator&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;/&lt;/span&gt;www&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;privateinternetaccess&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;com/openvpn/openvpn&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;zip
$ unzip openvpn&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;zip

&lt;span class=&quot;token comment&quot;&gt;# Copy Certificates to /etc/openvpn&lt;/span&gt;

$ &lt;span class=&quot;token function&quot;&gt;cp&lt;/span&gt; ca&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;crt &lt;span class=&quot;token operator&quot;&gt;/&lt;/span&gt;etc/openvpn/
$ &lt;span class=&quot;token function&quot;&gt;cp&lt;/span&gt; crl&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;pem &lt;span class=&quot;token operator&quot;&gt;/&lt;/span&gt;etc/openvpn/

&lt;span class=&quot;token comment&quot;&gt;# Enable Autologin&lt;/span&gt;

$ nano &lt;span class=&quot;token operator&quot;&gt;/&lt;/span&gt;etc/openvpn/login&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;conf

&lt;span class=&quot;token comment&quot;&gt;# Edit file to contain your username and password on the first two lines:&lt;/span&gt;

your-privateinternetaccess-username
your-privateinternetaccess-password

&amp;lt;ctrl&gt;&amp;lt;x&gt; to &lt;span class=&quot;token keyword&quot;&gt;exit&lt;/span&gt; and Y to save&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;

$ chmod 400 &lt;span class=&quot;token operator&quot;&gt;/&lt;/span&gt;etc/openvpn/login&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;conf

&lt;span class=&quot;token comment&quot;&gt;# Point OpenVPN Towards the Right Files. The .ovpn files may&lt;/span&gt;

&lt;span class=&quot;token comment&quot;&gt;# not be by country so substitute them as appropriate.&lt;/span&gt;

$ nano Country&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;ovpn

&lt;span class=&quot;token comment&quot;&gt;# Edit the file to prefix the pem and crt paths with:&lt;/span&gt;

&lt;span class=&quot;token operator&quot;&gt;/&lt;/span&gt;etc/openvpn/

&lt;span class=&quot;token comment&quot;&gt;# Change the auth-user-pass line to read:&lt;/span&gt;

auth-user-pass &lt;span class=&quot;token operator&quot;&gt;/&lt;/span&gt;etc/openvpn/login&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;conf

&amp;lt;ctrl&gt;&amp;lt;x&gt; to &lt;span class=&quot;token keyword&quot;&gt;exit&lt;/span&gt; and Y to save&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;

$ &lt;span class=&quot;token function&quot;&gt;cp&lt;/span&gt; Country&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;ovpn &lt;span class=&quot;token operator&quot;&gt;/&lt;/span&gt;etc/openvpn/Country&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;conf

&lt;span class=&quot;token comment&quot;&gt;# Autostart the VPN. &quot;Country&quot; is the name of your .conf file without&lt;/span&gt;

&lt;span class=&quot;token comment&quot;&gt;# any extension so in my case Country.conf (see the previous steps).&lt;/span&gt;

$ nano &lt;span class=&quot;token operator&quot;&gt;/&lt;/span&gt;etc/default/openvpn

&lt;span class=&quot;token comment&quot;&gt;# Edit the file so it contains:&lt;/span&gt;

AUTOSTART=&lt;span class=&quot;token string&quot;&gt;&quot;Country&quot;&lt;/span&gt;

&lt;span class=&quot;token comment&quot;&gt;# Check that Autostart is Working&lt;/span&gt;

$ reboot
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
  &lt;figcaption&gt;Installing VPN from the Linux command line&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;To check if the VPN is running open lynx and go to google.com. It should take you to the specific countries site.&lt;/p&gt;
&lt;p&gt;That is it, you are done!&lt;/p&gt;</content:encoded><author>michael@ratcliffefamily.org</author></item><item><title><![CDATA[View jQuery and jQuery Live events in Firefox DevTools]]></title><description><![CDATA[A little while back we landed a feature that made it possible to interact with events from the markup panel of Firefox developer tools. A…]]></description><link>https://flailingmonkey.com/view-jquery-and-jquery-live-events-in-firefox-devtools/</link><guid isPermaLink="false">https://flailingmonkey.com/view-jquery-and-jquery-live-events-in-firefox-devtools/</guid><category><![CDATA[Mozilla]]></category><dc:creator><![CDATA[Mike Ratcliffe]]></dc:creator><pubDate>Thu, 28 Aug 2014 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;A little while back we &lt;a href=&quot;/view-dom-events-in-firefox-developer-tools/&quot;&gt;landed a feature&lt;/a&gt; that made it possible to interact with events from the markup panel of Firefox developer tools.&lt;/p&gt;
&lt;p&gt;A lot of people were excited about this but we soon realized that jQuery wraps event handlers in a proxy making all handlers look like this:&lt;/p&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;js&quot;&gt;&lt;pre class=&quot;language-js&quot;&gt;&lt;code class=&quot;language-js&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;fn&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;apply&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt; thisObject &lt;span class=&quot;token operator&quot;&gt;||&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;this&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; arguments &lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Numerous facepalms later and we now have support for jQuery and jQuery Live events. This support will be available in &lt;a href=&quot;https://nightly.mozilla.org/&quot;&gt;tonight&apos;s nightly&lt;/a&gt;:&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 690px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/98bed1fdbdcb48bf2d8dd8f0f29f76f2/e9beb/jquery-and-jquery-live-events.png&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 41.040462427745666%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAICAIAAAB2/0i6AAAACXBIWXMAAAsTAAALEwEAmpwYAAABmklEQVR42mP4////v3//gOSXL1/buieU1zZX1bdU17dV1rUAUVV9a0VtM5ABJCvAUkCyrLqhobVr07ZdDL9+//756zdQ/8uXr9x8Qk1tXEHI1s3ExsXE2tkMzABxrV3A4q5AroG5g4O7f/eEqQxwmz98+ODiFWDq7GNi5WRpZWNs7WRg425i7aRvam1gaqNvYg1k6JvaGICRpp5ZZm4Rw7JtB9cdurhi6/45c+YpqGkJScqIiEkIiYgJiogLikqASBBbDMoQBjGERCXYOHkMTcwZjFwCzb2idGy81Gz85JQ1RMSlxaXlIUgCxoAiKTkIkpZTlJFXUlTTZjDSN9PW1JGUkhGVUbR39XX1CrJz8XZ093Nw9QEiRzdfR1c/excfexdvBzc/W1c/SwevyLi0msaOsJgkBn1LX01TFwU9KwVdC2MHHwNHfy1rL20bby0bLyADSGrbeoMYtj4aJnbGJiYm1lZmjo42Dq56xmYMhubuuubOugYmWkY2mgaWIvLqgrJqQphITl1ERllFRVFFQ0VKXVlURlpSWREADNuOJ6Jrs1MAAAAASUVORK5CYII=&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;jQuery and jQuery Live events&quot;
        title=&quot;&quot;
        src=&quot;/static/98bed1fdbdcb48bf2d8dd8f0f29f76f2/1e043/jquery-and-jquery-live-events.png&quot;
        srcset=&quot;/static/98bed1fdbdcb48bf2d8dd8f0f29f76f2/991de/jquery-and-jquery-live-events.png 173w,
/static/98bed1fdbdcb48bf2d8dd8f0f29f76f2/e4d6b/jquery-and-jquery-live-events.png 345w,
/static/98bed1fdbdcb48bf2d8dd8f0f29f76f2/1e043/jquery-and-jquery-live-events.png 690w,
/static/98bed1fdbdcb48bf2d8dd8f0f29f76f2/e9beb/jquery-and-jquery-live-events.png 730w&quot;
        sizes=&quot;(max-width: 690px) 100vw, 690px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;jQuery and jQuery Live Events&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;Because library support is important we have created an API that allows developers and library authors to create &quot;event parsers&quot; that allow our tools to make sense of their event systems.&lt;/p&gt;
&lt;p&gt;This API is priviledged code so to create an event parser you will need to create a simple Firefox extension.&lt;/p&gt;
&lt;p&gt;The API looks like this:&lt;/p&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;js&quot;&gt;&lt;pre class=&quot;language-js&quot;&gt;&lt;code class=&quot;language-js&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;const&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;EventParsers&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;require&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&quot;devtools/toolkit/event-parsers&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;

&lt;span class=&quot;token keyword&quot;&gt;var&lt;/span&gt; parser &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token literal-property property&quot;&gt;id&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;myLibrary events&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;// Unique id&lt;/span&gt;
  &lt;span class=&quot;token function-variable function&quot;&gt;hasListeners&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token parameter&quot;&gt;node&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;token comment&quot;&gt;// Hunt for node&apos;s listeners and return true as soon as one is&lt;/span&gt;
    &lt;span class=&quot;token comment&quot;&gt;// encountered.&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;token function-variable function&quot;&gt;getListeners&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token parameter&quot;&gt;node&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;token comment&quot;&gt;// Hunt for node&apos;s listeners and return an array of objects&lt;/span&gt;
    &lt;span class=&quot;token comment&quot;&gt;// representing those listeners. Each object should look like this:&lt;/span&gt;
    &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
      &lt;span class=&quot;token literal-property property&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;click&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
      &lt;span class=&quot;token function-variable function&quot;&gt;handler&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;clicked&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;...&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;

      &lt;span class=&quot;token comment&quot;&gt;// These tags will be displayed as attributes in the events popup.&lt;/span&gt;
      &lt;span class=&quot;token literal-property property&quot;&gt;tags&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;jQuery,Live&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;

      &lt;span class=&quot;token comment&quot;&gt;// Hide or show fields&lt;/span&gt;
      &lt;span class=&quot;token literal-property property&quot;&gt;hide&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
        &lt;span class=&quot;token keyword&quot;&gt;debugger&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token boolean&quot;&gt;false&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;// Debugger icon&lt;/span&gt;
        &lt;span class=&quot;token literal-property property&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token boolean&quot;&gt;false&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;// Event type e.g. click&lt;/span&gt;
        &lt;span class=&quot;token literal-property property&quot;&gt;filename&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token boolean&quot;&gt;false&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
        &lt;span class=&quot;token literal-property property&quot;&gt;capturing&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token boolean&quot;&gt;false&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
        &lt;span class=&quot;token literal-property property&quot;&gt;dom0&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token boolean&quot;&gt;false&lt;/span&gt;
      &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;

      &lt;span class=&quot;token literal-property property&quot;&gt;override&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
      &lt;span class=&quot;token comment&quot;&gt;// The following can be overridden:&lt;/span&gt;
        &lt;span class=&quot;token literal-property property&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;click&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
        &lt;span class=&quot;token literal-property property&quot;&gt;origin&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;https://www.mozilla.com&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
        &lt;span class=&quot;token literal-property property&quot;&gt;searchString&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&apos;onclick=&quot;doSomething()&quot;&apos;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
        &lt;span class=&quot;token constant&quot;&gt;DOM0&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token boolean&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
        &lt;span class=&quot;token literal-property property&quot;&gt;capturing&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token boolean&quot;&gt;true&lt;/span&gt;
      &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
    &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
&lt;span class=&quot;token function-variable function&quot;&gt;normalizeHandler&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token parameter&quot;&gt;fnDO&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token comment&quot;&gt;// Take a handler debug object and use the debugger to walk the scope&lt;/span&gt;
  &lt;span class=&quot;token comment&quot;&gt;// chain to discover the function you would like to be displayed.&lt;/span&gt;

  &lt;span class=&quot;token comment&quot;&gt;// See https://hg.mozilla.org/integration/fx-team/diff/9add1ec0251d/toolkit/devtools/event-parsers.js#l1.98 for an example.&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;

EventParsers&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;registerEventParser&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;parser&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;We have bugs logged to add support for the following libraries:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=1044933&quot;&gt;Prototype&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=1044935&quot;&gt;YUI&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=1044936&quot;&gt;Mootools&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=1044939&quot;&gt;React&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=1044942&quot;&gt;Ember&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=1044944&quot;&gt;Angular&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You still here? What are you waiting for? &lt;a href=&quot;https://wiki.mozilla.org/DevTools/Hacking&quot;&gt;Go get hacking&lt;/a&gt;!&lt;/p&gt;</content:encoded><author>michael@ratcliffefamily.org</author></item><item><title><![CDATA[View DOM Events in Firefox Developer Tools]]></title><description><![CDATA[I recently realized that support for inspection of DOM events is very poor in pretty much all developer tools. Having seen Opera Dragonflies…]]></description><link>https://flailingmonkey.com/view-dom-events-in-firefox-developer-tools/</link><guid isPermaLink="false">https://flailingmonkey.com/view-dom-events-in-firefox-developer-tools/</guid><category><![CDATA[Mozilla]]></category><dc:creator><![CDATA[Mike Ratcliffe]]></dc:creator><pubDate>Mon, 21 Jul 2014 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;I recently realized that support for inspection of DOM events is very poor in pretty much all developer tools. Having seen Opera Dragonflies implementation some time ago I liked the way you could very easily see the scope of an event.&lt;/p&gt;
&lt;p&gt;I have used a similar design to add DOM event inspection to Firefox Developer Tools. The event icons are visible in the markup view and if you click on them you can see information about the event including it&apos;s handler. If you click the debugger icon at the top left of the popup it will take you to that handler in the debugger.&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 690px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/548ff983ec29d732d9b6b2c85ecab4d5/e9beb/visual-events-in-firefox-developer-tools.png&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 32.947976878612714%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAHCAIAAACHqfpvAAAACXBIWXMAAAsTAAALEwEAmpwYAAABfElEQVR42jWNyUrDQByH8wxNJpPJZJnJJG2Sic00UbCLiEtFXNAKUgui9eDFkycPngRPIm6FuoIXT4Kgb+AT6QMUbY3bn4/v9Pv4S4PB4OPjM/Pj0/NCo7my1m602sutrcZae7m5sdra3N7Z3ds/eHt/zzb9fn/wf71eT7p9ee08PF/e3a9vbrl+aMcVI66yKKVBCbOAUYYMQrzw8Oj06u6+0705ubg8716fdLrHZx3JExNusWK7oc2CHNBkFcmqBgCUAcwp31ZUCDBVC8MsiC0vyjBdTvJFN0qlpDQmRBWa1I9HypPzSa0uKtP/TJWq9dml5szckuNx0/EwoZgwZBGd+VYoJFFbjEbr+XS8kI5TUUO8jPiozst6VMHRtw0/ETGPRESLnHAfO65m2JpFDepKnp+KAg2CImOBgTSMLdNyVIhyMpAVNacABeq6nT2kyKKaSWBW/hgTR8qHI2mYL/GhJKn54ZACMcQW0HDW/AIQhka2JlqG+cdPzL4A4qNrgnuSMs4AAAAASUVORK5CYII=&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Visual Events in Firefox Developer Tools&quot;
        title=&quot;&quot;
        src=&quot;/static/548ff983ec29d732d9b6b2c85ecab4d5/1e043/visual-events-in-firefox-developer-tools.png&quot;
        srcset=&quot;/static/548ff983ec29d732d9b6b2c85ecab4d5/991de/visual-events-in-firefox-developer-tools.png 173w,
/static/548ff983ec29d732d9b6b2c85ecab4d5/e4d6b/visual-events-in-firefox-developer-tools.png 345w,
/static/548ff983ec29d732d9b6b2c85ecab4d5/1e043/visual-events-in-firefox-developer-tools.png 690w,
/static/548ff983ec29d732d9b6b2c85ecab4d5/e9beb/visual-events-in-firefox-developer-tools.png 730w&quot;
        sizes=&quot;(max-width: 690px) 100vw, 690px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Visual Events in Firefox developer tools&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;Whilst developing this feature I noticed that my workflow changed considerably. I found myself repeatedly looking at the event handlers attached to e.g. a button, clicking the debug icon, adding a breakpoint and clicking the button.&lt;/p&gt;
&lt;p&gt;We hope this feature will be useful to you. If you have any idea how we can improve this feature then please let us know via &lt;a href=&quot;https://ffdevtools.uservoice.com/forums/246087-firefox-developer-tools-ideas&quot;&gt;our feedback channel&lt;/a&gt; or &lt;a href=&quot;https://bugzilla.mozilla.org/enter_bug.cgi?component=Developer%20Tools%3A%20Inspector&amp;#x26;product=Firefox&amp;#x26;rep_platform=All&amp;#x26;op_sys=All&quot;&gt;Bugzilla&lt;/a&gt;.&lt;/p&gt;</content:encoded><author>michael@ratcliffefamily.org</author></item><item><title><![CDATA[Hack your Family: Adopt a child (UK version)]]></title><description><![CDATA[A lot of people would like to adopt but do not know what to do or what is involved. They are often scared of the process or have heard…]]></description><link>https://flailingmonkey.com/hack-your-family-adopt-a-child/</link><guid isPermaLink="false">https://flailingmonkey.com/hack-your-family-adopt-a-child/</guid><category><![CDATA[Life]]></category><dc:creator><![CDATA[Mike Ratcliffe]]></dc:creator><pubDate>Tue, 06 May 2014 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;A lot of people would like to adopt but do not know what to do or what is involved. They are often scared of the process or have heard horror stories. Being at the end of the process and having met our kids we can say that you should be completely open and honest with your social worker... even things that many would expect to be negatives are very strong positives when viewing you from a social worker&apos;s perspective.&lt;/p&gt;
&lt;p&gt;e.g. If you were once a drug addict then you may have insights into the birth parent&apos;s life if they suffered from the same issue. You would also be more capable of helping the child if they fall foul to drugs in their teenage years. Being honest will help the local authority match the correct child or children with your family.&lt;/p&gt;
&lt;p&gt;The process is difficult, partly because you will need to jump through all of the hoops that the adoption people ask you to jump through. Also, say you are adopting three kids around two years old... that means that you will need to buy everything that a birth parent would have bought over the first couple of years of each child&apos;s life. This is different from giving birth where you tend to buy things as you need them but as an adoptive parent you will need to hit the ground running.&lt;/p&gt;
&lt;p&gt;Here are some of our preparations (by the letter we didn&apos;t &quot;need&quot; all of these things but we are adopting three):&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Changed car to a model that supports three childseats across a single row (we need the boot / trunk for the buggy).&lt;/li&gt;
&lt;li&gt;Childseats for car.&lt;/li&gt;
&lt;li&gt;Changed downstairs carpet to laminate.&lt;/li&gt;
&lt;li&gt;Put toddler swing, slide and roundabout in back garden.&lt;/li&gt;
&lt;li&gt;Put childlocks on everything.&lt;/li&gt;
&lt;li&gt;Put safety gates everywhere.&lt;/li&gt;
&lt;li&gt;Redecorate two rooms as nurseries.&lt;/li&gt;
&lt;li&gt;Buy cot beds.&lt;/li&gt;
&lt;li&gt;Buy high chairs.&lt;/li&gt;
&lt;li&gt;Buy new fridge freezer.&lt;/li&gt;
&lt;li&gt;Buy baby monitor capable of monitoring two rooms.&lt;/li&gt;
&lt;li&gt;At least a million other things.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Here is an outline of the process in the UK although it can vary slightly from county to county. The process is now supposed to be completed within six months due to the government making changes so if you really want kids you could have them within six months.&lt;/p&gt;
&lt;h2 id=&quot;initial-enquiry&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#initial-enquiry&quot; aria-label=&quot;initial enquiry permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Initial Enquiry&lt;/h2&gt;
&lt;p&gt;You as a prospective adopter call your county council&apos;s adoption team who talk to you about your motives and the adoption process itself. A social worker will visit you in an attempt to find any issues that would prevent adoption. Try not to take this visit too personally as they need to ensure that you really are serious about adopting.&lt;/p&gt;
&lt;h2 id=&quot;registration--checks&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#registration--checks&quot; aria-label=&quot;registration  checks permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Registration &amp;#x26; Checks&lt;/h2&gt;
&lt;p&gt;The adoption department will send an official application form that you will need to fill out.&lt;/p&gt;
&lt;p&gt;Another social worker will visit you lots of times asking probing questions. Do not underestimate how many visits there will be as the social worker will need to prepare a report about you that is so thick they often call it &quot;The Book.&quot; Some of the things they will ask about:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Name&lt;/li&gt;
&lt;li&gt;Date of birth&lt;/li&gt;
&lt;li&gt;People living in the home&lt;/li&gt;
&lt;li&gt;Income&lt;/li&gt;
&lt;li&gt;Occupation&lt;/li&gt;
&lt;li&gt;Health&lt;/li&gt;
&lt;li&gt;Why do you want to adopt?&lt;/li&gt;
&lt;li&gt;Chronology (everywhere they have ever lived and worked including dates).&lt;/li&gt;
&lt;li&gt;Preferably every boss you have ever had will need to send a written reference about you to your social worker.&lt;/li&gt;
&lt;li&gt;Details of three referees who will need to complete a written reference. Two of these referees will need to be interviewed by your social worker.&lt;/li&gt;
&lt;li&gt;The type of child you want to adopt e.g. would you accept a child with schizophrenia, AIDS, ADHD etc.&lt;/li&gt;
&lt;li&gt;Medical background check.&lt;/li&gt;
&lt;li&gt;Criminal background check for every country you have lived in.&lt;/li&gt;
&lt;li&gt;Local authority checks for everywhere that you have lived.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;preparation-groups&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#preparation-groups&quot; aria-label=&quot;preparation groups permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Preparation groups&lt;/h2&gt;
&lt;p&gt;There are many classes designed to train you for special situations that may arise with adopted children. Some examples are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Adoption Triangle: Learn about the child&apos;s place in the adoption triangle (birth parents, adoptive parents and child).&lt;/li&gt;
&lt;li&gt;Can&apos;t do, Won&apos;t do – Attachment Difficulties for Children who have Experienced Early Trauma, Neglect and Abuse.&lt;/li&gt;
&lt;li&gt;Life Story Book (a kind of life journal that the child can use to find out about life before they were adopted and which will be updated regularly).&lt;/li&gt;
&lt;li&gt;&apos;Letterbox&apos; – Information Sharing between Adoptive Families and Birth Families.&lt;/li&gt;
&lt;li&gt;Emergency first aid and basic life support.&lt;/li&gt;
&lt;li&gt;Managing Behaviour for Under 10s.&lt;/li&gt;
&lt;li&gt;Separation and Loss.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This is a small sample of available classes... there are many available. Some of these classes are core classes and must be attended. The rest are voluntary although some may be very suited to your adoptive child so you would be expected to attend them.&lt;/p&gt;
&lt;h2 id=&quot;pre-assessment-decision&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#pre-assessment-decision&quot; aria-label=&quot;pre assessment decision permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Pre-Assessment Decision&lt;/h2&gt;
&lt;p&gt;The social worker will meet with you. They will discuss the information gathered and confirm that you wish to proceed.&lt;/p&gt;
&lt;h2 id=&quot;adoption-panel&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#adoption-panel&quot; aria-label=&quot;adoption panel permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Adoption Panel&lt;/h2&gt;
&lt;p&gt;Prospective adopters are sent the report that has been put together about them so far in the process. They are free to clarify any issues about the report with the social worker. This report is very detailed (about 60 - 70 A4 pages).&lt;/p&gt;
&lt;p&gt;Prospective adopters attend a panel (similar to a small court) where a group of experts ask questions to ensure that nothing has been missed in the process. This panel can give the adoption team advice on which children could be placed with the prospective adopters.&lt;/p&gt;
&lt;p&gt;After the panel the prospective adopters are told whether the panel accept their request to adopt (this is just an informal approval as the agency decision maker has the last say).&lt;/p&gt;
&lt;p&gt;Within two weeks the agency decision maker will review the panels decision and will send out a letter either approving or rejecting the prospective adopter&apos;s adoption application.&lt;/p&gt;
&lt;h2 id=&quot;being-matched-with-a-child&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#being-matched-with-a-child&quot; aria-label=&quot;being matched with a child permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Being matched with a child&lt;/h2&gt;
&lt;p&gt;It is not usually as simple as a prospective adopter saying that they would like a particular child. Throughout the process the social workers will be discussing your case and looking out for children that would be a good match with your family.&lt;/p&gt;
&lt;p&gt;If no match is made at this point then prospective adopters first need to find out about available children and make a decision from there. There are a number of platforms available:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Parents for children evenings: On these evenings prospective adopters are shown videos of children that are up for adoption. They are also shown booklets containing basic information about the children available including medical and behavioral difficulties etc.&lt;/li&gt;
&lt;li&gt;Activity days: Prospective adopters are given the opportunity to see a selection of available children. Many people do not like these activities, comparing them to cattle markets, but they are a great way to see the children in real life and get to know their personalities.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Once you have found the child or children of your dreams you will be provided with a Child Permanency Report (&lt;abbr title=&quot;Child Permanency Report&quot;&gt;CPR&lt;/abbr&gt;) which gives details about the child&apos;s history and the events leading to them becoming available for adoption.This report may include information about medical issues, psychological issues and learning difficulties that the child may have.&lt;/p&gt;
&lt;p&gt;If no match has been made within three months prospective adopters can also be referred you to the National Register which maintains a list of approved adopters and children waiting for adoption placements to enable matches to be made nationally.&lt;/p&gt;
&lt;h2 id=&quot;matching-panel&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#matching-panel&quot; aria-label=&quot;matching panel permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Matching Panel&lt;/h2&gt;
&lt;p&gt;A panel of experts will review your report and reports written about the children and discuss any concerns with you. This panel is like a small court.&lt;/p&gt;
&lt;h2 id=&quot;adoption-placement-planning-meetings&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#adoption-placement-planning-meetings&quot; aria-label=&quot;adoption placement planning meetings permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Adoption placement planning meetings&lt;/h2&gt;
&lt;p&gt;Once matched with children a plan needs to be drawn up in order to make a gradual transition from the foster home to the home of the prospective adopters. This transition usually lasts between one and two weeks.&lt;/p&gt;
&lt;h2 id=&quot;introductions&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#introductions&quot; aria-label=&quot;introductions permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Introductions&lt;/h2&gt;
&lt;p&gt;This is where the plan from the previous section is put in place and you will spend time gradually getting to know the children and their routines at the foster parent&apos;s home. This may require a lot of travel and takes a good couple of weeks.&lt;/p&gt;
&lt;p&gt;A good foster parent will gradually give you control of the children&apos;s routines. In time the foster parents wil bring the children to visit you in your home where you will carry on with those routines. Eventually, they will go home and leave the children with you.&lt;/p&gt;
&lt;p&gt;This is a very emotionally exhausting time so both you and your partner will need to take some time off work.&lt;/p&gt;
&lt;h2 id=&quot;placement-for-adoption--adoption-order&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#placement-for-adoption--adoption-order&quot; aria-label=&quot;placement for adoption  adoption order permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Placement for adoption &amp;#x26; adoption order&lt;/h2&gt;
&lt;p&gt;The child remains a &apos;Looked After&apos; child until an Adoption Order is made. So until then the Local Authority shares Parental Responsibility with you, and will continue to hold reviews to discuss with you and the social workers how things are going and what support you and / or the children may need.&lt;/p&gt;
&lt;p&gt;After the child has lived with the prospective adopters for ten weeks, the law allows them to apply to the court for an Adoption Order.&lt;/p&gt;
&lt;p&gt;After the court makes the Adoption Order they will plan a &quot;Celebration Hearing&quot; where they meet the children and their new parents.&lt;/p&gt;
&lt;h2 id=&quot;post-adoption--support&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#post-adoption--support&quot; aria-label=&quot;post adoption  support permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Post Adoption &amp;#x26; Support&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Adoption support groups.&lt;/li&gt;
&lt;li&gt;Training events and workshops.&lt;/li&gt;
&lt;li&gt;Support and advice on contact with birth family including providing a &quot;letterbox service&quot; where indirect contact has been agreed with you regarding birth relatives.&lt;/li&gt;
&lt;/ul&gt;</content:encoded><author>michael@ratcliffefamily.org</author></item><item><title><![CDATA[Firefox Developer Tools Highlighter]]></title><description><![CDATA[When it comes to the Firefox Developer Tools Inspector one of our most common requests is that our highlighter should support box model…]]></description><link>https://flailingmonkey.com/firefox-developer-tools-highlighter/</link><guid isPermaLink="false">https://flailingmonkey.com/firefox-developer-tools-highlighter/</guid><category><![CDATA[Mozilla]]></category><dc:creator><![CDATA[Mike Ratcliffe]]></dc:creator><pubDate>Thu, 17 Oct 2013 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;When it comes to the Firefox Developer Tools Inspector one of our most common requests is that our highlighter should support box model highlighting. We are working on implementing this but before we get into full swing we need to know exactly what you want it to look like and how you would like it to act.&lt;/p&gt;
&lt;p&gt;Please take a look at how current tools behave and let us know what you would like our box model highlighting to look and behave.&lt;/p&gt;
&lt;p&gt;The examples on this page show the different methods of inspecting this div in Firefox Developer Tools, Firebug, Chrome DevTools and Opera Dragonfly:&lt;/p&gt;
&lt;div style=&quot;width: -moz-fit-content; margin: 0px auto;&quot;&gt;
  &lt;div style=&quot;width:220px; padding:10px; border: 10px dashed green; margin:10px; font: 14px/13px sans-serif;&quot;&gt;
    This is a div with:&lt;br&gt;&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;padding: 10px;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;border: 10px dashed green;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;margin: 10px;&lt;/p&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;h2 id=&quot;inspection-by-mousing-over-content&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#inspection-by-mousing-over-content&quot; aria-label=&quot;inspection by mousing over content permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Inspection by mousing over content&lt;/h2&gt;
&lt;p&gt;This is the mode that most people are familiar with. You click the inspect button and move the mouse over the content area to highlight a node.&lt;/p&gt;
&lt;p&gt;Firefox Developer Tools use a subtle outline around the border of the hovered element. In addition, a node infobar appears. This infobar allows you to set pseudoclasses such as :hover, delete the node, copy HTML etc. This is currently the only highlight mode used by the tools:&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 274px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/35d03ddb9bc1e3cd3ddfb09da7c0886f/d3fa7/mouse-inspection-firefox.png&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 74.56647398843931%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAPCAIAAABr+ngCAAAACXBIWXMAAAsTAAALEwEAmpwYAAACuUlEQVR42oVSO0/bUBT2r+jQsVLVsR06dGiHdquqTu2MFLoA6gQsRAUJBVTEgDpUQMQQRIlQCmIBQRuU2AlO4riOA4nzaHAch+A45OHEeRCc2E5P4lZCpVKPr6++755z7/3OORfp3TJN046JkBP1OTGfE8WPMD+ARqsFLl3Xb0Yimq6pugoDQG/gqjXqz16+vffw6ZMXr5+/enPn/qO7Dx4ziTNwKWqnHwan9HQAyO2b1a76xba7sPT53dj4+7EP69Zty8dPhWLxHzdHxeiSb2kem8czOPDEZcKCWb4mHYDrjcZyYMXKrOTqOaCejGfGNbOf3Aecl/P+rB9Z8CwM7Q4tUyuEEITVdDW96F/cONnoK+vpthObBZ1jy2lw4ef4LDZ7kDoA7Mv6TDsmpHndVLoKG/7J0AwTT/Acn4mzF5yQSCZRl7sq1f5Sa+QcyAaGHcMIZKhqqlStlEoludb/arLUbDXrcr1arSrdjgblH2yAuaN1uloXMCdx6/Q6skquOlkn8K7aBWs1W5JUAVM6HVmuSRWp3W73d8Ov/54NCRCMmA/M9rAdSKvdygsCFSQwD3qMewmSiscZl9OV5XM3leuDfsrXcqwQQ8hzkq2wwDvdjpgXIpEIRZI0fZrleYqk0izr9/sw1E2SISYS8QcCJPUDgoM5wrRtQuB241RFUSrl8lkqxUQZKF2hIPpwPJViRVEsFoulUlm4EABcDhpOi/TE4QTi4TzxYhz41fVVoViIxaJ+HCcIks/yRJAI0WHI2ZBtCDbeFlQO2oSYv5vtJ/2coeZ/2qH3enrvfzYo2KF5k94EEhbDVsrq5b1GPewR+1Z0q6k0gaIZdC20ZgjkqpyDccx558YPxxF32k0LNKw6z5wjeyP2076KQr0wdTQ17ZquNCtAbbRtdG8U47B+tgI9+W0Sxg6z8wuPrQUm/BcJKQAAAABJRU5ErkJggg==&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Mouse Inspection (Firefox)&quot;
        title=&quot;&quot;
        src=&quot;/static/35d03ddb9bc1e3cd3ddfb09da7c0886f/d3fa7/mouse-inspection-firefox.png&quot;
        srcset=&quot;/static/35d03ddb9bc1e3cd3ddfb09da7c0886f/991de/mouse-inspection-firefox.png 173w,
/static/35d03ddb9bc1e3cd3ddfb09da7c0886f/d3fa7/mouse-inspection-firefox.png 274w&quot;
        sizes=&quot;(max-width: 274px) 100vw, 274px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Mouse inspection Firefox&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;Firebug uses a blue outline:&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 277px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/7dee7c7d203e4df3345731164b94bd7a/2a985/mouse-inspection-firebug.png&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 60.11560693641618%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAMCAIAAADtbgqsAAAACXBIWXMAAAsTAAALEwEAmpwYAAACY0lEQVR42m1SWW/TQBD2b0S88oB4QVDECwIKtFJVSpFIEKKHBGpDRQ+BegAKQkFOcydtbts0cRLq1I3dxLnsxGlir69loqiIB2al2fm03zc7O7NE+PfJ/W+Ld7/MbWfIvooD5ZPbB7MLh2tC2+CkwYxv6d7X+eQZr6h47dh7a3f6Uy6gXmKS/eUrpokF//qNvZvrWU9COMYY873z5dTqXuEAOxiZxha9vZpabagSHAWrIXf89VFtTFtLe+7szxF8ewSkSp5l0gxF0/wpxzKswNUYmgocBuVuD6iO4+Ars2wL/IfMxhSIz5rDIdI1fagO1BGYNhrpmmEgTdN0Xbds23bsiRhkhm2Ytglxtp7byZLEy4DnI7UN2LRMAyFFluv1C/FCVFW13WpBdDkcTi6HDM5kG0MsdhHxyOt+G18BrCGtLoqZdCoWC0dj0aPjFFsshA6DotiA03EFeCKzwXNylSxRROy0wnV5wIZpSo1GmS3SFMMwJ6Io0DmK46rxeDQcDqeSaYpiIpFonqaAvJHemNqdI4QOMq1xSoRQp9Mul0p5sGye589DwRDLlrqdTr/fgyVJkqIosiID2Vv2Pve/I3ay/uBZBLCO9HanxbKFVDIJNfNCLU/nIA8kHZd91TYoHnpm2tb4zY+/u5cSK39n8B+7mpPzz8SQhaqtAfHQ634TWwIcryWmySd7hX2IpUHzRWTRFXf3NRXgJr31NPCMlhiIo+cxV8J17fP1B99fEUfVSrBckvvYV8zP+Ja3MmRTwYzQXAx4XKHNcqNX79rwMWd/roQqLNB+FLLz/vcLpCd6WvoDCKRmL+4xR5gAAAAASUVORK5CYII=&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Mouse Inspection (Firebug)&quot;
        title=&quot;&quot;
        src=&quot;/static/7dee7c7d203e4df3345731164b94bd7a/2a985/mouse-inspection-firebug.png&quot;
        srcset=&quot;/static/7dee7c7d203e4df3345731164b94bd7a/991de/mouse-inspection-firebug.png 173w,
/static/7dee7c7d203e4df3345731164b94bd7a/2a985/mouse-inspection-firebug.png 277w&quot;
        sizes=&quot;(max-width: 277px) 100vw, 277px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Mouse inspection Firebug&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;Chrome DevTools highlights content, padding, border and margin areas even when inspecting via the mouse. They also display simple node information e.g. node name, width and height:&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 375px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/cc2574d3d6858b66ed24763e40394cb7/5ff7e/mouse-inspection-chrome.png&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 52.02312138728323%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAIAAAA7N+mxAAAACXBIWXMAAAsTAAALEwEAmpwYAAAB7klEQVR42l2PWXOaABRG+dt9bB/60M3GZhRFrYmpqU6qIglqFWwUtyAiRAQji4S64BKttY6ikZLpmEl658yd7+Xcby7wS0RZ8s1ShefKGUu/nUqh1W2cq9u6gm+roQJ7IDecVpA5t1i1b5lTgwk+AujC6XnNDlPlGJUPFNEolYMp4ks5ibCFdLMWqf+IMbl0s45wCbL6enMFrUhovQcwNYyVcFtSdaQ1MNMF8a4j8xD8hYknr38mxn5i5L6cxJjWQo0apHdV9a33AH+keIGP+ksjP9EFMfkw1QYxBcxI7qx6Uh4GSvpJWT8qjL/VGZX3bB5k73oP0GsGYAo6Kk4s50Ocewc3bEjz44XwPs4doK3DlPgp0XKmf4ZounT1ypLXT+V79TstpqB8H8re2s55y7GjN9YJR1qBshqIqS6s48L7MZabKWGD9DxrNjoJsp10F4ZeYuAjdCeuuS+7ntzAVxz6SnqgcndcmUDEKMLyQzFoPDQ/+bnPBeOVlw0Fp9sXSA2iRbQhp1HaQ3AhQc4ka16MORZkHLv2EYUX24prVQHXe4C5nNVY54wP/26fda5dU/7rUoT1VnihoGaPGLcjUwm2wkxC7m6QrYhvROwRYNpvzIelJo/og/xyQclSstcr7u4N0zR3pvlv7/b5v/kL/Pjbq6o/z/kAAAAASUVORK5CYII=&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Mouse Inspection (Chrome)&quot;
        title=&quot;&quot;
        src=&quot;/static/cc2574d3d6858b66ed24763e40394cb7/5ff7e/mouse-inspection-chrome.png&quot;
        srcset=&quot;/static/cc2574d3d6858b66ed24763e40394cb7/991de/mouse-inspection-chrome.png 173w,
/static/cc2574d3d6858b66ed24763e40394cb7/e4d6b/mouse-inspection-chrome.png 345w,
/static/cc2574d3d6858b66ed24763e40394cb7/5ff7e/mouse-inspection-chrome.png 375w&quot;
        sizes=&quot;(max-width: 375px) 100vw, 375px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Mouse inspection Chrome&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;Opera Dragonfly also highlights content, padding, border and margin areas even when inspecting via the mouse. In addition it shows guides outlining the border of the element:&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 290px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/56c40fc3e5b9846d92c5f93fa4e517f9/139a5/mouse-inspection-opera.png&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 61.849710982658955%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAMCAIAAADtbgqsAAAACXBIWXMAAAsTAAALEwEAmpwYAAACmUlEQVR42kVSa1MSYRTmf9XUD6hPTZNNhEmjWfYHzFsfRZQQVhCsZlRAGJD7xWBkue7CsruuXHeB5Q5r5WjKLl7oSy/6oZlnzjzPed/nPWfOe0R7sTOZo7PibK26OjJHU+5srzpHZM3VXXE0QR4QmRPIDrgApMLdkztby/a2DT0TKT3cw8XoazXxYasihsi32sKUjn6lJqb15QlN9rWanNSWXijTUk3+DZR9qcxMaelxiHywAK84OyLIx40pSUOoYQkx9mjLjXBWuL4faexHm8YAfXh8GcnzAHCu/5/kBLGKVLjbIsh/IlEVrbGuA2bskao70diHyz6k6U7ULcFCLH+eKgsow98DYfgUw0fzfSlUUnp6IrWPe7Kc9JMXRO0GZYR0ZZAsXSaKF3jtBsRE8RKh+WSpj9B9EMERwvRjBeHZGip3tUaVx74c+4jzdJkP4r1tD6UzJ7Zs2DcHZg4V1IZImDolG0OsOgDP4fVbrDKIFXiJOqfwdO/NWT/xB6sIYeqXMZD7as/seI9sYWbXS1lCtNaC6K2oOZDb8VHfHZlAuhsvDSSqOzNo+6kM8eHnwBzET6yHNHDueI89ibrWkrTB5QOsF8xwP7CuJ9kCHM6exoug7dSo7Q3/T/F60YffV/7tirO73iODPxtIt00HWVAfY68y7BWIOHs9IlUhAga2cTcwyM89V+Ahqp8uD9Lla5y9JWpDovYXq96QtSHODlFaSDFXKD0AAAShBZS+FquO1sBXrXu4x5+jExry4xYzDhFT2ty0rihR4zN6WqqhpBvUjB7kM+91xXebYE8IICc3qUdLsBwsiTl+Nm9szhnZxb3WrKE6b2wsmJqzu1Ug5ww1gEVTC8gFU2PeWP9kYJdMIM/OGRvb4dN/a30N9yuRtOkAAAAASUVORK5CYII=&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Mouse Inspection (Opera)&quot;
        title=&quot;&quot;
        src=&quot;/static/56c40fc3e5b9846d92c5f93fa4e517f9/139a5/mouse-inspection-opera.png&quot;
        srcset=&quot;/static/56c40fc3e5b9846d92c5f93fa4e517f9/991de/mouse-inspection-opera.png 173w,
/static/56c40fc3e5b9846d92c5f93fa4e517f9/139a5/mouse-inspection-opera.png 290w&quot;
        sizes=&quot;(max-width: 290px) 100vw, 290px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Mouse Inspection Opera&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;h2 id=&quot;inspection-by-mousing-over-the-layout-box-model-panel&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#inspection-by-mousing-over-the-layout-box-model-panel&quot; aria-label=&quot;inspection by mousing over the layout box model panel permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Inspection by mousing over the layout (box model) panel&lt;/h2&gt;
&lt;p&gt;Firebug brings out the big guns here and highlights all of the different layout components. It also outlines the node&apos;s active container in a dashed red line and adds rulers to it (useful for absolutely positioned elements). In case this is not enough it adds guides around the section being hovered (content, border etc.):&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 358px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/d41e5868417b8ab19a5a4ed4063ea6fe/39185/box-model-content-hover-firebug.png&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 168.78612716763004%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAiCAIAAADQyG7qAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFZUlEQVR42oVVaU8bZxDe/9IP/dAq7W+oqkqVqqpSP1X90FZNo6RRSBQSlNAgDgcSMGmrmtMGQoA0CQolUEIcYsBAfN/e9a7X1+7a3gXfF77t3c7a4YgS6Gg8np3dZ9533tlnFtnd3Y3FYoVCgabpcrmcy+XAKZVK6XQ6GAyCE4lEOI6DWwzDgF+tVgOBQCaTyefzCIBRFGXZMEHgHMcGgwxO4CzHUlSAJN3hcMjn84IDD7hcmN/vg+ddLlewIUgymeS4vXpdAOHrQp1vOLyozUjTqVZr5XKlcYtvWhCEIAiWdQoCKwjhhnIHDnsQBMvVasFyOcALe7xQa6YDQWiG7h9puf3Xz9MPOhVT7b2ys8OKa7MzPf3D50FnH/TI5FfhrmKyXTZ2TW27IQgFXtymmAAJhgJtbX/fkJp6RlHJKHpLZukecXYNObtGHBK5647C3SvHu8dQ6bT/3K8Lw3MXBCGdz5eLxUKxWERwl1M6oJTbE1P+5LQvJao/PelNzFDZOSY3Q2dn6ewclX20V7ol3Xy0eF0Q8rUa1FwXa3bhjo7u+Ulr6j6ZUqCxcWdE7oxOYPFxR+Q+kZx2p0UlUjOBXLdU80LZKwj7R9ve2wtJ+p4pLMkpd2LYwsrMoWErO2JlhyzhUfuuHI1CRrkz8sCfvXln/eE/rVBz/RBst5n7ev+dsCQnicSIlRsyh8fte5AF/FHb3qhtV7RWbtqbbetbu//0kiAUj8B+P3H7ztIUlpqh0xNkbBzfnSCjoAp3ZIbKzIk1Z2ap9EMuL/ld8/xFD2z7DRhqdpPk9bbHAzPMwDwtfUzfmw9Kn9ADT6jBeUb6hOl/HICgGF8ItbQqHy7cFIRUvlAplorFUgnxUJuyobYhaVdnz/luycWxPyR3+662d/4iG+yQ3eto7zrbf7d1/M8eye2WK+3fK3cuC0KmXqoJlbJQLiN1gdkvGfJlU11wVHl7uW6p8raaAI4VtMLbmk6xas4XDaUKVirkoMvlYqFcKCCkOxDw71JUxOtlfT4gRhwuwWfoaCgYFzWUABugY14qHotlorF4NBZr2DhiMOg9HtJN4DarBXU6aJrCMKfZZCLcBMNQQCPIHQzSHj/tC3KpZCKeOBKEJEm73R4MhXAcd6JOm83m8XiAgLgLJ9xAyTBwExYgCDfHhoHqzDFBMBS1Wq0UTTsdDosoZheOcyzrJT0BigbCBvx+o9EAiRjg+tuCNMnFH9Ls2CX86g1pRuoHwh8IIrwtMGWy2RzY45Hjl0IjYzP7e8CxaBTmUVyURCqVYsQ6g+DACUEIpldz2feAIQpD7/nKytOnC0qlcm1tbWlpaXlpGZyXL1+urq7qdLoTwVAogNVq9daW2qA3OOw2h81qt9m8HtLn9W5tbZ0Gbq786pXKatY/U5Pf3UV/GsR+GMR+lKKvzV6dZluj1Z1YM0RhRKtUG6jdOKv0fnjB9ekV/EwL8cklTKX3GXU7Op3+xJXFA4vFV56vmnTbYwuOzzvIb/u83/R6v+x0L76yb22srW+o0+lMDUbRu+BatZpKplZXX5j1O4pn6Ge/kV9LPF/1eL7oIJY3nNtq1aZ6az+332z+adueXvV8cA47c5n4+BLx0UV0TeeFbWtP2fYBWGUxG42OgGLZLV9ExxexqRU3SgRe72xrtdqTWyWIrQLw+vqG1WJyOYz61xsGjdrlMJlNRmi1RqP5n5WBH9BPjVar0epV6xuq9U1wtDodLIth2Cng+uF3jG+cShbe9VzuTfAYK47ATU5l0ulIJJpMpsDCedZERtQqFfGvIkq12aFMJk1RVCyeRN6lS2MFvvFQJpGE4ZGA5iUS4hCB79MhPXme/w/L5dqEUNKhTQAAAABJRU5ErkJggg==&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Box model content hover (Firebug)&quot;
        title=&quot;&quot;
        src=&quot;/static/d41e5868417b8ab19a5a4ed4063ea6fe/39185/box-model-content-hover-firebug.png&quot;
        srcset=&quot;/static/d41e5868417b8ab19a5a4ed4063ea6fe/991de/box-model-content-hover-firebug.png 173w,
/static/d41e5868417b8ab19a5a4ed4063ea6fe/e4d6b/box-model-content-hover-firebug.png 345w,
/static/d41e5868417b8ab19a5a4ed4063ea6fe/39185/box-model-content-hover-firebug.png 358w&quot;
        sizes=&quot;(max-width: 358px) 100vw, 358px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Box model content hover Firebug&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;Chrome DevTools highlights only the content, padding, border or margin depending on which is being hovered:&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 289px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/4ac3f882f93aa31c27e355cc89651ae7/c969a/box-model-content-hover-chrome.png&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 134.68208092485548%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAbCAIAAADzvTiPAAAACXBIWXMAAAsTAAALEwEAmpwYAAAEX0lEQVR42qVTSXMbVRDWX0txCcUFLkDlChz4BwQKCldxyGJkO7ZjecGR7RhcJLikeIm8S14ka8NY1mi0zL5r9tEyM7JGEi3LqQqKb3S9efVNT3/dX/d74xuJjnz5+gvTNXu93k9H33/++rOSWgQ8nhz9dO2TGHUE+HXhz49ffrSWXwV8TEfvBe/t4fuAfV+HvzrE4mW+WRbrSYKJ4yTC6njVTuFsgqAKokmprStBS5D0Fa/islO1eo9PngTSgT5ZqDMl0Xy0jvi3yuOblaltYmyzNBHBnq4X5g/44Jk8fywET+WXcR1wIMavpXSxLqu20ifDw2ju4qm0FK/erjNpOSEHz249wTMR8GAtnoi/J6vtTrd3Y76JpD9BEStxbfaIntknfg0j/jcF/0ZxagfzbyAz+9TyuQK5Buu3U3Hjwg4V3myWNvrkb199c1RGVs+NhRg7+bb8NJQfDeXHNgpjm+jEdmk0jIxvFScjFcj17G15IlKJXHlTJzOB+EyfnJMvUEldistzR1TggJzYQsc30cA+CftUpDK9i0/vYDN7xPRO5fku9nyP+CtrVFScNMjbnnG5MRcT5qLcs13sUSj3BKptV/yb6OPw1WyMW0oooHbuhFuEnk+ry3HBbbdve17NLRdEaeuyFr5QDxA3hnpbOTN0oewjznGxs31prWerkVwN/JGr+quMGC97UfI4RsX65Ad/PPhu76Hddr1ud/FiaST6C2Wy/YuBrP94+PM/Yg5wjDp5ePDDIRkFXNaw+8H7C6mFPjlOJlayK2bDaLXcMBKeT81zOtvr9PbKu4FkAJUKvW4vzaSnElNJ+hwIiIi8yLygVMq79ny6rNu6LQoiz/M1tWZrdlWsshxrKZZjuIqkANaqumu0DNlgeVatao7hKJIM8T6aoQiK4HiegyiOYThG4HlBECiaImkSIkRB4HgWJ3GcwGmKIkgCIzCSJCmK8pXLlQKKRqNHqXQ6kUydp5LpbDaTyVRw7DKXy2RSyUwmncnSDKMoSlX+j/kkSZIVhWUZqMawLBSkGZplWYiTqhKUolkG/IqqWuaw+Xr/w4bJ3fes885g4J0huwkYJnueB41Ah6Ioet3e9fV1q9WCFpq2Dfi63W7deGC3HecOsq7raBFFkDzLcYZpWJZVLBVhWrVaDfqEV03TbNuGDMNkUASfVVXFCQItobVGw3VdGKBl1SAa6juu02g0TNMAGXf0DMkbjSa0zHI8UsiTMHyOd1utwRRAmuM4UKDteR9W9ioYxjC0ZuhFnFqNYZOh8+BheW77YnYHSRe5mqnzgkgQhG6Yd8gWRFFRZNCmGVamIp/mqcO/seMcGS/wjKTbzYam65IkNm3nLtmm1Ww2Bwq7HQ+cssTDbwMfwddut2EKfdntD2R7nQ6MFAYO84TidXiaTZKmDMOAjPV6A/yAIQYObpgM+WCqNoh7Z8CBn2FAHnjq9TrUh7O+45zhOCCr278I/fsAwKrVHND6nqe/u61/AVpsjUfEEVmBAAAAAElFTkSuQmCC&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Box model content hover (Chrome)&quot;
        title=&quot;&quot;
        src=&quot;/static/4ac3f882f93aa31c27e355cc89651ae7/c969a/box-model-content-hover-chrome.png&quot;
        srcset=&quot;/static/4ac3f882f93aa31c27e355cc89651ae7/991de/box-model-content-hover-chrome.png 173w,
/static/4ac3f882f93aa31c27e355cc89651ae7/c969a/box-model-content-hover-chrome.png 289w&quot;
        sizes=&quot;(max-width: 289px) 100vw, 289px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Box model content hover Chrome&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;h2 id=&quot;inspection-by-mousing-over-the-nodes-in-the-markup-html-panel&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#inspection-by-mousing-over-the-nodes-in-the-markup-html-panel&quot; aria-label=&quot;inspection by mousing over the nodes in the markup html panel permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Inspection by mousing over the nodes in the Markup (HTML) panel&lt;/h2&gt;
&lt;p&gt;Firebug shows the box model (content, padding, border and margin):&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 290px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/d4dbb269a6c0ecf9fcf90a733250dea4/139a5/html-panel-node-hover-firebug.png&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 61.849710982658955%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAMCAIAAADtbgqsAAAACXBIWXMAAAsTAAALEwEAmpwYAAAClUlEQVR42jWP2U8TARDG99/zQX0xGgnYC1AC1d62tRAQKsVAt93edLcHgvqiiIkYDLQa5Ui5pPS2u43dlt1ur922xihFnSaYfJn8ZjLfHEinux7LTO+kpvezs0kKi5PWnfTjWOZJgrLHSXQ3M7OXMScoW5Ky72XNkJ6S1tM8Fi9Yfv75gpQF7zXx1QHJ5PCw+ZHSr5Y7+iUm2eC0QeHT3XeJpBMg3X23/oFHIp28IxnXyh2aMZ9Uc53//Rph27hOOY8tc44o49xkvR+rrq2KJ1p1RVjbhxK+LQR32/g2DwII7LSC+60FnJEpJE0wVzoBg2re+Z4lKA5Pc4FcjchVA7k6AZCtBvON0H8BB3P1ZzSPvigqtKNCdxWhBe+ATOFdr4cpPpBs4Ima76SyGOeIZN1/yi2ecFAMppuXSjWgzbZStkzNdC7eIkXefUs8CuYQ1QSb66iM7dOOA9p5VHYfn2GxIp6sBTPNS6UaSwUBXSnpDZpW9w3CtHHF2IxnvRYu8LDQ85UBj+eY8cU512HZF684DoowAoY6D0uOWBHesa6UxPJ+/vwVwnUCRtWC+101RPJwJJh7aw/L3hPWHvsOU4hkjUjVIcJHEMMkjy6X5JoR4XwVKQk+6ZDWu1EL000iW/NnOG/yzJti/FkO4mKKDVPNEAlq9CDfWCrx6EvaPDnVvliDnz23pQr3c4H41CIibSLaxqMtEEAg2sEjLf+W0KtH2gD+TT74uWP31cYnTK3uGkLznr6RGyatR6WY6xtUyu4ZTVqnVrkwMKQR39Ub1Ha92iYa1kH6UIUaNZhsxHhTpBZprvTO/nGxQbJ2isW+MdZEcTZdelpgsTyDJmlLip6jWDvJ2AAgBYAUGhJFC8mhv/7u/QP8mfwiTzbr+AAAAABJRU5ErkJggg==&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;HTML Panel node hover (Firebug)&quot;
        title=&quot;&quot;
        src=&quot;/static/d4dbb269a6c0ecf9fcf90a733250dea4/139a5/html-panel-node-hover-firebug.png&quot;
        srcset=&quot;/static/d4dbb269a6c0ecf9fcf90a733250dea4/991de/html-panel-node-hover-firebug.png 173w,
/static/d4dbb269a6c0ecf9fcf90a733250dea4/139a5/html-panel-node-hover-firebug.png 290w&quot;
        sizes=&quot;(max-width: 290px) 100vw, 290px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;HTML Panel node hover Firebug&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;Chrome DevTools and Opera Dragonfly act exactly the same as when mousing over content.&lt;/p&gt;
&lt;p&gt;So the question is what would you like the Firefox Developer Tools highlighter to look like and how should it act in each of the situations above. It doesn&apos;t need to act like any other highlighter so be creative!&lt;/p&gt;</content:encoded><author>michael@ratcliffefamily.org</author></item><item><title><![CDATA[Debugging Thunderbird Using Firefox Developer Tools]]></title><description><![CDATA[I recently discovered that it is possible to use Firefox Developer Tools with Thunderbird. Philipp Kewisch has done a fantastic job of his…]]></description><link>https://flailingmonkey.com/debugging-thunderbird-using-firefox-developer-tools/</link><guid isPermaLink="false">https://flailingmonkey.com/debugging-thunderbird-using-firefox-developer-tools/</guid><category><![CDATA[Mozilla]]></category><dc:creator><![CDATA[Mike Ratcliffe]]></dc:creator><pubDate>Tue, 08 Oct 2013 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;I recently discovered that it is possible to use &lt;a href=&quot;https://developer.mozilla.org/docs/Tools&quot;&gt;Firefox Developer Tools&lt;/a&gt; with &lt;a href=&quot;https://www.mozilla.org/thunderbird/&quot;&gt;Thunderbird&lt;/a&gt;. &lt;a href=&quot;https://twitter.com/pkewisch&quot;&gt;Philipp Kewisch&lt;/a&gt; has done a fantastic job of his Google Summer of Code 2013 Project to bring Firefox Developer Tools to Thunderbird.&lt;/p&gt;
&lt;p&gt;Starting with Thunderbird 24.0a1 and a matching version of &lt;a href=&quot;https://www.mozilla.org/firefox/fx/#desktop&quot;&gt;Firefox&lt;/a&gt;, it is possible to debug Thunderbird code using Firefox Developer Tools. If your version of Thunderbird is 14.x then please go to &lt;kbd&gt;Help&lt;/kbd&gt; → &lt;kbd&gt;About Thunderbird&lt;/kbd&gt; and allow it to update.&lt;/p&gt;
&lt;p&gt;For best results you should use the latest nightly versions of both Thunderbird and Firefox. At the very least the version numbers should match. Here is how to get things up and running using the latest nightlies:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Download the latest &lt;a href=&quot;https://ftp.mozilla.org/pub/mozilla.org/thunderbird/nightly/latest-comm-central/&quot;&gt;Thunderbird Nightly&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Start Thunderbird.&lt;/li&gt;
&lt;li&gt;Select &lt;kbd&gt;Tools&lt;/kbd&gt; → &lt;kbd&gt;Allow Remote Debugging&lt;/kbd&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 262px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/eb23b8292aa1c301a7243b71b6081ae3/8ff13/thunderbird-allow-remote-debugging.png&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 173.9884393063584%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAjCAIAAAAblL1PAAAACXBIWXMAAAsTAAALEwEAmpwYAAAEyklEQVR42oVV13bbRhTk/39I7NiOLVlyZIVWocQCgkTvvbAARK/UQ+ycDEBaUhLZuQJxoN2dvWXnzg4uhjeXX27vCEbWbGIpeLsye/grab6m+2//eNqvafvsvf+W7b8NCHKxWNK8rFq2K4iyH8R585AUTZQWu6enjIsmzmuMJ0WND8yu43JQ13Xbtp7jzMbjxYJmaWp0fUMtlrsoqooiz7KyKOLdjiJJnmZm0ykxJRfEPIlj1bAHZVlWVRlH8XazCYPddrtdrVbr1TrtYQfDFrswTJNku8F8EGy3ZVFOiFkHhvOV7wk8LwgiS9OSqNRN8x1YYAH8SIKgKWoYRljcuytY2Tx4rsIw0FRF0wzHtmVZyfLOCjy9ZVmGcd/z4zjBbphCULKiduCmaUzDmE7GiqIJHA+3bdPUdYNNH/3jX/yVj5kUhXIAIxJ/5eu65jqu5/umYa3XG99fRVFUPl/+WII+IsM0n8Asw8ynM03XKXJJ0/TVlxvP9eA8/x78c8O4rhvHnNerFcuwlmmKgqipBtb3hXnBLQbjOF6v147jHD17HqotYDMZJslxkhTPCvYvQ/2Q0SO4CsLAMEzsp2laEO4eE/uRAXUEw7BZEid9ht1Eu29/FPZjzZ7Cdk1zPJ4yNM0wNDknR1cjRdWLnzo/guFws17blq0gXVnxfd8yLVgYhD8J/ggGIUAvkljokkQQpCjJiqwokjQZT2mKbZ5R9QUwCua6DgrmWpYsq7bjoDc0TbfMjq2ev3ox/iew57rz2VxXFIpmFVUzdQMnx7Jo0CW5oJBXXaEy3euFnOMoCtF0aZpEURCEaE98wnZBGPVTXZv6Ps4yy47nbx8Yhi1t02QoRlc1cJPluNlkxrEMRdE0VIZiNFWTJJmczmiGa9p9VZZAO0dw1YXNMpwiiqqqCoIsiSLYqsgqOOe7jopEUH/TRCE5lo92uyeSdJ4tm2FYWZSwSBJlQ9N5jkfaoigahq5iF1W3TQuhwQeyQKaqJPc5l2Ww3Ryywtm2Lc6u3u/34BkMndy3d92VrRO85sBPlRcGZdfotWNbd6N7KIHreHW/ND+oycEOYoBf0831InGgZ9Nia8swWF50XFc3DMQLmiZZDkddWcsaTcZxrCRIiyU1JynLsvOydnR9UF2+qaiJ++md8v6Vf3min/5qnf9mnb/bjT4n42FJjEriNp18cS8+rIfnzsV79/eT4PYyvz53z94O8vubrP3T1O27K4QtEWPIMj2bLGiSvr+d3A5vLs6H07tZEGR5VqdplaVVUrSJZrh/nA3yq9NsdrMZflRPXllnb/WPb8yzN9rJa+P0tX76Wvvwi/f5JLg+j+4u0/EwuR+m98NkcpVef3SI0aDa71HBIAxJikZL8JLEcAKOmiDmLM+LipaVVd3ucZ7Pn6JpHM8blHkGIc6SNI3jjpFRlMQR7oQDEyDuUJ0iS/v3sydNHcs6tqTjOlBPSeCZBT2+G93e3uPqYlm+6LQk/3lL1mvfE0VZV1UIN6h/kHtcUf8jBgcRRuvO56SCblY1QPrLoez7sMp/YB0YnHl4eFi5LkkudE0Dm9HGoiDQUP7lEoNoQZC0+W74BhKXJdR6ANHQdR0+KYriegO9gOc4noMYMAxmjf8Yms8wjL8BcptHxCzsseYAAAAASUVORK5CYII=&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Thunderbird - Allow remote debugging&quot;
        title=&quot;&quot;
        src=&quot;/static/eb23b8292aa1c301a7243b71b6081ae3/8ff13/thunderbird-allow-remote-debugging.png&quot;
        srcset=&quot;/static/eb23b8292aa1c301a7243b71b6081ae3/991de/thunderbird-allow-remote-debugging.png 173w,
/static/eb23b8292aa1c301a7243b71b6081ae3/8ff13/thunderbird-allow-remote-debugging.png 262w&quot;
        sizes=&quot;(max-width: 262px) 100vw, 262px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Thunderbird allow remote debugging&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Download the same version of &lt;a href=&quot;https://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/&quot;&gt;Firefox Nightly&lt;/a&gt; as you did Thunderbird.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Start Firefox.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Press &lt;kbd&gt;Ctrl&lt;/kbd&gt; → &lt;kbd&gt;Shift&lt;/kbd&gt; → &lt;kbd&gt;K&lt;/kbd&gt; to open the toolbox.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Click &lt;kbd&gt;⚙&lt;/kbd&gt; to open the developer tools options panel.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Check &lt;kbd&gt;Enable Chrome Debugging&lt;/kbd&gt; and &lt;kbd&gt;Enable Remote Debugging&lt;/kbd&gt; then click &lt;kbd&gt;Restart Now&lt;/kbd&gt; if it appears.&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 410px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/a8106450b91e8bcf522653cb951f94b3/d68e4/enable-chrome-debugging-and-enable-remote-debugging-options.png&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 32.947976878612714%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAHCAIAAACHqfpvAAAACXBIWXMAAAsTAAALEwEAmpwYAAABBklEQVR42m1QW27EIBDj/idbVauqbB5LeA6QQEII2yPUSSu1HzXKjBXA9sDu93fOu67r+Qe/3d445zmvrbXjD+rxP5jWmohCCN57Z51WupTyAlp7faP9cvTPs/5IsyWnpxDD0EulhBBPMaWUiJyx1jlnUb1z3mujrTX4obWCERSOWhmFqJSepsloo6SSUtJ51Hgf5og44USM+MjjbLBoMa17LXtlhgI8h2E0zkqwi/NHB98Y46VC4FAEOdVSEWFVcdNzYcp6xMaD4SIyj+Oz63vOH/BESIOFdl4mcISwcxGUVdigwvK6wQHjISBd+hgTr4jJl2XBFuqMhTrPKee0VUolpD2t+xfRTHJCyVPGcAAAAABJRU5ErkJggg==&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Enable Chrome Debugging and Enable Remote Debugging options&quot;
        title=&quot;&quot;
        src=&quot;/static/a8106450b91e8bcf522653cb951f94b3/d68e4/enable-chrome-debugging-and-enable-remote-debugging-options.png&quot;
        srcset=&quot;/static/a8106450b91e8bcf522653cb951f94b3/991de/enable-chrome-debugging-and-enable-remote-debugging-options.png 173w,
/static/a8106450b91e8bcf522653cb951f94b3/e4d6b/enable-chrome-debugging-and-enable-remote-debugging-options.png 345w,
/static/a8106450b91e8bcf522653cb951f94b3/d68e4/enable-chrome-debugging-and-enable-remote-debugging-options.png 410w&quot;
        sizes=&quot;(max-width: 410px) 100vw, 410px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Enable chrome debugging and enable remote debugging options&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Select &lt;kbd&gt;Web Developer&lt;/kbd&gt; → &lt;kbd&gt;Connect…&lt;/kbd&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Choose localhost port 6000 and click &quot;Connect.&quot;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You will be presented with a set of available remote tabs and processes. For me they appeared as follows:&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 600px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/ee04c62ffe549cc4a96d138b8e53e230/0a47e/available-remote-tabs-and-processes.png&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 69.36416184971098%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAOCAIAAACgpqunAAAACXBIWXMAAAsTAAALEwEAmpwYAAABXElEQVR42pWSaW6DMBCFOVMLBC/gBbLQgG28YIza+1+jA8mfSFWSSp9Hb8Z+sj2ajHVfl3E6DQZi14+9tr12vfaDjV2vMOswP2F2BIFYi5q2quWBigMRJeGZkG1MS0zROjeocUnJx+iCX9Z0vlw+P/I8Lx8oNoqdrMK0KNHGAZUVzsvqpkEcEMG0eUJWM9FwuSNuuuaiYVsFUtrwJ2TyeNaTH5QZteWiJTV7bngwww16csYC3jgP6T/MTLRhSW6erY9ctu8792d3J2XcddTDqK+jYv95OdzcKW1HbUTbQf6ySQ9mWPBP9kZv/zbfYdu1L9kP30WGMEWkrjBBhMLAVIiA3iPovQJbex1vxyim9WbBlMCQTNaHMC/LGnx0LjgbYkwQQ4jehZS+53mB+r47Q1EpYybIIxcSzC6lNa0/E7RNGfg8g/FqBETOpWyPMDkMJm9jq9TQVKDmRVn9Ap6V12LJwFxZAAAAAElFTkSuQmCC&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Available remote tabs and processes&quot;
        title=&quot;&quot;
        src=&quot;/static/ee04c62ffe549cc4a96d138b8e53e230/0a47e/available-remote-tabs-and-processes.png&quot;
        srcset=&quot;/static/ee04c62ffe549cc4a96d138b8e53e230/991de/available-remote-tabs-and-processes.png 173w,
/static/ee04c62ffe549cc4a96d138b8e53e230/e4d6b/available-remote-tabs-and-processes.png 345w,
/static/ee04c62ffe549cc4a96d138b8e53e230/0a47e/available-remote-tabs-and-processes.png 600w&quot;
        sizes=&quot;(max-width: 600px) 100vw, 600px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Available remote tabs and processes&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;ul&gt;
&lt;li&gt;&quot;Your Kobo Order Receipt&quot; - the area in which the selected email is displayed. In this view the following did / did not work:
&lt;ul&gt;
&lt;li&gt;The console tab may work but was empty when I tested.&lt;/li&gt;
&lt;li&gt;The inspector, debugger, style editor and profiler work just fine.&lt;/li&gt;
&lt;li&gt;The network tab was empty.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&quot;Message Summary&quot; is the area in which email summaries are displayed when multiple messages are selected.
&lt;ul&gt;
&lt;li&gt;The console tab may work but was empty when I tested.&lt;/li&gt;
&lt;li&gt;The inspector, debugger, style editor and profiler work just fine.&lt;/li&gt;
&lt;li&gt;The network tab was empty.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&quot;Main Process&quot; - the main Thunderbird process. In this view the following did / did not work:
&lt;ul&gt;
&lt;li&gt;The console, debugger and profiler work fine.&lt;/li&gt;
&lt;li&gt;The inspector and style editor and network tabs were empty.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Although not all of the tools work perfectly in all contexts at least you can now use the DevTools for extension development and to fix bugs.&lt;/p&gt;
&lt;p&gt;Philipp has the same code packaged as an extension that could be used to enable the debug server from other XUL apps &lt;a href=&quot;https://addons.mozilla.org/en-US/thunderbird/addon/remote-developer-tools-server/&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Something has been needed since Venkman development halted so now we have something there is no excuse, whether it is Thunderbird itself or an extension... go, get hacking!&lt;/p&gt;</content:encoded><author>michael@ratcliffefamily.org</author></item><item><title><![CDATA[The History of Firebug]]></title><description><![CDATA[When Joe Hewitt was seven years old his father wanted to become a computer programmer so he bought an IBM PCjr. Joe would often watch his…]]></description><link>https://flailingmonkey.com/the-history-of-firebug/</link><guid isPermaLink="false">https://flailingmonkey.com/the-history-of-firebug/</guid><category><![CDATA[Mozilla]]></category><dc:creator><![CDATA[Mike Ratcliffe]]></dc:creator><pubDate>Wed, 25 Sep 2013 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;When Joe Hewitt was seven years old his father wanted to become a computer programmer so he bought an IBM PCjr. Joe would often watch his father typing in programs from PC Magazine. He started learning himself and when he got older he just sort of took off on his own.&lt;/p&gt;
&lt;p&gt;The first programming project that he remembers working on was when he was in fifth grade (ten – eleven years old). He made an animated ASCII art of a rocket ship blasting off. He also wrote a game show in &quot;Cartridge Basic&quot; (an enhanced version of BASIC for the IBM PCjr).&lt;/p&gt;
&lt;p&gt;As far as education goes, he started as a computer science major before deciding that he didn&apos;t like the formal computer science stuff and switched to graphic design. He then realized that he was not an artist and moved back to computer science. Whilst he was still at college he received a ton of job offers in the field, dropped out of college and has been professional ever since.&lt;/p&gt;
&lt;p&gt;Around 1999 he was working as a web developer and began to gain an interest in Mozilla. He followed the project mostly from the standpoint of a web developer wanting to see what this new browser was going to turn into. Eventually he learned about XUL, became fascinated with it and started looking for ways to get involved.&lt;/p&gt;
&lt;p&gt;Luckily, before he even really started contributing, a job opened up with Netscape and he was hired to work on the Netscape user interface (CSS, JavaScript and XUL).&lt;/p&gt;
&lt;p&gt;After a few years at Netscape Joe, Dave Hyatt, Chanial and Blake Ross started working on a streamlined version of the Mozilla browser that was called Phoenix, Firebird and eventually Firefox.&lt;/p&gt;
&lt;p&gt;Because of the structure of Mozilla the developers were free to work on the things that were of interest to them. During his time there he created the DOM Inspector and worked for a few years on the browser side of things.&lt;/p&gt;
&lt;p&gt;After his time with Mozilla he started work as a web developer again and soon found that the state of the art tools that he had used as a web developer in the late 90s had not changed. The standard way to debug a web application was using alert dialogs but this was very inefficient and limiting. Joe thought that maybe allowing people to log information to a simple panel could be useful. This is when the birth of modern web developer tools truly began.&lt;/p&gt;
&lt;p&gt;Joe says that features that you see in Firebug today were inspired by the Venkman JavaScript Debugger, View Rendered Source Chart, Console2, Aardvark, and MochiKit JavaScript Interpreter. Let&apos;s take a look at these tools and see how the functionality were absorbed into Firebug.&lt;/p&gt;
&lt;h2 id=&quot;venkman-javascript-debugger&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#venkman-javascript-debugger&quot; aria-label=&quot;venkman javascript debugger permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Venkman JavaScript Debugger&lt;/h2&gt;
&lt;p&gt;A lot of developers are surprised to hear that Firebug is not the first JavaScript debugger for Firefox. Venkman JavaScript Debugger was, until mid 2011, commonly used to debug JavaScript in web pages and extensions.&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;img src=&quot;/72dfd142862fe7e73369a806bcdb8e05/venkman-debugger.gif&quot; alt=&quot;Venkman Debugger&quot;&gt;&lt;/p&gt;
  &lt;figcaption&gt;Venkman debugger&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;Venkman contained a very powerful feature set that made for an excellent debugger. These included:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Stop&lt;/li&gt;
&lt;li&gt;Continue&lt;/li&gt;
&lt;li&gt;Step over&lt;/li&gt;
&lt;li&gt;Step into&lt;/li&gt;
&lt;li&gt;Step out&lt;/li&gt;
&lt;li&gt;JavaScript profiler&lt;/li&gt;
&lt;li&gt;Save profile data&lt;/li&gt;
&lt;li&gt;Pretty print&lt;/li&gt;
&lt;li&gt;Save and restore breakpoints and watches&lt;/li&gt;
&lt;li&gt;Break on errors&lt;/li&gt;
&lt;li&gt;Ignore errors&lt;/li&gt;
&lt;li&gt;Break on exceptions&lt;/li&gt;
&lt;li&gt;Ignore exceptions&lt;/li&gt;
&lt;li&gt;Function name guessing&lt;/li&gt;
&lt;li&gt;Locals&lt;/li&gt;
&lt;li&gt;Watches&lt;/li&gt;
&lt;li&gt;Breakpoints&lt;/li&gt;
&lt;li&gt;Call stack&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;As this is just a quick tour of the extensions that have inspired Web Developer Tools we will not go into any more detail about Venkman here. If you would like to learn more about it then take a look at the &lt;a href=&quot;https://developer.mozilla.org/docs/Venkman&quot;&gt;Venkman page&lt;/a&gt; on MDC.&lt;/p&gt;
&lt;p&gt;Venkman was the inspiration for the JavaScript Debugger used in Firebug.&lt;/p&gt;
&lt;h2 id=&quot;view-source-chart&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#view-source-chart&quot; aria-label=&quot;view source chart permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;View Source Chart&lt;/h2&gt;
&lt;p&gt;This extension shows the browsers interpretation of a web page. It shows the source in a hierarchical view, grouping elements at the same level and graphically displaying HTML tag boundaries.&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 550px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/99134538d300391a261d552be66f7427/dd45a/view-source-chart.png&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 75.14450867052024%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAPCAIAAABr+ngCAAAACXBIWXMAAAsTAAALEwEAmpwYAAACEUlEQVR42n2S22/TMBjF+5eDJpgq8cYL+wN4GkOVJjTxgLi8gdgo2pLecnGS2o6dxM6lSdtkiRO+0CFoUScdWX7wT9/xOd/g5SV59jYZjuKTc3k6ip9fhE8vxJM34mSUnl4Ww3e9XlzlZx/ys0/F8P321RU5/zh//Zl/+fpjkGcbFjZc1IFfBkmHvNiwmONJj2SYrpa9skDCA8WECmPFaIVlK0Xr2OYgSzckaGjYEFL5cefx0sIpjioiaz9paaxooljagUikKAhvqWjCSLloB/MHmIiWSoX8wmEbLBo/6XaioPgvTMACwPY+TGXnBaXDCr7q/PRQ+3B7CIPthS1MN/VlS4XaU6QegWtK7r3w3vULiM0Hz1HTn/9e4vaY7R52g8qmucM3NGlZ1oe0M0x3n4fLcbiCkHTD1+ZLCycuW4Pg/x7fsqRjj8INwSVMQKyAnnjW9SX90UNVSXc8MFwS6EMqA8mZGbl0S3iNWQUnCxVEuA//VxWRfZ/a1JkYyF4GLhG2F6BliFnmRzU9gGFJ0mSNeU2CGiZjoXo+RFyM89LIy3mprEpZeWUQse59wYzlBkdNEDaObcBuVyxquVSMNZAwrAeJMJVatDbF2lzVDiipXJ6WLO940nK/ZqkSsnORNUCWNV+4+sTS7wxthvQZup2MNeu7bt5o5vWd8VuLa3260OeOPrX124U2tedT9HP87RfSTi77fjUOQgAAAABJRU5ErkJggg==&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;View Source Chart&quot;
        title=&quot;&quot;
        src=&quot;/static/99134538d300391a261d552be66f7427/dd45a/view-source-chart.png&quot;
        srcset=&quot;/static/99134538d300391a261d552be66f7427/991de/view-source-chart.png 173w,
/static/99134538d300391a261d552be66f7427/e4d6b/view-source-chart.png 345w,
/static/99134538d300391a261d552be66f7427/dd45a/view-source-chart.png 550w&quot;
        sizes=&quot;(max-width: 550px) 100vw, 550px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;View Source Chart&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;This was the inspiration for Firebug&apos;s HTML panel … the comparison is clear when both tools are compared, especially in early Firebug versions. The formatting is fairly similar except that Firebug has a number of improvements such as expandable and collapsible HTML nodes, improved indentation and live editing. In its time, view rendered source was a very useful way to view the structure of an HTML page and is still preferred by some developers.&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 562px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/f28ec3fadb4be9a9d2aabd61d87ebbde/6e88f/firebug-html-tree.png&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 59.53757225433526%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAMCAIAAADtbgqsAAAACXBIWXMAAAsTAAALEwEAmpwYAAAByElEQVR42n1Q2W7bMBDU/39AnQTNd7RpWiBPsQ00PmJJpmVZEiXqtKzTukluqSgPAYpkMVgMZznc5UrH/VpBJ9Oy9JMuKwpCaLvdatphtV5hy9yriqLIqiLLu1cBhIQgizTp0l5WX7fH1Yvy+PD0d7nZrPfoQLQD0TXXwPHB8AXQyVdPgaoLHrwpY0a6J1VpmSIrNnxTPx9k30ChZyVnMwqts40zQgpsZcTOKjvMg8x1CkfAzgWIX0msbnqHdI7bYLe0vIEQ8DCkEcQBEAy+A441Zs8a4Zjg4hGXCIBL0FZPz+T+Mf7+I7h/iGa/km/z4W7R3y372+VwuxhulvRm3s/mw0zwhVD6d/EFJM7o3mv/7PjPXfN7lS7UYnMs5hZ9Ntgm4JsARoTwTj5yHyQQ7Tltyr4paZMWEBIee6yuORsL8GmMJWHmjEHbd9huTdxFmsMVlWrHq+FGOO8oUPYppOn1qu6CoCtrVhc1JAlPEkjiIS/EjS9iMrPLpQ/DIYqugx+yIChrWlT8SyNMY8NAKSEtcasSe6DrDNvXrIrjmiYZFAXkOVwuI0lTiM99WRelcLz9WQwcRn2a8un831b4uDb+kUzLGjv/A5fKllK6Wyf5AAAAAElFTkSuQmCC&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Firebug HTML Tree&quot;
        title=&quot;&quot;
        src=&quot;/static/f28ec3fadb4be9a9d2aabd61d87ebbde/6e88f/firebug-html-tree.png&quot;
        srcset=&quot;/static/f28ec3fadb4be9a9d2aabd61d87ebbde/991de/firebug-html-tree.png 173w,
/static/f28ec3fadb4be9a9d2aabd61d87ebbde/e4d6b/firebug-html-tree.png 345w,
/static/f28ec3fadb4be9a9d2aabd61d87ebbde/6e88f/firebug-html-tree.png 562w&quot;
        sizes=&quot;(max-width: 562px) 100vw, 562px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Firebug HTML Tree&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;h2 id=&quot;consolesup2sup&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#consolesup2sup&quot; aria-label=&quot;consolesup2sup permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Console&lt;sup&gt;2&lt;/sup&gt;&lt;/h2&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 660px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/a9be52d0c2aa5813a383a1bf4316736b/1f083/console2.png&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 56.64739884393063%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAALCAIAAADwazoUAAAACXBIWXMAAAsTAAALEwEAmpwYAAACHUlEQVR42m2Q2XPSUBSH85872hen9rHaOrXFjrWWLpSpLTaFUkKgkIWQhayEkABZbpBSkwhBlnph1NEZv/vNmfvyO+eei6C3fKlcz2EUwSgsr9c4nRV0UemIsrWsalds2vAuKR1J7QiSCeUaRrEs5M+zSOameJHDs8lU8t2HvZP00enh/ul1Gi1d3lZPrvEyVmEKRULQCVYu042e24fa3le3P8QrdeTjGbrz6SKRON7ZTW4fpN7uH+weXWUK5BeMyhSoz5c3hWw+VyTQfAm9KxfvKehxGs0VyfOrPJLHKbYh10VVUJuCrLGixomqqBqa0TW73t5hen3z/cZm4sX61tqrrefrb569fL22sY1iRCqDIYpSMlodnu/zHOB4wHGgqTuua4dR9GPFdMVisXj6zXw+H41GimYiYqOga71a7YGm+yThUpTPML5pAsexPc+zLMvu9TrdbhCGMDNbAXvBFm3TRhyGNHgxj9VIUqRpqVrhCUKqVFiW5QAAvu/3+75t2+PxGA6fr5hOZzBswDBQFEO08VIHw0wcb98VDLxkkWTbNHue58Ks74N4MvmThMBdoigUZR1xiPs2Z5SrFsf5bTNWtaDVioaPAXznI6xBCE8cx9O/mEwmURTJqoF4JNGTLJpxBAHI8sBzZwA8Oc7SIPj1Q4t/gWvH8VhtmohFU6Zk0+ygxgCSciU58sAojEZBuDT6/h+/BeHgYcg1tJ9gVDNTIFBmPgAAAABJRU5ErkJggg==&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Console2&quot;
        title=&quot;&quot;
        src=&quot;/static/a9be52d0c2aa5813a383a1bf4316736b/1f083/console2.png&quot;
        srcset=&quot;/static/a9be52d0c2aa5813a383a1bf4316736b/991de/console2.png 173w,
/static/a9be52d0c2aa5813a383a1bf4316736b/e4d6b/console2.png 345w,
/static/a9be52d0c2aa5813a383a1bf4316736b/1f083/console2.png 660w&quot;
        sizes=&quot;(max-width: 660px) 100vw, 660px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Console2&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;Console&lt;sup&gt;2&lt;/sup&gt;, pronounced Console Squared or Console Two, replaced the JavaScript Console with what was a revolutionary Error Console.&lt;/p&gt;
&lt;p&gt;This extension made it much simpler to find the cause of JavaScript errors by showing the line number and, eventually, allowing you to link to this line in the source. This method is all that is required to find syntax errors but is not so useful when it comes to finding logic errors. Still, this extension saved developers many, many hours when debugging JavaScript.&lt;/p&gt;
&lt;p&gt;This extension was the inspiration for the error reporting in Firebug&apos;s Console Panel.&lt;/p&gt;
&lt;h2 id=&quot;aardvark&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#aardvark&quot; aria-label=&quot;aardvark permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Aardvark&lt;/h2&gt;
&lt;p&gt;Aardvark was another excellent extension and also the inspiration for Firebug&apos;s Inspector. By moving the mouse over elements on the screen you could view simple DOM properties like tag name, class and id.&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 193px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/61c89e59d2bb719e25fae7268fa3da8f/6d2d1/aardvark.png&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 60.69364161849711%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAMCAIAAADtbgqsAAAACXBIWXMAAAsTAAALEwEAmpwYAAACjUlEQVR42lXQ204aQRgHcJ+oD9A36BP0qmniRS9qTJo06VVt0tSmadWaaAuieALLSY7CisLqyp7YXXZ2dgGXFZBzdZcigmAtrUh3vXOS+S7+M79838zYaDRqZ9P5ULBC4AU0XkDROkl0JLEjQfj9E/Z6XMV2Ojx24rKcY/4eFf/XaulkdHenlzF9NxmK2Y8SHEMnSQyneCjp4eCmnzC9jUw9j318gc5Mel4+WX/2WPr2ftRsPsCqABWWO9NUTVNPS6Xrft84Hg6G1xXR85VemNibnshFN1n7Fzj/bqhqD3CVotzL1iMCT9JJXzBy0W6P7teZGGWsU0poAWx9vrup6O8bFFJ/642HYwOejoZzp6fZY/nysg1FKXeS13N09hVwzQPbB/vTR6Jz9va60sJCXbnwZzC8ufo9vB0a+EKUpAQmZDIQwlq9xnJspVrX8wYXpXyb3OY0OTPJ+Cyww2cuSNhkhC7EawlJlu47CwKJIHKhSBBEuVpV1XMepBiGycjHgZ2Iy+PhWI5OJf1Zz8qRdaeMgBE47KC0QBn4FxRTsX1WgBAIpXKpVq1AKEiSlNYnEQAAfF5RBIlz4Cvjb8ZNuxYbaXenvVyaM3ALigSCkICjgYjTSZYHvCjBbK7aqO4fJkS5qN/5qZ55s6GAEgqkfb60387acRY3sCaKpGk+5bSiZqMC90bStnRgnpPDLs65piC+HqRVMl4+CCvbGxkiJss84Kh+v29g/YfllFdTkDztkjF7IxMupzw5zJbFtoq0A+6tK6SjnUfE2FpVCMpJdxEEsyCsaU0D93u9gNscDVgiXnPAsRgPr6I7VmR7KepfjnhNEbd5178cD1t/rM7uBa3bG3Mh5+JucL3bvfoPxIo8PNtTCq8AAAAASUVORK5CYII=&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Aardvark&quot;
        title=&quot;&quot;
        src=&quot;/static/61c89e59d2bb719e25fae7268fa3da8f/6d2d1/aardvark.png&quot;
        srcset=&quot;/static/61c89e59d2bb719e25fae7268fa3da8f/991de/aardvark.png 173w,
/static/61c89e59d2bb719e25fae7268fa3da8f/6d2d1/aardvark.png 193w&quot;
        sizes=&quot;(max-width: 193px) 100vw, 193px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Aardvark&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;Sometimes the simplest ideas are the best and the concept of the inspector (highlighter) quickly became one of the core features of Firebug as it made it possible for people to select HTML elements as targets for each of Firebug&apos;s panels.&lt;/p&gt;
&lt;h2 id=&quot;mochikit-javascript-interpreter&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#mochikit-javascript-interpreter&quot; aria-label=&quot;mochikit javascript interpreter permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;MochiKit JavaScript Interpreter&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;https://mochi.github.com/mochikit/&quot;&gt;MochiKit&lt;/a&gt; is a lightweight JavaScript library written and maintained by Bob Ippolito. It is Inspired by the Python networking framework and Twisted. It uses the concept of deferred execution to allow asynchronous behavior. This has made it very useful in the development of AJAX applications.&lt;/p&gt;
&lt;p&gt;Of particular note is its ability to load and manipulate JSON-encoded data sets, and MochiKit.DOM, a set of functions to easily create dynamic page components.&lt;/p&gt;
&lt;p&gt;MochiKit forms the foundation of the client-side functionality of the TurboGears Python web-application stack. Perhaps as a result of the author&apos;s involvement in the Python community, MochiKit exhibits many idioms familiar to Python programmers, and is commonly used in Python-based web applications.&lt;/p&gt;
&lt;p&gt;The JavaScript Interpreter allows you to run JavaScript commands a line at a time and view the results in a div. Using this command line it is possible to quickly view the values of DOM properties, change the value of variables or call a pages functions. This was Joe Hewitt&apos;s inspiration for Firebug&apos;s JavaScript Interpreter (part of the JavaScript Console).&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 616px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/1e3e79676726e40dadd16a18ae464c03/40040/mochikit-javascript-interpreter.png&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 23.699421965317917%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAFCAIAAADKYVtkAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAh0lEQVR42pWMSQ7EIAwE+f9DE0Uo7DZ4AcaT42gu6a5Ll2S7G0Lp5SqXr/7M5w23bz5AAEISIhkszEKDjWEQmyTRb91RDjuIPTZqqac8cu459WyzUm1UO3dktFlGeUwDApmy5nIVWJfu95lzOsRd60Jca9uvv9kPv1J1OoDQWkCMqlHkBczpA++qI5Nr1FAfAAAAAElFTkSuQmCC&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;MochiKit JavaScript Interpreter&quot;
        title=&quot;&quot;
        src=&quot;/static/1e3e79676726e40dadd16a18ae464c03/40040/mochikit-javascript-interpreter.png&quot;
        srcset=&quot;/static/1e3e79676726e40dadd16a18ae464c03/991de/mochikit-javascript-interpreter.png 173w,
/static/1e3e79676726e40dadd16a18ae464c03/e4d6b/mochikit-javascript-interpreter.png 345w,
/static/1e3e79676726e40dadd16a18ae464c03/40040/mochikit-javascript-interpreter.png 616w&quot;
        sizes=&quot;(max-width: 616px) 100vw, 616px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Mochikit JavaScript interpreter&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;h2 id=&quot;firebug-through-the-ages&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#firebug-through-the-ages&quot; aria-label=&quot;firebug through the ages permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Firebug Through the Ages&lt;/h2&gt;
&lt;p&gt;Although all of the applications we have discussed so far in this chapter were inspiration for some of Firebug&apos;s features, this does not mean that they were simply merged together and Firebug was complete. Firebug, like most applications was very simple and has gradually evolved into the fantastic tool that it is now.&lt;/p&gt;
&lt;h2 id=&quot;version-02&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#version-02&quot; aria-label=&quot;version 02 permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Version 0.2&lt;/h2&gt;
&lt;p&gt;&lt;div class=&quot;gatsby-resp-iframe-wrapper&quot; style=&quot;padding-bottom: 56.49999999999999%; position: relative; height: 0; overflow: hidden; &quot; &gt; &lt;div class=&quot;embedVideo-container&quot;&gt; &lt;iframe title=&quot;&quot; src=&quot;https://www.youtube.com/embed/JVCioNT-SYE?rel=0&quot; class=&quot;embedVideo-iframe&quot; style=&quot;border:0; position: absolute; top: 0; left: 0; width: 100%; height: 100%; &quot; loading=&quot;lazy&quot; allowfullscreen=&quot;&quot; sandbox=&quot;allow-same-origin allow-scripts allow-popups&quot;&gt;&lt;/iframe&gt; &lt;/div&gt; &lt;/div&gt;&lt;/p&gt;
&lt;p&gt;The first publicly available release of Firebug was version 0.2. Although this was the first released version of Firebug it contained some very useful features even though there was only a single panel. In this version of Firebug there is only one panel, which is roughly equivalent to the console panel. AJAX logging was present even in this version.&lt;/p&gt;
&lt;p&gt;The printfire function was the standard way to output messages. Inspected elements were logged to the panel with four tabs on the right hand side. Clicking these tabs expanded the panel&apos;s representation of the element, which consisted of:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The XML tab shows the element in HTML view&lt;/li&gt;
&lt;li&gt;The CSS tab shows the elements CSS styles&lt;/li&gt;
&lt;li&gt;The Box tab shows the selected elements classic box model property values&lt;/li&gt;
&lt;li&gt;The JS tab shows the JavaScript properties of the selected element&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Whenever there were JavaScript errors the status bar indicator would display the number of errors. Clicking on this status bar indicator would open Firebug.&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 318px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/cdf17f09f03b512397aadd80cc3a9b8a/cd2d9/firebug-02-status-bar-indicator.png&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 31.79190751445087%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAGCAIAAABM9SnKAAAACXBIWXMAAAsTAAALEwEAmpwYAAABS0lEQVR42m2Iz0vCYACG9zcE3TQh7KzSrQ4dhQ5BBy0IomOX6FhEBzsVktCtUxAGUbcgMEm0SJe5UplTExkrnYpzy63Jfnzfts9mQYfo5eHleV+s0WjgOE5/h6KoQqFQLBZJkswTRIUkRZ5HABg2o8AfTBNqup4tdTFdNxRFtxtCCxqWpkMdGPbUTEtFSEMIDIfAQsCwDBMZpgVHbU/UFgA2kLiB1JMlTha7sjjygS2yoLyW1KeM+vKoPNypNVLqt/g2I3QYgWt+9Ng+z34KTaxaL/+lVqJYmtnaafkX3hZX2Dl/NRyJU5XLeOwimbhK3FzfJxPZVAqPYt51+n823j2b7Pwe493tzJyXl09js0eVwEHGfSL6ouL0mTh1zGGOQM4ZzE0sPf/iCBCOIGGftnjWcOcqMRlO+/Zj7lDet307HqZdEdp1SI+F6l8mFwvgZCq8IgAAAABJRU5ErkJggg==&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Firebug 0.2 status bar indicator&quot;
        title=&quot;&quot;
        src=&quot;/static/cdf17f09f03b512397aadd80cc3a9b8a/cd2d9/firebug-02-status-bar-indicator.png&quot;
        srcset=&quot;/static/cdf17f09f03b512397aadd80cc3a9b8a/991de/firebug-02-status-bar-indicator.png 173w,
/static/cdf17f09f03b512397aadd80cc3a9b8a/cd2d9/firebug-02-status-bar-indicator.png 318w&quot;
        sizes=&quot;(max-width: 318px) 100vw, 318px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Firebug 0.2 status bar indicator&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;h2 id=&quot;version-03&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#version-03&quot; aria-label=&quot;version 03 permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Version 0.3&lt;/h2&gt;
&lt;p&gt;Version 0.3 introduced major changes to the way that Firebug worked, particularly the way that the inspector worked. Firebug now had two main tabs, a console tab to display messages and an inspector tab that allowed you to view the element. There was also a new search box that allowed you to search for tabs in the HTML Tree. The Inspector tab had five other tabs:.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Source: The HTML tree. This panel has been largely unchanged from this version onwards.&lt;/li&gt;
&lt;li&gt;Style: A few computed styles.&lt;/li&gt;
&lt;li&gt;Layout: Basic layout information.&lt;/li&gt;
&lt;li&gt;Events: Any events raised triggered on the currently selected element.&lt;/li&gt;
&lt;li&gt;DOM: JavaScript object view of the currently selected node.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;div class=&quot;gatsby-resp-iframe-wrapper&quot; style=&quot;padding-bottom: 56.49999999999999%; position: relative; height: 0; overflow: hidden; &quot; &gt; &lt;div class=&quot;embedVideo-container&quot;&gt; &lt;iframe title=&quot;&quot; src=&quot;https://www.youtube.com/embed/HBHkanS1euM?rel=0&quot; class=&quot;embedVideo-iframe&quot; style=&quot;border:0; position: absolute; top: 0; left: 0; width: 100%; height: 100%; &quot; loading=&quot;lazy&quot; allowfullscreen=&quot;&quot; sandbox=&quot;allow-same-origin allow-scripts allow-popups&quot;&gt;&lt;/iframe&gt; &lt;/div&gt; &lt;/div&gt;&lt;/p&gt;
&lt;h2 id=&quot;version-04&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#version-04&quot; aria-label=&quot;version 04 permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Version 0.4&lt;/h2&gt;
&lt;p&gt;Version 0.4 was the first version to feature the Debugger tab (figure 2.7.7.1).&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Stack traces were now displayed along with error messages.&lt;/li&gt;
&lt;li&gt;console.log(&apos;message&apos;), console.warn(&apos;message&apos;), console.info(&apos;message&apos;) etc. replaced printfire and were made available to all web pages.&lt;/li&gt;
&lt;li&gt;In the DOM tab arrays were now expandable and functions could be expanded to show their source.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Obviously, the inclusion of the JavaScript debugger was a major step forwards in Firebug&apos;s evolutionary trail. The whole idea of debugging JavaScript in the browser itself was something we had been waiting a long time for. Great job Joe!&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;gatsby-resp-iframe-wrapper&quot; style=&quot;padding-bottom: 56.49999999999999%; position: relative; height: 0; overflow: hidden; &quot; &gt; &lt;div class=&quot;embedVideo-container&quot;&gt; &lt;iframe title=&quot;&quot; src=&quot;https://www.youtube.com/embed/LvdcAm1-4zU?rel=0&quot; class=&quot;embedVideo-iframe&quot; style=&quot;border:0; position: absolute; top: 0; left: 0; width: 100%; height: 100%; &quot; loading=&quot;lazy&quot; allowfullscreen=&quot;&quot; sandbox=&quot;allow-same-origin allow-scripts allow-popups&quot;&gt;&lt;/iframe&gt; &lt;/div&gt; &lt;/div&gt;&lt;/p&gt;
&lt;h2 id=&quot;version-10&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#version-10&quot; aria-label=&quot;version 10 permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Version 1.0&lt;/h2&gt;
&lt;p&gt;After version 0.4.1 Joe realized that people were depending on Firebug for their jobs and decided to have one person work on it full time. Version 1.0 represented a complete redesign of the Firebug user interface from the ground up. A bunch of new features were also released with this version, Joe lists them as:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;CSS editing&lt;/li&gt;
&lt;li&gt;Network load timing&lt;/li&gt;
&lt;li&gt;Box model visualization&lt;/li&gt;
&lt;li&gt;JavaScript profiling&lt;/li&gt;
&lt;li&gt;Command line autocomplete&lt;/li&gt;
&lt;li&gt;HTML change highlighting&lt;/li&gt;
&lt;li&gt;Debugger watchlists&lt;/li&gt;
&lt;li&gt;DOM editing&lt;/li&gt;
&lt;li&gt;Separate window support&lt;/li&gt;
&lt;li&gt;Per-site blacklists&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;div class=&quot;gatsby-resp-iframe-wrapper&quot; style=&quot;padding-bottom: 56.49999999999999%; position: relative; height: 0; overflow: hidden; &quot; &gt; &lt;div class=&quot;embedVideo-container&quot;&gt; &lt;iframe title=&quot;&quot; src=&quot;https://www.youtube.com/embed/Ks_Pp2jghVY?rel=0&quot; class=&quot;embedVideo-iframe&quot; style=&quot;border:0; position: absolute; top: 0; left: 0; width: 100%; height: 100%; &quot; loading=&quot;lazy&quot; allowfullscreen=&quot;&quot; sandbox=&quot;allow-same-origin allow-scripts allow-popups&quot;&gt;&lt;/iframe&gt; &lt;/div&gt; &lt;/div&gt;&lt;/p&gt;
&lt;p&gt;At this point Joe was spending a lot of time on Firebug and was considering making it a paid product ($15 - $25) so that he could employ a couple of full-time engineers. Needless to say, this was a final option and never happened.&lt;/p&gt;
&lt;p&gt;Although there has been lots of work done on Firebug since version 1.0 most of it has been bugfixes and minor features. Some major changes have crept in though, including:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Console tab: Break on all errors.&lt;/li&gt;
&lt;li&gt;HTML tab: Break on HTML mutation.&lt;/li&gt;
&lt;li&gt;DOM tab: Break on property change.&lt;/li&gt;
&lt;li&gt;Net tab: Break on XHR.&lt;/li&gt;
&lt;li&gt;Persist button on all tabs.&lt;/li&gt;
&lt;li&gt;Switch color types.&lt;/li&gt;
&lt;li&gt;Restartless install&lt;/li&gt;
&lt;li&gt;Tabs on the top&lt;/li&gt;
&lt;li&gt;Navigation history&lt;/li&gt;
&lt;li&gt;Break on next&lt;/li&gt;
&lt;li&gt;Cookie tab&lt;/li&gt;
&lt;li&gt;Command line popup&lt;/li&gt;
&lt;li&gt;Command line history&lt;/li&gt;
&lt;li&gt;New side panels (e.g. selectors)&lt;/li&gt;
&lt;li&gt;List of tabs in the toolbar&lt;/li&gt;
&lt;li&gt;Tab options&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Joe Hewitt talks about these things in his blog post &lt;a href=&quot;https://joehewitt.com/2006/03/15/firebug-a-love-story&quot;&gt;Firebug: A Love Story&lt;/a&gt;.&lt;/p&gt;</content:encoded><author>michael@ratcliffefamily.org</author></item><item><title><![CDATA[Why it is Awesome to Work for Mozilla?]]></title><description><![CDATA[Since my post about what it is like to work as an engineer at Mozilla lots of people have asked about why I chose to work for Mozilla. I had…]]></description><link>https://flailingmonkey.com/why-it-is-awesome-to-work-for-mozilla/</link><guid isPermaLink="false">https://flailingmonkey.com/why-it-is-awesome-to-work-for-mozilla/</guid><category><![CDATA[Mozilla]]></category><dc:creator><![CDATA[Mike Ratcliffe]]></dc:creator><pubDate>Sun, 15 Sep 2013 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Since my post about &lt;a href=&quot;/what-is-it-like-to-work-as-an-engineer-at-mozilla/&quot;&gt;what it is like to work as an engineer at Mozilla&lt;/a&gt; lots of people have asked about why I chose to work for Mozilla. I had opportunities to work for Google or Facebook but I have always had a great respect for Mozilla.&lt;/p&gt;
&lt;p&gt;Of course, Google and Facebook are also creative and constantly working on awesome stuff but Mozilla is more than just a job... their mission is something that I feel that I really need to fight for.&lt;/p&gt;
&lt;p&gt;Back in 1997 the Netscape browser was pushing more and more traffic towards AOL&apos;s search and other services. It is never any good for a single company to have too much power and control over the internet and if things continued as they were, then it is likely that one company would have &quot;owned&quot; the internet. Could you imagine everybody having to pay a single company for internet access, storing contacts, searches and each page view?&lt;/p&gt;
&lt;p&gt;Eventually, Mozilla broke away from AOL Netscape because they believed that the internet should be free and open for everybody. &lt;a href=&quot;https://www.mozilla.org/mission/&quot;&gt;Mozilla&apos;s mission&lt;/a&gt; is not to simply write and maintain Firefox, it is to keep the power of the Web in people’s hands. Firefox is simply a means to an end in accomplishing this.&lt;/p&gt;
&lt;p&gt;Mozilla does a fantastic job of promoting openness, innovation and opportunity on the Internet. They do this by teaching kids and adults to create web pages, inventing awesome stuff, contributing to web standards and generally trying to make the web a better place. They really are building the future of the internet.&lt;/p&gt;
&lt;p&gt;Mozilla also does a great job of keeping peoples data private. Countless people have asked how this can be when sync data is stored on Mozilla&apos;s servers. We have made huge efforts to keep this data private. All of the data is stored in a gigantic unreadable blob. Each computer has a key that it uses to access the data and without that key the data is completely useless.&lt;/p&gt;
&lt;p&gt;So why is it awesome to work for Mozilla? Well, I am working with some of the most talented, creative developers in the world. The internet is still at risk of becoming &quot;owned&quot; by large organisations and I don&apos;t like this idea and I refuse to go down without a fight. I refuse to hand all of my data over to those that ask nicely enough by offering &quot;free&quot; services in exchange for my privacy. Everything I do at work helps keep the internet free and open to everybody and this helps me feel that I am fighting to save a free and open internet.&lt;/p&gt;
&lt;p&gt;Amazingly, the right to privacy and a desire to make the internet a better place is only one reason that it is awesome to work for Mozilla. Another thing is that my mindset is set squarely within the open source culture. Open source simply produces better software... everyone collaborates, a product evolves at an astonishing rate and the best technology wins. Given enough eyeballs, all bugs are shallow.&lt;/p&gt;
&lt;p&gt;I also think that there is a place for paid software. If somebody is working hard to provide a quality service then I am more than happy to pay, even if it is open source. There is something very appealing about being able to look at a program&apos;s source to make sure a program is doing what it claims to be. Submitting fixes and adding new features to these programs is also something that feels right... it just feels like this is the way things are supposed to work.&lt;/p&gt;
&lt;p&gt;The icing on the cake has to be that everyone that works for Mozilla feels the same way about open source software. There is a unity of purpose at the company that I do not believe exists anywhere else. We don&apos;t create awesome stuff just because we have been asked to do it. We create it because we have an awesome idea and have che chance to bring it to life. We code for the joy of coding and no job gets better than that.&lt;/p&gt;
&lt;p&gt;Amazingly &lt;a href=&quot;https://www.whatcanidoformozilla.org/&quot;&gt;everybody can do something for Mozilla&lt;/a&gt; and join the fight keep the internet open... you don&apos;t even need to know any programming languages.&lt;/p&gt;</content:encoded><author>michael@ratcliffefamily.org</author></item><item><title><![CDATA[Bugzilla Tips, Hacks and Etiquette]]></title><description><![CDATA[Even after a few years working for Mozilla I still occasionally come across a Bugzilla tip that I don't know about. This post is a attempt…]]></description><link>https://flailingmonkey.com/bugzilla-tips-hacks-and-etiquette/</link><guid isPermaLink="false">https://flailingmonkey.com/bugzilla-tips-hacks-and-etiquette/</guid><category><![CDATA[Mozilla]]></category><dc:creator><![CDATA[Mike Ratcliffe]]></dc:creator><pubDate>Thu, 27 Jun 2013 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Even after a few years working for Mozilla I still occasionally come across a Bugzilla tip that I don&apos;t know about. This post is a attempt to gather Bugzilla tips from around the Internet whilst adding a few of my own to the list.&lt;/p&gt;
&lt;p&gt;To start, if you’ve never used Bugzilla before (or even if you have), you should watch a video &lt;a href=&quot;https://twitter.com/johnath&quot;&gt;johnath&lt;/a&gt; made called &quot;Bugzilla for Humans.&quot; It gives a really nice overview of key Bugzilla features, as well as tips for more advanced users:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;gatsby-resp-iframe-wrapper&quot; style=&quot;padding-bottom: 56.49999999999999%; position: relative; height: 0; overflow: hidden; &quot; &gt; &lt;div class=&quot;embedVideo-container&quot;&gt; &lt;iframe title=&quot;&quot; src=&quot;https://www.youtube.com/embed/piT1pflOTDs?rel=0&quot; class=&quot;embedVideo-iframe&quot; style=&quot;border:0; position: absolute; top: 0; left: 0; width: 100%; height: 100%; &quot; loading=&quot;lazy&quot; allowfullscreen=&quot;&quot; sandbox=&quot;allow-same-origin allow-scripts allow-popups&quot;&gt;&lt;/iframe&gt; &lt;/div&gt; &lt;/div&gt;&lt;/p&gt;
&lt;h2 id=&quot;quicksearch-ill-race-ya&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#quicksearch-ill-race-ya&quot; aria-label=&quot;quicksearch ill race ya permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Quicksearch, I&apos;ll Race Ya!&lt;/h2&gt;
&lt;p&gt;The most useful tip I know of is to set up a keyword search for the quicksearch box. Open &lt;a href=&quot;https://bugzilla.mozilla.org/&quot;&gt;https://bugzilla.mozilla.org/&lt;/a&gt; and right-click the quicksearch box near the top of the page. Select &quot;Add a keyword for this search…&quot; and in the keyword field type &quot;bug.&quot; You can now search bugzilla using queries like this directly from your Firefox Awesome Bar:&lt;/p&gt;
&lt;p&gt;&lt;code class=&quot;language-text&quot;&gt;bug 50000&lt;/code&gt; opens bug 50000.&lt;/p&gt;
&lt;p&gt;Or even:
&lt;code class=&quot;language-text&quot;&gt;bug WONTFIX Inspector&lt;/code&gt; open bugs containing &quot;Inspector&quot; and marked as WONTFIX.&lt;/p&gt;
&lt;p&gt;Two lists of quicksearch fields are available. A simplified list can be found &lt;a href=&quot;https://www.squarefree.com/bugzilla/quicksearch-help.html&quot;&gt;here&lt;/a&gt; and a more complete list can be found &lt;a href=&quot;https://bugzilla.mozilla.org/page.cgi?id=quicksearch.html&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://twitter.com/beltzner&quot;&gt;Mike Beltzner&lt;/a&gt; created an excellent video explaining some of the ways this feature can be used:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;gatsby-resp-iframe-wrapper&quot; style=&quot;padding-bottom: 56.49999999999999%; position: relative; height: 0; overflow: hidden; &quot; &gt; &lt;div class=&quot;embedVideo-container&quot;&gt; &lt;iframe title=&quot;&quot; src=&quot;https://www.youtube.com/embed/14W-XguG--U?rel=0&quot; class=&quot;embedVideo-iframe&quot; style=&quot;border:0; position: absolute; top: 0; left: 0; width: 100%; height: 100%; &quot; loading=&quot;lazy&quot; allowfullscreen=&quot;&quot; sandbox=&quot;allow-same-origin allow-scripts allow-popups&quot;&gt;&lt;/iframe&gt; &lt;/div&gt; &lt;/div&gt;&lt;/p&gt;
&lt;h2 id=&quot;watching-a-component-or-a-developer&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#watching-a-component-or-a-developer&quot; aria-label=&quot;watching a component or a developer permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Watching a Component or a Developer&lt;/h2&gt;
&lt;p&gt;If you find yourself interested in a certain area of the Mozilla project e.g. Firefox::Developer Tools, you can opt to &lt;a href=&quot;https://bugzilla.mozilla.org/userprefs.cgi?tab=component_watch&quot;&gt;watch its Bugzilla component&lt;/a&gt;. You can also &lt;a href=&quot;https://bugzilla.mozilla.org/userprefs.cgi?tab=email&quot;&gt;watch certain users&lt;/a&gt;, which is a really neat feature if you’re a new contributor looking to follow the activity of a more experienced developer.&lt;/p&gt;
&lt;h2 id=&quot;autolinkification&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#autolinkification&quot; aria-label=&quot;autolinkification permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Autolinkification&lt;/h2&gt;
&lt;p&gt;Bugzilla comments are plain text - so typing &amp;#x3C;U&gt; will produce less-than, U, greater-than rather than underlined text. However, Bugzilla will automatically make hyperlinks out of certain sorts of text in comments. For example, the text &quot;&lt;a href=&quot;https://www.bugzilla.org&quot;&gt;https://www.bugzilla.org&lt;/a&gt;&quot; will be turned into a link: &lt;a href=&quot;https://www.bugzilla.org&quot;&gt;https://www.bugzilla.org&lt;/a&gt;. Other strings which get linkified in the obvious manner are:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;bug 12345&lt;/li&gt;
&lt;li&gt;comment 7&lt;/li&gt;
&lt;li&gt;bug 23456, comment 53&lt;/li&gt;
&lt;li&gt;attachment 4321&lt;/li&gt;
&lt;li&gt;mailto:&lt;a href=&quot;mailto:george@example.com&quot;&gt;george@example.com&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;mailto:george@example.com&quot;&gt;george@example.com&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;ftp://ftp.mozilla.org&lt;/li&gt;
&lt;li&gt;Most other sorts of URL&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;A corollary here is that if you type a bug number in a comment, you should put the word &quot;bug&quot; before it, so it gets autolinkified for the convenience of others.&lt;/p&gt;
&lt;h2 id=&quot;use-needinfo&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#use-needinfo&quot; aria-label=&quot;use needinfo permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Use Needinfo&lt;/h2&gt;
&lt;p&gt;There is a flag for all bugs in Bugzilla called the needinfo flag which should be used if you need information from someone. So if you are asking someone a question, then needinfo them!&lt;/p&gt;
&lt;h2 id=&quot;is-your-bugzilla-butt-ugly&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#is-your-bugzilla-butt-ugly&quot; aria-label=&quot;is your bugzilla butt ugly permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Is your Bugzilla Butt-Ugly?&lt;/h2&gt;
&lt;p&gt;You are probably still using the default theme. This can be easily remedied:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Click &lt;kbd&gt;Preferencies&lt;/kbd&gt; → &lt;kbd&gt;General Preferences&lt;/kbd&gt;.&lt;/li&gt;
&lt;li&gt;Under &lt;kbd&gt;Bugzilla&apos;s general appearance (skin)&lt;/kbd&gt; select &lt;kbd&gt;Mozilla&lt;/kbd&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Now your Bugzilla looks &lt;a href=&quot;https://www.youtube.com/watch?v=R2iOCHhJVhE&quot;&gt;sexy and you know it&lt;/a&gt;!&lt;/p&gt;
&lt;h2 id=&quot;does-your-bugmail-make-your-eyes-bleed&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#does-your-bugmail-make-your-eyes-bleed&quot; aria-label=&quot;does your bugmail make your eyes bleed permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Does your Bugmail make your Eyes Bleed?&lt;/h2&gt;
&lt;p&gt;Well, you probably have Bugzilla set up to use the default email format (text):&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 628px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/270cd57aaf1d14fc27781013a3a1a66b/b4e32/bugzilla-plain-text-email.jpg&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 50.86705202312138%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/jpeg;base64,/9j/2wBDABALDA4MChAODQ4SERATGCgaGBYWGDEjJR0oOjM9PDkzODdASFxOQERXRTc4UG1RV19iZ2hnPk1xeXBkeFxlZ2P/2wBDARESEhgVGC8aGi9jQjhCY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2P/wgARCAAKABQDASIAAhEBAxEB/8QAFwABAQEBAAAAAAAAAAAAAAAAAQACBf/EABQBAQAAAAAAAAAAAAAAAAAAAAD/2gAMAwEAAhADEAAAAe2iaiP/xAAVEAEBAAAAAAAAAAAAAAAAAAAQAf/aAAgBAQABBQJj/8QAFBEBAAAAAAAAAAAAAAAAAAAAEP/aAAgBAwEBPwE//8QAFBEBAAAAAAAAAAAAAAAAAAAAEP/aAAgBAgEBPwE//8QAFBABAAAAAAAAAAAAAAAAAAAAIP/aAAgBAQAGPwJf/8QAGRAAAgMBAAAAAAAAAAAAAAAAASEAEBEx/9oACAEBAAE/IVsK5kBVBX//2gAMAwEAAgADAAAAEJjP/8QAFBEBAAAAAAAAAAAAAAAAAAAAEP/aAAgBAwEBPxA//8QAFREBAQAAAAAAAAAAAAAAAAAAEBH/2gAIAQIBAT8Qp//EABoQAQEBAQADAAAAAAAAAAAAAAERACExQWH/2gAIAQEAAT8QVwQMiXt7tyoU78zUau8td//Z&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Bugzilla Plain Text Email&quot;
        title=&quot;&quot;
        src=&quot;/static/270cd57aaf1d14fc27781013a3a1a66b/b4e32/bugzilla-plain-text-email.jpg&quot;
        srcset=&quot;/static/270cd57aaf1d14fc27781013a3a1a66b/9ac50/bugzilla-plain-text-email.jpg 173w,
/static/270cd57aaf1d14fc27781013a3a1a66b/8d48c/bugzilla-plain-text-email.jpg 345w,
/static/270cd57aaf1d14fc27781013a3a1a66b/b4e32/bugzilla-plain-text-email.jpg 628w&quot;
        sizes=&quot;(max-width: 628px) 100vw, 628px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Bugzilla plain text email&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;Switching this to HTML format makes them 1000 times easier to read, especially on a phone. Don&apos;t look for it under the &quot;Email Preferences&quot; tab though, that would be way too easy.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Click &lt;kbd&gt;Preferencies&lt;/kbd&gt; → &lt;kbd&gt;General Preferences&lt;/kbd&gt;.&lt;/li&gt;
&lt;li&gt;Under &lt;kbd&gt;Preferred email format&lt;/kbd&gt; select &lt;kbd&gt;HTML&lt;/kbd&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 616px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/80a66e329cb7da074f2f980d92e89d28/4ae3a/bugzilla-html-email.jpg&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 53.17919075144509%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/jpeg;base64,/9j/2wBDABALDA4MChAODQ4SERATGCgaGBYWGDEjJR0oOjM9PDkzODdASFxOQERXRTc4UG1RV19iZ2hnPk1xeXBkeFxlZ2P/2wBDARESEhgVGC8aGi9jQjhCY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2P/wgARCAALABQDASIAAhEBAxEB/8QAFwABAQEBAAAAAAAAAAAAAAAAAAECBf/EABQBAQAAAAAAAAAAAAAAAAAAAAD/2gAMAwEAAhADEAAAAe4U0g//xAAVEAEBAAAAAAAAAAAAAAAAAAAgIf/aAAgBAQABBQKL/8QAFBEBAAAAAAAAAAAAAAAAAAAAEP/aAAgBAwEBPwE//8QAFBEBAAAAAAAAAAAAAAAAAAAAEP/aAAgBAgEBPwE//8QAFBABAAAAAAAAAAAAAAAAAAAAIP/aAAgBAQAGPwJf/8QAGBABAQEBAQAAAAAAAAAAAAAAAAExEZH/2gAIAQEAAT8hxryomI6//9oADAMBAAIAAwAAABAID//EABQRAQAAAAAAAAAAAAAAAAAAABD/2gAIAQMBAT8QP//EABQRAQAAAAAAAAAAAAAAAAAAABD/2gAIAQIBAT8QP//EABkQAQADAQEAAAAAAAAAAAAAAAEAESFRkf/aAAgBAQABPxClTD1ZgiNEol0eTeg8mGK7P//Z&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Bugzilla HTML Email&quot;
        title=&quot;&quot;
        src=&quot;/static/80a66e329cb7da074f2f980d92e89d28/4ae3a/bugzilla-html-email.jpg&quot;
        srcset=&quot;/static/80a66e329cb7da074f2f980d92e89d28/9ac50/bugzilla-html-email.jpg 173w,
/static/80a66e329cb7da074f2f980d92e89d28/8d48c/bugzilla-html-email.jpg 345w,
/static/80a66e329cb7da074f2f980d92e89d28/4ae3a/bugzilla-html-email.jpg 616w&quot;
        sizes=&quot;(max-width: 616px) 100vw, 616px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Bugzilla HTML email&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;h2 id=&quot;bugzilla-extensions-to-rock-your-world&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#bugzilla-extensions-to-rock-your-world&quot; aria-label=&quot;bugzilla extensions to rock your world permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Bugzilla Extensions to Rock your World&lt;/h2&gt;
&lt;p&gt;There are a few great extensions available that make Bugzilla a more pleasurable experience. Here are some of my favorites:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href=&quot;https://addons.mozilla.org/firefox/addon/bugzillajs/&quot;&gt;BugzillaJS&lt;/a&gt;: Created by &lt;a href=&quot;https://twitter.com/gkoberger&quot;&gt;Gregory Koberger&lt;/a&gt; and &lt;a href=&quot;https://twitter.com/rik24d&quot;&gt;Anthony Ricaud&lt;/a&gt;. This extension adds keyboard shortcuts, quick file box, inline image / github previews, relative timestamps, Gravatars and more. More information about features is available on the extensions AMO page. This extension contains almost all of Bugzilla Tweak&apos;s features and more. You can contribute to the addon &lt;a href=&quot;https://github.com/gkoberger/BugzillaJS&quot;&gt;here&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://addons.mozilla.org/firefox/addon/bugzilla-tweaks/&quot;&gt;Bugzilla Tweaks&lt;/a&gt;: Created by &lt;a href=&quot;https://twitter.com/ehsanakhgari&quot;&gt;Ehsan Akhgari&lt;/a&gt;, Dave Lawrence and &lt;a href=&quot;https://twitter.com/globau&quot;&gt;Byron Jones&lt;/a&gt;. This extension adds a bunch of features that do not appear to be documented anywhere. These are features such as adding &quot;Copy Check-in Comment&quot; to the context menu. If anybody knows how to contribute to this extension then please let me know.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://addons.mozilla.org/firefox/addon/github-tweaks-for-bugzilla/&quot;&gt;Github tweaks for Bugzilla&lt;/a&gt;: Created by &lt;a href=&quot;https://twitter.com/dietrich&quot;&gt;Dietrich Ayala&lt;/a&gt;. This extension allows for better Github and Bugzilla integration. On a pull-request page, it adds a new button for submitting the pull-request as an attachment to a bug in bugzilla.mozilla.org. The bug id can be specified by starting your pull request title with &quot;bug ######&quot;. Your Bugzilla credentials are pulled out of Firefox&apos;s password manager. You can contribute to this extension &lt;a href=&quot;https://github.com/autonome/Github-Bugzilla-Tweaks&quot;&gt;here&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://harthur.github.io/bugzilla-todos/&quot;&gt;Bugzilla TODOs&lt;/a&gt;: This is not an extension but a really useful live dashboard created by &lt;a href=&quot;https://twitter.com/harthvader&quot;&gt;Heather Arthur&lt;/a&gt;. It contains five tabs (To Review, To Check In, To Nag, To Fix and To Respond) and, because it is live, it is updated automagically. I keep this open as a pinned tab so that I can instantly (via the favicon) see if somebody wants something from me. You can contribute to this handy little web app &lt;a href=&quot;https://github.com/harthur/bugzilla-todos&quot;&gt;here&lt;/a&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&quot;attachments&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#attachments&quot; aria-label=&quot;attachments permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Attachments&lt;/h2&gt;
&lt;p&gt;Use attachments, rather than comments, for large chunks of ASCII data, such as trace, debugging output files, or log files. That way, it doesn&apos;t bloat the bug for everyone who wants to read it, and cause people to receive fat, useless mails.&lt;/p&gt;
&lt;p&gt;Trim screenshots. There&apos;s no need to show the whole screen if you are pointing out a single-pixel problem.&lt;/p&gt;
&lt;p&gt;Don&apos;t attach simple test cases (e.g. one HTML file, one CSS file and an image) as a ZIP file. Instead, upload them in reverse order and edit the referring file so that they point to the attached files. This way, the test case works immediately out of the bug.&lt;/p&gt;
&lt;p&gt;Bugzilla stores and uses a Content-Type for each attachment (e.g. text/html). To download an attachment as a different Content-Type (e.g. application/xhtml+xml), you can override this using a &apos;content-type&apos; parameter on the URL e.g. &lt;code class=&quot;language-text&quot;&gt;&amp;amp;content-type=text/plain.&lt;/code&gt;&lt;/p&gt;
&lt;h2 id=&quot;etiquette&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#etiquette&quot; aria-label=&quot;etiquette permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Etiquette&lt;/h2&gt;
&lt;p&gt;If you are changing the fields on a bug, only comment if either you have something pertinent to say, or Bugzilla requires it. Otherwise, you may spam people unnecessarily with bug mail. To take an example: a user can set up their account to filter out messages where someone just adds themselves to the CC field of a bug (which happens a lot.) If you come along, add yourself to the CC field, and add a comment saying &quot;Adding self to CC&quot;, then that person gets a pointless piece of mail they would otherwise have avoided.&lt;/p&gt;
&lt;p&gt;Don&apos;t use sigs in comments. Signing your name (&quot;Bill&quot;) is acceptable, if you do it out of habit, but full mail/news-style four line ASCII art creations are not.&lt;/p&gt;
&lt;p&gt;You should also read &lt;a href=&quot;https://bugzilla.mozilla.org/page.cgi?id=etiquette.html&quot;&gt;Bugzilla’s etiquette guidelines&lt;/a&gt; to learn what behaviors are acceptable for Bugzilla users. In general, just be a nice person and everyone will be happy!&lt;/p&gt;
&lt;h2 id=&quot;credits&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#credits&quot; aria-label=&quot;credits permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Credits&lt;/h2&gt;
&lt;p&gt;Some of this information was collected from other websites so it is only fair that I give credit where credit is due:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://blog.margaretleibovic.com/post/36893756730/bugzilla-101&quot;&gt;Margaret Leibovic&apos;s Bugzilla 101&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://blog.johnath.com/2010/02/04/bugzilla-for-humans/&quot;&gt;Johnath&apos;s Bugzilla for Humans&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://bugzillatips.wordpress.com/&quot;&gt;Bugzilla Tips Wordpress Blog&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.squarefree.com/bugzilla/quicksearch-help.html&quot;&gt;Jesse Ruderman&apos;s Quicksearch Tips&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://bugzilla.mozilla.org/page.cgi?id=quicksearch.html&quot;&gt;Bugzilla Quicksearch&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.bugzilla.org/docs/2.18/html/hintsandtips.html&quot;&gt;The Bugzilla Guide - Hints and Tips&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If the comments section below has not loaded below then you probably need to update your browser.&lt;/p&gt;</content:encoded><author>michael@ratcliffefamily.org</author></item><item><title><![CDATA[Disable JavaScript option now available in Firefox Developer Tools]]></title><description><![CDATA[At the beginning of April Alex Limi decided that we should remove the Enable JavaScript checkbox from Firefox's preferences dialog. His…]]></description><link>https://flailingmonkey.com/disable-javascript-option-now-available-in-firefox-developer-tools/</link><guid isPermaLink="false">https://flailingmonkey.com/disable-javascript-option-now-available-in-firefox-developer-tools/</guid><category><![CDATA[Mozilla]]></category><dc:creator><![CDATA[Mike Ratcliffe]]></dc:creator><pubDate>Thu, 30 May 2013 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;At the beginning of April &lt;a href=&quot;https://limi.net/&quot;&gt;Alex Limi&lt;/a&gt; decided that we should &lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=851702&quot;&gt;remove the Enable JavaScript checkbox&lt;/a&gt; from Firefox&apos;s preferences dialog. His reasoning was that clearing that checkbox breaks a huge amount of websites and therefore breaks the web.&lt;/p&gt;
&lt;p&gt;Alex was completely correct and I wholeheartedly agree with the removal of this option but if you look at the bug&apos;s comments you will see that a bunch of people are not so happy with this decision. Well, we have news for you. We have just landed a change that &lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=864249&quot;&gt;adds a tab specific version of this option&lt;/a&gt; to the Firefox Developer Tools preferences panel.&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 650px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/76dd6a9aadd343413eb898c8c8b1f4c0/6aca1/disable-javascript-option-in-firefox-devtools.jpg&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 52.02312138728323%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/jpeg;base64,/9j/2wBDABALDA4MChAODQ4SERATGCgaGBYWGDEjJR0oOjM9PDkzODdASFxOQERXRTc4UG1RV19iZ2hnPk1xeXBkeFxlZ2P/2wBDARESEhgVGC8aGi9jQjhCY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2P/wgARCAAKABQDASIAAhEBAxEB/8QAGAAAAwEBAAAAAAAAAAAAAAAAAAIDAQX/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIQAxAAAAHq5ZRCof/EABkQAAIDAQAAAAAAAAAAAAAAAAACARASE//aAAgBAQABBQLmhhDCVNf/xAAUEQEAAAAAAAAAAAAAAAAAAAAQ/9oACAEDAQE/AT//xAAUEQEAAAAAAAAAAAAAAAAAAAAQ/9oACAECAQE/AT//xAAZEAACAwEAAAAAAAAAAAAAAAAykQABAiD/2gAIAQEABj8CGlByoOVx/8QAGxAAAgEFAAAAAAAAAAAAAAAAAAEQETHR4fH/2gAIAQEAAT8h4YasQWuRcUR//9oADAMBAAIAAwAAABAj3//EABURAQEAAAAAAAAAAAAAAAAAAAAR/9oACAEDAQE/EEf/xAAUEQEAAAAAAAAAAAAAAAAAAAAQ/9oACAECAQE/ED//xAAfEAACAQIHAAAAAAAAAAAAAAAAAREx8BAhQVFxkaH/2gAIAQEAAT8QT21TsoPosOCGvXAVQy0FsLo//9k=&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Disable JavaScript Option in Firefox DevTools&quot;
        title=&quot;&quot;
        src=&quot;/static/76dd6a9aadd343413eb898c8c8b1f4c0/6aca1/disable-javascript-option-in-firefox-devtools.jpg&quot;
        srcset=&quot;/static/76dd6a9aadd343413eb898c8c8b1f4c0/9ac50/disable-javascript-option-in-firefox-devtools.jpg 173w,
/static/76dd6a9aadd343413eb898c8c8b1f4c0/8d48c/disable-javascript-option-in-firefox-devtools.jpg 345w,
/static/76dd6a9aadd343413eb898c8c8b1f4c0/6aca1/disable-javascript-option-in-firefox-devtools.jpg 650w&quot;
        sizes=&quot;(max-width: 650px) 100vw, 650px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Disable javascript option in firefox devtools&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;If you check the box then the page will refresh and, from that point on, everything that you open in that tab will have JavaScript disabled. Making this setting per tab makes sense because the developer toolbox has one instance per tab. Closing either the toolbox or the tab enables JavaScript again.&lt;/p&gt;</content:encoded><author>michael@ratcliffefamily.org</author></item><item><title><![CDATA[The Application Cache is no longer a Douchebag]]></title><description><![CDATA[If you have ever used the application cache you will probably be familiar with how easy it is to break offline functionality and how…]]></description><link>https://flailingmonkey.com/the-application-cache-is-no-longer-a-douchebag/</link><guid isPermaLink="false">https://flailingmonkey.com/the-application-cache-is-no-longer-a-douchebag/</guid><category><![CDATA[Mozilla]]></category><dc:creator><![CDATA[Mike Ratcliffe]]></dc:creator><pubDate>Sun, 05 May 2013 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;If you have ever used the application cache you will probably be familiar with how easy it is to break offline functionality and how difficult it is to work out why things are broken. With a large offline web app finding the source of problems can be an almost insurmountable task.&lt;/p&gt;
&lt;p&gt;I guess that what I am saying is that &lt;a href=&quot;https://alistapart.com/article/application-cache-is-a-douchebag&quot;&gt;the application cache is a douchebag&lt;/a&gt;. I completely understand that if there is an error in your application&apos;s manifest you probably don&apos;t want your users to be confronted with a bunch of error messages but something needs to be done.&lt;/p&gt;
&lt;p&gt;Because displaying a bunch of errors about a broken cache manifest is probably undesirable we have decided to create a developer tool that lets you know if you have a problem with your manifest. The main problem we have is that the Toolbox is already becoming crowded and we are just getting started.&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 690px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/9dcc750190246f6d81b37002a7575904/1a144/firefox-developer-tools-toolbox.jpg&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 39.884393063583815%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/jpeg;base64,/9j/2wBDABALDA4MChAODQ4SERATGCgaGBYWGDEjJR0oOjM9PDkzODdASFxOQERXRTc4UG1RV19iZ2hnPk1xeXBkeFxlZ2P/2wBDARESEhgVGC8aGi9jQjhCY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2P/wgARCAAIABQDASIAAhEBAxEB/8QAFwABAAMAAAAAAAAAAAAAAAAAAAIDBf/EABUBAQEAAAAAAAAAAAAAAAAAAAEA/9oADAMBAAIQAxAAAAGnZEiC/8QAGBABAAMBAAAAAAAAAAAAAAAAAwABAhH/2gAIAQEAAQUCCq01CM0Jd//EABURAQEAAAAAAAAAAAAAAAAAAAEQ/9oACAEDAQE/ASf/xAAVEQEBAAAAAAAAAAAAAAAAAAABEP/aAAgBAgEBPwFn/8QAGBAAAwEBAAAAAAAAAAAAAAAAAAEyAjH/2gAIAQEABj8CynwhEo//xAAXEAEBAQEAAAAAAAAAAAAAAAABABEh/9oACAEBAAE/ITh1boyZFxf/2gAMAwEAAgADAAAAEHA//8QAFREBAQAAAAAAAAAAAAAAAAAAEDH/2gAIAQMBAT8Qg//EABURAQEAAAAAAAAAAAAAAAAAABAx/9oACAECAQE/EKP/xAAaEAEAAwADAAAAAAAAAAAAAAABABEhUWHx/9oACAEBAAE/EAz8QHGCbb37Dgcqf//Z&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Firefox Developer Tools Toolbox&quot;
        title=&quot;&quot;
        src=&quot;/static/9dcc750190246f6d81b37002a7575904/15ec7/firefox-developer-tools-toolbox.jpg&quot;
        srcset=&quot;/static/9dcc750190246f6d81b37002a7575904/9ac50/firefox-developer-tools-toolbox.jpg 173w,
/static/9dcc750190246f6d81b37002a7575904/8d48c/firefox-developer-tools-toolbox.jpg 345w,
/static/9dcc750190246f6d81b37002a7575904/15ec7/firefox-developer-tools-toolbox.jpg 690w,
/static/9dcc750190246f6d81b37002a7575904/1a144/firefox-developer-tools-toolbox.jpg 730w&quot;
        sizes=&quot;(max-width: 690px) 100vw, 690px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Firefox developer tools toolbox&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;In order to avoid cluttering the Toolbox we have used the Firefox Command Line. The command line is a place where we can add as many tools as we like without cluttering the interface. To open the Developer Toolbar press &lt;kbd&gt;shift&lt;/kbd&gt; + &lt;kbd&gt;f2&lt;/kbd&gt; or select &lt;kbd&gt;Developer Toolbar&lt;/kbd&gt; from the web developer menu.&lt;/p&gt;
&lt;p&gt;The appcache commands are available in &lt;a href=&quot;https://nightly.mozilla.org/&quot;&gt;Firefox Nightly&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;To list available appcache commands type &quot;help appcache&quot; in the developer toolbar.&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 584px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/b27e5954f52c8bd2d9b9f491483cb4d2/3a467/output-from-the-help-appcache-command.jpg&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 56.64739884393063%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/jpeg;base64,/9j/2wBDABALDA4MChAODQ4SERATGCgaGBYWGDEjJR0oOjM9PDkzODdASFxOQERXRTc4UG1RV19iZ2hnPk1xeXBkeFxlZ2P/2wBDARESEhgVGC8aGi9jQjhCY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2P/wgARCAALABQDASIAAhEBAxEB/8QAGAAAAwEBAAAAAAAAAAAAAAAAAAIDAQT/xAAVAQEBAAAAAAAAAAAAAAAAAAABAP/aAAwDAQACEAMQAAAB4FTEsRC//8QAFhABAQEAAAAAAAAAAAAAAAAAARAg/9oACAEBAAEFAmGP/8QAFBEBAAAAAAAAAAAAAAAAAAAAEP/aAAgBAwEBPwE//8QAFBEBAAAAAAAAAAAAAAAAAAAAEP/aAAgBAgEBPwE//8QAFBABAAAAAAAAAAAAAAAAAAAAIP/aAAgBAQAGPwJf/8QAFxAAAwEAAAAAAAAAAAAAAAAAAAEhEf/aAAgBAQABPyGqUeGs01o//9oADAMBAAIAAwAAABCE/wD/xAAUEQEAAAAAAAAAAAAAAAAAAAAQ/9oACAEDAQE/ED//xAAUEQEAAAAAAAAAAAAAAAAAAAAQ/9oACAECAQE/ED//xAAZEAEBAQEBAQAAAAAAAAAAAAABABEhUTH/2gAIAQEAAT8QbyGcSi32dnra9j5G/9k=&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Output from the help appcache command&quot;
        title=&quot;&quot;
        src=&quot;/static/b27e5954f52c8bd2d9b9f491483cb4d2/3a467/output-from-the-help-appcache-command.jpg&quot;
        srcset=&quot;/static/b27e5954f52c8bd2d9b9f491483cb4d2/9ac50/output-from-the-help-appcache-command.jpg 173w,
/static/b27e5954f52c8bd2d9b9f491483cb4d2/8d48c/output-from-the-help-appcache-command.jpg 345w,
/static/b27e5954f52c8bd2d9b9f491483cb4d2/3a467/output-from-the-help-appcache-command.jpg 584w&quot;
        sizes=&quot;(max-width: 584px) 100vw, 584px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Output from the help appcache command&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;The currently available appcache commands are:&lt;/p&gt;
&lt;p&gt;&lt;code class=&quot;language-text&quot;&gt;appcache clear&lt;/code&gt; clears all appcache entries.&lt;/p&gt;
&lt;p&gt;&lt;code class=&quot;language-text&quot;&gt;appcache list [searchterm]&lt;/code&gt; lists all appcache entries containing an optional search term&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 573px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/5249eef5864b983fd155f1ceed22c17e/eda93/output-from-the-appcache-list-command.jpg&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 101.15606936416187%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/jpeg;base64,/9j/2wBDABALDA4MChAODQ4SERATGCgaGBYWGDEjJR0oOjM9PDkzODdASFxOQERXRTc4UG1RV19iZ2hnPk1xeXBkeFxlZ2P/2wBDARESEhgVGC8aGi9jQjhCY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2P/wgARCAAUABQDASIAAhEBAxEB/8QAFwABAQEBAAAAAAAAAAAAAAAAAAECBP/EABUBAQEAAAAAAAAAAAAAAAAAAAAB/9oADAMBAAIQAxAAAAHgZIYEgAf/xAAUEAEAAAAAAAAAAAAAAAAAAAAw/9oACAEBAAEFAh//xAAUEQEAAAAAAAAAAAAAAAAAAAAg/9oACAEDAQE/AR//xAAUEQEAAAAAAAAAAAAAAAAAAAAg/9oACAECAQE/AR//xAAUEAEAAAAAAAAAAAAAAAAAAAAw/9oACAEBAAY/Ah//xAAZEAEBAAMBAAAAAAAAAAAAAAARAAEgIWH/2gAIAQEAAT8hZ8mcl2dP/9oADAMBAAIAAwAAABAMP/8A/8QAFBEBAAAAAAAAAAAAAAAAAAAAIP/aAAgBAwEBPxAf/8QAFBEBAAAAAAAAAAAAAAAAAAAAIP/aAAgBAgEBPxAf/8QAHhABAAICAQUAAAAAAAAAAAAAAQARITEQQVFhcZH/2gAIAQEAAT8QABjpNdvsVeYUK7RatuPU8GKil6xz/9k=&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Output from the appcache list command&quot;
        title=&quot;&quot;
        src=&quot;/static/5249eef5864b983fd155f1ceed22c17e/eda93/output-from-the-appcache-list-command.jpg&quot;
        srcset=&quot;/static/5249eef5864b983fd155f1ceed22c17e/9ac50/output-from-the-appcache-list-command.jpg 173w,
/static/5249eef5864b983fd155f1ceed22c17e/8d48c/output-from-the-appcache-list-command.jpg 345w,
/static/5249eef5864b983fd155f1ceed22c17e/eda93/output-from-the-appcache-list-command.jpg 573w&quot;
        sizes=&quot;(max-width: 573px) 100vw, 573px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Output from the appcache list command&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;&lt;code class=&quot;language-text&quot;&gt;appcache viewentry&lt;/code&gt; shows the about:cache-entry page for the current cache entry.&lt;/p&gt;
&lt;p&gt;Note: appcache viewentry will not give you any information until &lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=861866&quot;&gt;bug 861866&lt;/a&gt; is fixed.&lt;/p&gt;
&lt;p&gt;&lt;code class=&quot;language-text&quot;&gt;appcache validate [URI]&lt;/code&gt; is by far the most useful of the appcache commands. If a URI is specified then the cache manifest for that page will be validated. As many of you know, there are a lot of things that could invalidate a manifest but this command will uncover most of them.&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 529px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/c6da9105943250c05dd5e03a45b27ab8/62e42/output-of-the-appcache-validate-command.jpg&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 169.36416184971097%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/jpeg;base64,/9j/2wBDABALDA4MChAODQ4SERATGCgaGBYWGDEjJR0oOjM9PDkzODdASFxOQERXRTc4UG1RV19iZ2hnPk1xeXBkeFxlZ2P/2wBDARESEhgVGC8aGi9jQjhCY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2P/wgARCAAiABQDASIAAhEBAxEB/8QAFwABAQEBAAAAAAAAAAAAAAAAAAIBBP/EABUBAQEAAAAAAAAAAAAAAAAAAAAB/9oADAMBAAIQAxAAAAHi2VmIFbIlICAr/8QAGRAAAgMBAAAAAAAAAAAAAAAAASAAEDFB/9oACAEBAAEFAuUFMGL/AP/EABQRAQAAAAAAAAAAAAAAAAAAACD/2gAIAQMBAT8BX//EABQRAQAAAAAAAAAAAAAAAAAAACD/2gAIAQIBAT8BX//EABQQAQAAAAAAAAAAAAAAAAAAADD/2gAIAQEABj8Cf//EABwQAAICAgMAAAAAAAAAAAAAAAABITERIEFRYf/aAAgBAQABPyFDA7KDzwx+icE9EGUDY3On/9oADAMBAAIAAwAAABCgyzwMH//EABQRAQAAAAAAAAAAAAAAAAAAACD/2gAIAQMBAT8QX//EABQRAQAAAAAAAAAAAAAAAAAAACD/2gAIAQIBAT8QX//EACAQAQACAgEEAwAAAAAAAAAAAAEAESExYRBBUXGRobH/2gAIAQEAAT8Qqhq2OGvhhrJmmFH0Sw1a41aMRUV3czQf2cjXmAGHPuO7R30qf//Z&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Output of the appcache validate command&quot;
        title=&quot;&quot;
        src=&quot;/static/c6da9105943250c05dd5e03a45b27ab8/62e42/output-of-the-appcache-validate-command.jpg&quot;
        srcset=&quot;/static/c6da9105943250c05dd5e03a45b27ab8/9ac50/output-of-the-appcache-validate-command.jpg 173w,
/static/c6da9105943250c05dd5e03a45b27ab8/8d48c/output-of-the-appcache-validate-command.jpg 345w,
/static/c6da9105943250c05dd5e03a45b27ab8/62e42/output-of-the-appcache-validate-command.jpg 529w&quot;
        sizes=&quot;(max-width: 529px) 100vw, 529px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Output of the appcache validate command&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;If you find any situations where an application cache is invalid and our tool does not pick up the problem then please &lt;a href=&quot;https://bugzilla.mozilla.org/enter_bug.cgi?alias=&amp;#x26;assigned_to=nobody%40mozilla.org&amp;#x26;attach_text=&amp;#x26;blocked=&amp;#x26;bug_file_loc=http%3A%2F%2F&amp;#x26;bug_severity=normal&amp;#x26;bug_status=NEW&amp;#x26;cf_blocking_b2g=---&amp;#x26;cf_crash_signature=&amp;#x26;cf_status_b2g18=---&amp;#x26;cf_status_b2g18_1_0_0=---&amp;#x26;cf_status_b2g18_1_0_1=---&amp;#x26;cf_status_firefox20=---&amp;#x26;cf_status_firefox21=---&amp;#x26;cf_status_firefox22=---&amp;#x26;cf_status_firefox23=---&amp;#x26;cf_status_firefox_esr17=---&amp;#x26;cf_tracking_b2g18=---&amp;#x26;cf_tracking_firefox20=---&amp;#x26;cf_tracking_firefox21=---&amp;#x26;cf_tracking_firefox22=---&amp;#x26;cf_tracking_firefox23=---&amp;#x26;cf_tracking_firefox_esr17=---&amp;#x26;cf_tracking_firefox_relnote=---&amp;#x26;cf_tracking_relnote_b2g=---&amp;#x26;comment=&amp;#x26;component=Developer%20Tools%3A%20Graphic%20Commandline%20and%20Toolbar&amp;#x26;contenttypeentry=&amp;#x26;contenttypemethod=autodetect&amp;#x26;contenttypeselection=text%2Fplain&amp;#x26;data=&amp;#x26;defined_groups=1&amp;#x26;dependson=&amp;#x26;description=&amp;#x26;flag_type-203=X&amp;#x26;flag_type-37=X&amp;#x26;flag_type-41=X&amp;#x26;flag_type-5=X&amp;#x26;flag_type-607=X&amp;#x26;flag_type-720=X&amp;#x26;flag_type-721=X&amp;#x26;flag_type-737=X&amp;#x26;flag_type-748=X&amp;#x26;flag_type-781=X&amp;#x26;flag_type-787=X&amp;#x26;flag_type-791=X&amp;#x26;flag_type-799=X&amp;#x26;flag_type-800=X&amp;#x26;flag_type-802=X&amp;#x26;flag_type-809=X&amp;#x26;form_name=enter_bug&amp;#x26;keywords=&amp;#x26;maketemplate=Remember%20values%20as%20bookmarkable%20template&amp;#x26;op_sys=All&amp;#x26;priority=--&amp;#x26;product=Firefox&amp;#x26;qa_contact=&amp;#x26;rep_platform=All&amp;#x26;requestee_type-203=&amp;#x26;requestee_type-41=&amp;#x26;requestee_type-5=&amp;#x26;requestee_type-607=&amp;#x26;requestee_type-748=&amp;#x26;requestee_type-781=&amp;#x26;requestee_type-787=&amp;#x26;requestee_type-791=&amp;#x26;requestee_type-800=&amp;#x26;short_desc=&amp;#x26;status_whiteboard=&amp;#x26;target_milestone=---&amp;#x26;version=unspecified&quot;&gt;let us know&lt;/a&gt;. In fact, if you have an idea for a new appcache command then please &lt;a href=&quot;https://bugzilla.mozilla.org/enter_bug.cgi?alias=&amp;#x26;assigned_to=nobody%40mozilla.org&amp;#x26;attach_text=&amp;#x26;blocked=&amp;#x26;bug_file_loc=http%3A%2F%2F&amp;#x26;bug_severity=enhancement&amp;#x26;bug_status=NEW&amp;#x26;cf_blocking_b2g=---&amp;#x26;cf_crash_signature=&amp;#x26;cf_status_b2g18=---&amp;#x26;cf_status_b2g18_1_0_0=---&amp;#x26;cf_status_b2g18_1_0_1=---&amp;#x26;cf_status_firefox20=---&amp;#x26;cf_status_firefox21=---&amp;#x26;cf_status_firefox22=---&amp;#x26;cf_status_firefox23=---&amp;#x26;cf_status_firefox_esr17=---&amp;#x26;cf_tracking_b2g18=---&amp;#x26;cf_tracking_firefox20=---&amp;#x26;cf_tracking_firefox21=---&amp;#x26;cf_tracking_firefox22=---&amp;#x26;cf_tracking_firefox23=---&amp;#x26;cf_tracking_firefox_esr17=---&amp;#x26;cf_tracking_firefox_relnote=---&amp;#x26;cf_tracking_relnote_b2g=---&amp;#x26;comment=&amp;#x26;component=Developer%20Tools%3A%20Graphic%20Commandline%20and%20Toolbar&amp;#x26;contenttypeentry=&amp;#x26;contenttypemethod=autodetect&amp;#x26;contenttypeselection=text%2Fplain&amp;#x26;data=&amp;#x26;defined_groups=1&amp;#x26;dependson=&amp;#x26;description=&amp;#x26;flag_type-203=X&amp;#x26;flag_type-37=X&amp;#x26;flag_type-41=X&amp;#x26;flag_type-5=X&amp;#x26;flag_type-607=X&amp;#x26;flag_type-720=X&amp;#x26;flag_type-721=X&amp;#x26;flag_type-737=X&amp;#x26;flag_type-748=X&amp;#x26;flag_type-781=X&amp;#x26;flag_type-787=X&amp;#x26;flag_type-791=X&amp;#x26;flag_type-799=X&amp;#x26;flag_type-800=X&amp;#x26;flag_type-802=X&amp;#x26;flag_type-809=X&amp;#x26;form_name=enter_bug&amp;#x26;keywords=&amp;#x26;maketemplate=Remember%20values%20as%20bookmarkable%20template&amp;#x26;op_sys=All&amp;#x26;priority=--&amp;#x26;product=Firefox&amp;#x26;qa_contact=&amp;#x26;rep_platform=All&amp;#x26;requestee_type-203=&amp;#x26;requestee_type-41=&amp;#x26;requestee_type-5=&amp;#x26;requestee_type-607=&amp;#x26;requestee_type-748=&amp;#x26;requestee_type-781=&amp;#x26;requestee_type-787=&amp;#x26;requestee_type-791=&amp;#x26;requestee_type-800=&amp;#x26;short_desc=&amp;#x26;status_whiteboard=&amp;#x26;target_milestone=---&amp;#x26;version=unspecified&quot;&gt;tell us&lt;/a&gt;.&lt;/p&gt;</content:encoded><author>michael@ratcliffefamily.org</author></item><item><title><![CDATA[Moving your Contacts and Calendar Away from Google]]></title><description><![CDATA[For the past few years I have used Google Contacts to store my contacts and Google Calendar to store my calendars. These services really are…]]></description><link>https://flailingmonkey.com/moving-your-contacts-and-calendar-away-from-google/</link><guid isPermaLink="false">https://flailingmonkey.com/moving-your-contacts-and-calendar-away-from-google/</guid><category><![CDATA[Google]]></category><dc:creator><![CDATA[Mike Ratcliffe]]></dc:creator><pubDate>Tue, 26 Mar 2013 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;For the past few years I have used Google Contacts to store my contacts and Google Calendar to store my calendars. These services really are excellent, particularly because they allow me to keep my data synchronized between my Android phone and numerous instances of Thunderbird on PCs and Laptops. Unfortunately, I have had issues with my contacts becoming duplicated and even disappearing altogether. I figure that out of roughly 500 contacts I have lost around 200. This really got me thinking, I mean, should I really rely on somebody else to look after my data?&lt;/p&gt;
&lt;p&gt;I don&apos;t know exactly why Google run these services but that is part of the problem. They are an advertising company, after all, and the more data they can collect about me and the people I know the better they can target me with their adverts. Maybe I am paranoid but now that they are dropping Google Reader I just don&apos;t trust them to the extent that I once did.&lt;/p&gt;
&lt;p&gt;Don&apos;t get me wrong, I am not a Google hater, I truly believe that their search engine is excellent and that nothing else comes close to providing such accurate search results, at least when I am not logged in.
There are a number of services that allow this kind of synchronization but I have chosen to use &lt;a href=&quot;https://owncloud.org/&quot; title=&quot;ownCloud&quot;&gt;ownCloud&lt;/a&gt; as it appears to be the most capable open source solution. I have included installation instructions here for the good of the web.&lt;/p&gt;
&lt;h2 id=&quot;installing-owncloud&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#installing-owncloud&quot; aria-label=&quot;installing owncloud permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Installing ownCloud&lt;/h2&gt;
&lt;h3 id=&quot;if-you-own-your-own-server&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#if-you-own-your-own-server&quot; aria-label=&quot;if you own your own server permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;If you own your own server&lt;/h3&gt;
&lt;p&gt;Follow the instructions &lt;a href=&quot;https://software.opensuse.org/download/package?project=isv:ownCloud:community&amp;#x26;package=owncloud&quot; title=&quot;Installing ownCloud on your own server&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&quot;shared-hosting&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#shared-hosting&quot; aria-label=&quot;shared hosting permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Shared hosting&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;In your hosts control panel select the latest version of PHP, for JustHost this is in CPanel under PHP Config.&lt;/li&gt;
&lt;li&gt;Right-click &lt;a href=&quot;https://download.owncloud.com/download/community/setup-owncloud.php&quot; title=&quot;ownCloud installer&quot;&gt;here&lt;/a&gt; and save the file to your computer.&lt;/li&gt;
&lt;li&gt;Copy the file to &lt;a href=&quot;https://yourdomain.com/setup-owncloud.php&quot;&gt;https://yourdomain.com/setup-owncloud.php&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Open &lt;a href=&quot;https://yourdomain.com/setup-owncloud.php&quot;&gt;https://yourdomain.com/setup-owncloud.php&lt;/a&gt; in your browser.&lt;/li&gt;
&lt;li&gt;Add a username and password but &lt;strong&gt;do not click &quot;Next.&quot;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Click &lt;kbd&gt;Advanced&lt;/kbd&gt; and select your database options. A MySQL DB will be way faster than a SQLite DB.&lt;/li&gt;
&lt;li&gt;Accept the default options.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;exporting-contacts-from-google-contacts&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#exporting-contacts-from-google-contacts&quot; aria-label=&quot;exporting contacts from google contacts permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Exporting Contacts from Google Contacts&lt;/h2&gt;
&lt;p&gt;At the time of writing, exporting contacts from Google Contacts as a .vcf file only exports one name, phone number and email address per contact. Fortunately, if you export your contacts from an Android phone you will keep all of your contact information including mugshots. To do this:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;From a Home or All Apps screen, touch the People icon.&lt;/li&gt;
&lt;li&gt;Select &lt;kbd&gt;Menu&lt;/kbd&gt; → &lt;kbd&gt;Import / Export&lt;/kbd&gt;.&lt;/li&gt;
&lt;li&gt;Select &lt;kbd&gt;Export to storage&lt;/kbd&gt;.&lt;/li&gt;
&lt;li&gt;Touch &quot;OK&quot; to confirm.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;A file with the .vcf extension will be saved to the root directory of your phone&apos;s internal storage. This file contains all of your contacts including their photos. Transfer this file to your computer via a USB cable or email.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Go to &lt;a href=&quot;https://yourdomain.com/owncloud/&quot;&gt;https://yourdomain.com/owncloud/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Click &lt;kbd&gt;Contacts&lt;/kbd&gt; → &lt;kbd&gt;Import&lt;/kbd&gt;.&lt;/li&gt;
&lt;li&gt;Select the file .vcf file that you copied to your computer and click OK to import.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;importing-calendar-to-owncloud&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#importing-calendar-to-owncloud&quot; aria-label=&quot;importing calendar to owncloud permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Importing Calendar to ownCloud&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Go to &lt;a href=&quot;https://www.google.com/calendar/&quot; title=&quot;Google Calendar&quot;&gt;https://www.google.com/calendar/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Click &lt;kbd&gt;⚙&lt;/kbd&gt; → &lt;kbd&gt;Settings&lt;/kbd&gt; → &lt;kbd&gt;Calendars&lt;/kbd&gt; → &lt;kbd&gt;Export Calendar&lt;/kbd&gt;.&lt;/li&gt;
&lt;li&gt;Save the .ics file to your computer.&lt;/li&gt;
&lt;li&gt;Go to &lt;a href=&quot;https://yourdomain.com/owncloud/&quot;&gt;https://yourdomain.com/owncloud/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Click Files and drag the .ics file into the files window in order to upload it.&lt;/li&gt;
&lt;li&gt;Click on the .ics file.&lt;/li&gt;
&lt;li&gt;In the Import calendar dialog that appears select &quot;Default calendar&quot; and click import.&lt;/li&gt;
&lt;li&gt;When the calendar has been imported close the dialog and delete the .ics file.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;configure-thunderbird&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#configure-thunderbird&quot; aria-label=&quot;configure thunderbird permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Configure Thunderbird&lt;/h2&gt;
&lt;h3 id=&quot;configure-calendar&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#configure-calendar&quot; aria-label=&quot;configure calendar permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Configure Calendar&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Uninstall the Provider for Google Calendar add-on.&lt;/li&gt;
&lt;li&gt;Install &lt;a href=&quot;https://www.sogo.nu/files/downloads/SOGo/Thunderbird/&quot; title=&quot;SOGo Connector&quot;&gt;SOGo Connector&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Install &lt;a href=&quot;https://nic-nac-project.org/~kaosmos/morecols-en.html&quot; title=&quot;MoreFunctionsForAddressBook&quot;&gt;MoreFunctionsForAddressBook&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Install the &lt;a href=&quot;https://addons.mozilla.org/en-US/thunderbird/addon/lightning/&quot; title=&quot;Lightning&quot;&gt;Lightning extension&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;In your owncloud calendar copy your calendar&apos;s CalDAV link.&lt;/li&gt;
&lt;li&gt;Back in Thunderbird open the calendar.&lt;/li&gt;
&lt;li&gt;Click &lt;kbd&gt;File&lt;/kbd&gt; → &lt;kbd&gt;New Calendar&lt;/kbd&gt; → &lt;kbd&gt;On the Network&lt;/kbd&gt; → &lt;kbd&gt;Next&lt;/kbd&gt; → &lt;kbd&gt;CalDAV&lt;/kbd&gt;.&lt;/li&gt;
&lt;li&gt;Type the following into the location field:&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://yourdomain/owncloud/remote.php/caldav/calendars/USERNAME/CALENDARNAME&quot;&gt;https://yourdomain/owncloud/remote.php/caldav/calendars/USERNAME/CALENDARNAME&lt;/a&gt; (the default calendar name is defaultcalendar).&lt;/li&gt;
&lt;li&gt;Check &lt;kbd&gt;Offline Support&lt;/kbd&gt;.&lt;/li&gt;
&lt;li&gt;Click &lt;kbd&gt;Next&lt;/kbd&gt;&lt;/li&gt;
&lt;li&gt;Give your calendar a name and an email address. The email address is used for email notifications.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;configure-contacts&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#configure-contacts&quot; aria-label=&quot;configure contacts permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Configure Contacts&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Uninstall the Google Contacts addon.&lt;/li&gt;
&lt;li&gt;Install &lt;a href=&quot;https://www.sogo.nu/files/downloads/SOGo/Thunderbird/&quot; title=&quot;SOGo Connector&quot;&gt;SOGo Connector&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;In Thunderbird open the Address Book.&lt;/li&gt;
&lt;li&gt;&lt;kbd&gt;File&lt;/kbd&gt; → &lt;kbd&gt;New&lt;/kbd&gt; → &lt;kbd&gt;Remote Address Book&lt;/kbd&gt;.&lt;/li&gt;
&lt;li&gt;Give your address book a name.&lt;/li&gt;
&lt;li&gt;Type the URL into the appropriate field. The URL is found in your OwnCloud Contacts area, that little Gear symbol in the bottom left of the Contacts View (same symbol as found in the top right in the Calendar view). Click on the little world (CardDAV Link) symbol and it will display the URL you need for your installation to work.&lt;/li&gt;
&lt;li&gt;Click &lt;kbd&gt;OK&lt;/kbd&gt;.&lt;/li&gt;
&lt;li&gt;Right-click the newly created address book and choose synchronize and your contacts should download.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;configure-android-phone&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#configure-android-phone&quot; aria-label=&quot;configure android phone permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Configure Android Phone&lt;/h2&gt;
&lt;h3 id=&quot;clear-current-google-apps&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#clear-current-google-apps&quot; aria-label=&quot;clear current google apps permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Clear Current Google Apps&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Go to &lt;kbd&gt;Application Manager&lt;/kbd&gt; → &lt;kbd&gt;All&lt;/kbd&gt;&lt;/li&gt;
&lt;li&gt;&lt;kbd&gt;Google Calendar Sync&lt;/kbd&gt; → &lt;kbd&gt;Clear Data&lt;/kbd&gt; → &lt;kbd&gt;OK&lt;/kbd&gt; → &lt;kbd&gt;Disable&lt;/kbd&gt; → &lt;kbd&gt;OK&lt;/kbd&gt;.&lt;/li&gt;
&lt;li&gt;&lt;kbd&gt;Google Contacts Sync&lt;/kbd&gt; → &lt;kbd&gt;Clear Data&lt;/kbd&gt; → &lt;kbd&gt;OK&lt;/kbd&gt; → &lt;kbd&gt;Disable&lt;/kbd&gt; → &lt;kbd&gt;OK&lt;/kbd&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;contacts&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#contacts&quot; aria-label=&quot;contacts permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Contacts&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Go to &lt;kbd&gt;People&lt;/kbd&gt;.&lt;/li&gt;
&lt;li&gt;Choose &lt;kbd&gt;Settings&lt;/kbd&gt; → &lt;kbd&gt;Accounts&lt;/kbd&gt; → &lt;kbd&gt;Your Google account&lt;/kbd&gt;.&lt;/li&gt;
&lt;li&gt;Clear the checkbox so that Google Contacts are no longer synchronized.&lt;/li&gt;
&lt;li&gt;Install CardDAV from the Google Play Store. There is a free version CardDAV-Sync free beta and a paid version called CardDAV-Sync beta. The paid version syncs more contact fields. You can start with the free and upgrade later.&lt;/li&gt;
&lt;li&gt;Run CardDAV-Sync and use these settings:&lt;/li&gt;
&lt;li&gt;Server URL: &amp;#x3C;servername&gt;/owncloud/remote.php/carddav/
&lt;ul&gt;
&lt;li&gt;Use SSL: check accordingly.&lt;/li&gt;
&lt;li&gt;Username: your login name.&lt;/li&gt;
&lt;li&gt;Password: your password.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Click &lt;kbd&gt;OK&lt;/kbd&gt;.&lt;/li&gt;
&lt;li&gt;Go back to People.&lt;/li&gt;
&lt;li&gt;Choose &lt;kbd&gt;Settings&lt;/kbd&gt; → &lt;kbd&gt;Contacts to display&lt;/kbd&gt; → &lt;kbd&gt;Customize&lt;/kbd&gt;.&lt;/li&gt;
&lt;li&gt;Expand your Google account and clear all of it&apos;s checkboxes.&lt;/li&gt;
&lt;li&gt;Expand your CardDAV account and check all of of it&apos;s checkboxes.&lt;/li&gt;
&lt;li&gt;Click &lt;kbd&gt;OK&lt;/kbd&gt; and your contacts will be synchronized.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id=&quot;calendar&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#calendar&quot; aria-label=&quot;calendar permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Calendar&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Install CalDAV from the Google Play Store. There is a free version called CalDAV-Sync free beta and a paid version called CalDAV-Sync beta, both written by Marten Gajda.&lt;/li&gt;
&lt;li&gt;Open Calendar.&lt;/li&gt;
&lt;li&gt;Choose &lt;kbd&gt;⚙&lt;/kbd&gt; → &lt;kbd&gt;Settings&lt;/kbd&gt; → &lt;kbd&gt;Your Google account&lt;/kbd&gt;.&lt;/li&gt;
&lt;li&gt;Clear the checkbox so that Google Calendar is no longer synchronized.&lt;/li&gt;
&lt;li&gt;Click &lt;kbd&gt;Add Account&lt;/kbd&gt; → &lt;kbd&gt;CalDAV&lt;/kbd&gt; and use these settings.&lt;/li&gt;
&lt;li&gt;Server URL: &amp;#x3C;servername&gt;/owncloud/remote.php/caldav/
&lt;ul&gt;
&lt;li&gt;Use SSL: check accordingly.&lt;/li&gt;
&lt;li&gt;Username: your login name.&lt;/li&gt;
&lt;li&gt;Password: your password.&lt;/li&gt;
&lt;li&gt;Click Next.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Under &quot;Select accounts to sync&quot; select all appropriate calendars.&lt;/li&gt;
&lt;li&gt;Click &lt;kbd&gt;Next&lt;/kbd&gt;.&lt;/li&gt;
&lt;li&gt;Enter the email address. The email address is used for email notifications.&lt;/li&gt;
&lt;li&gt;Click OK and your calendar(s) will be synchronized.&lt;/li&gt;
&lt;li&gt;Go to &lt;kbd&gt;phone Settings&lt;/kbd&gt; → &lt;kbd&gt;Accounts&lt;/kbd&gt; → &lt;kbd&gt;Google&lt;/kbd&gt; → Select the Google account with the sync icon next to it → Uncheck &lt;kbd&gt;calendar&lt;/kbd&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Congratulations, you now no longer need an external service to synchronize your contacts and calendar. As a bonus there are a bunch of ownCloud add-ons that give you much more power than you previously had.&lt;/p&gt;</content:encoded><author>michael@ratcliffefamily.org</author></item><item><title><![CDATA[How to install Django on JustHost (and maybe other shared hosts)]]></title><description><![CDATA[If you search Google for "how to install Django on JustHost" you may be surprised to find tens of thousands of articles claiming that it can…]]></description><link>https://flailingmonkey.com/how-to-install-django-on-justhost-and-maybe-other-shared-hosts/</link><guid isPermaLink="false">https://flailingmonkey.com/how-to-install-django-on-justhost-and-maybe-other-shared-hosts/</guid><category><![CDATA[Web Hosting]]></category><dc:creator><![CDATA[Mike Ratcliffe]]></dc:creator><pubDate>Mon, 21 Jan 2013 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;If you search Google for &quot;how to install Django on JustHost&quot; you may be surprised to find tens of thousands of articles claiming that it can&apos;t be done and none claiming that it can.
Well, it can and here&apos;s how:&lt;/p&gt;
&lt;h2 id=&quot;log-in-using-ssh-access&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#log-in-using-ssh-access&quot; aria-label=&quot;log in using ssh access permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Log in using SSH access&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;In the Security section of your control panel click &lt;kbd&gt;SSH/Shell Access&lt;/kbd&gt; → &lt;kbd&gt;Manage SSH Keys&lt;/kbd&gt;.&lt;/li&gt;
&lt;li&gt;Click &lt;kbd&gt;Generate a new key&lt;/kbd&gt;, enter a password and click &lt;kbd&gt;Generate Key&lt;/kbd&gt;.&lt;/li&gt;
&lt;li&gt;After the key is generated click &lt;kbd&gt;Go back&lt;/kbd&gt;.&lt;/li&gt;
&lt;li&gt;Click the &lt;kbd&gt;Manage Authorisation&lt;/kbd&gt; and click &lt;kbd&gt;Authorize&lt;/kbd&gt;.&lt;/li&gt;
&lt;li&gt;Now download the private key to the folder in which you would like to keep it.&lt;/li&gt;
&lt;li&gt;Add the key to your SSH Client.&lt;/li&gt;
&lt;li&gt;Connect to your primary domain using your JustHost login information (the same as logging in to your cPanel).&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&quot;install-python-272&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#install-python-272&quot; aria-label=&quot;install python 272 permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Install Python 2.7.2&lt;/h2&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;shell&quot;&gt;&lt;pre class=&quot;language-shell&quot;&gt;&lt;code class=&quot;language-shell&quot;&gt;&lt;span class=&quot;token function&quot;&gt;mkdir&lt;/span&gt; ~/python
&lt;span class=&quot;token builtin class-name&quot;&gt;cd&lt;/span&gt; ~/python
&lt;span class=&quot;token function&quot;&gt;wget&lt;/span&gt; https://www.python.org/ftp/python/2.7.2/Python-2.7.2.tgz
&lt;span class=&quot;token function&quot;&gt;tar&lt;/span&gt; zxfv Python-2.7.2.tgz
&lt;span class=&quot;token function&quot;&gt;rm&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-rf&lt;/span&gt; Python-2.7.2.tgz
&lt;span class=&quot;token function&quot;&gt;find&lt;/span&gt; ~/python &lt;span class=&quot;token parameter variable&quot;&gt;-type&lt;/span&gt; d &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;xargs&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;chmod&lt;/span&gt; 0755
&lt;span class=&quot;token builtin class-name&quot;&gt;cd&lt;/span&gt; Python-2.7.2
./configure &lt;span class=&quot;token parameter variable&quot;&gt;--prefix&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token environment constant&quot;&gt;$HOME&lt;/span&gt;/python
&lt;span class=&quot;token function&quot;&gt;make&lt;/span&gt;
&lt;span class=&quot;token function&quot;&gt;make&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;install&lt;/span&gt;
&lt;span class=&quot;token builtin class-name&quot;&gt;cd&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;..&lt;/span&gt;
&lt;span class=&quot;token function&quot;&gt;rm&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-rf&lt;/span&gt; Python-2.7.2&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h2 id=&quot;modify-bashrc&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#modify-bashrc&quot; aria-label=&quot;modify bashrc permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Modify ~/.bashrc&lt;/h2&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;shell&quot;&gt;&lt;pre class=&quot;language-shell&quot;&gt;&lt;code class=&quot;language-shell&quot;&gt;&lt;span class=&quot;token function&quot;&gt;vim&lt;/span&gt; ~/.bashrc &lt;span class=&quot;token comment&quot;&gt;# Press i and enter the following:&lt;/span&gt;
&lt;span class=&quot;token builtin class-name&quot;&gt;export&lt;/span&gt; &lt;span class=&quot;token assign-left variable&quot;&gt;&lt;span class=&quot;token environment constant&quot;&gt;PATH&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token environment constant&quot;&gt;$HOME&lt;/span&gt;/python/bin:&lt;span class=&quot;token environment constant&quot;&gt;$PATH&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;# press &amp;lt;escape&gt;:wq&amp;lt;enter&gt;&lt;/span&gt;
&lt;span class=&quot;token builtin class-name&quot;&gt;source&lt;/span&gt; ~/.bashrc &lt;span class=&quot;token comment&quot;&gt;# Whenever you want to work using Python 2.7 in the&lt;/span&gt;
&lt;span class=&quot;token comment&quot;&gt;# console you will need to enter this&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h2 id=&quot;test-your-python-install&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#test-your-python-install&quot; aria-label=&quot;test your python install permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Test your Python install&lt;/h2&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;shell&quot;&gt;&lt;pre class=&quot;language-shell&quot;&gt;&lt;code class=&quot;language-shell&quot;&gt;python &lt;span class=&quot;token parameter variable&quot;&gt;-V&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;# This should output &quot;Python 2.7.2&quot;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h2 id=&quot;install-setuptools&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#install-setuptools&quot; aria-label=&quot;install setuptools permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Install setuptools&lt;/h2&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;shell&quot;&gt;&lt;pre class=&quot;language-shell&quot;&gt;&lt;code class=&quot;language-shell&quot;&gt;&lt;span class=&quot;token function&quot;&gt;wget&lt;/span&gt; https://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz
&lt;span class=&quot;token function&quot;&gt;tar&lt;/span&gt; xzvf setuptools-0.6c11.tar.gz
&lt;span class=&quot;token function&quot;&gt;rm&lt;/span&gt; setuptools-0.6c11.tar.gz
&lt;span class=&quot;token builtin class-name&quot;&gt;cd&lt;/span&gt; setuptools-0.6c11
python setup.py &lt;span class=&quot;token function&quot;&gt;install&lt;/span&gt;
&lt;span class=&quot;token builtin class-name&quot;&gt;cd&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;..&lt;/span&gt;
&lt;span class=&quot;token function&quot;&gt;rm&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-rf&lt;/span&gt; setuptools-0.6c11&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h2 id=&quot;install-pip&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#install-pip&quot; aria-label=&quot;install pip permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Install pip&lt;/h2&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;shell&quot;&gt;&lt;pre class=&quot;language-shell&quot;&gt;&lt;code class=&quot;language-shell&quot;&gt;&lt;span class=&quot;token function&quot;&gt;wget&lt;/span&gt; https://pypi.python.org/packages/source/p/pip/pip-1.2.1.tar.gz
&lt;span class=&quot;token function&quot;&gt;tar&lt;/span&gt; xzvf pip-1.2.1.tar.gz
&lt;span class=&quot;token function&quot;&gt;rm&lt;/span&gt; pip-1.2.1.tar.gz
&lt;span class=&quot;token builtin class-name&quot;&gt;cd&lt;/span&gt; pip-1.2.1
python setup.py &lt;span class=&quot;token function&quot;&gt;install&lt;/span&gt;
&lt;span class=&quot;token builtin class-name&quot;&gt;cd&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;..&lt;/span&gt;
&lt;span class=&quot;token function&quot;&gt;rm&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-rf&lt;/span&gt; pip-1.2.1&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h2 id=&quot;install-django-flup-and-mysql-python-module&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#install-django-flup-and-mysql-python-module&quot; aria-label=&quot;install django flup and mysql python module permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Install Django, flup and MySQL Python Module&lt;/h2&gt;
&lt;p&gt;Now that pip is installed this is easy part.&lt;/p&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;shell&quot;&gt;&lt;pre class=&quot;language-shell&quot;&gt;&lt;code class=&quot;language-shell&quot;&gt;pip &lt;span class=&quot;token function&quot;&gt;install&lt;/span&gt; Django
pip &lt;span class=&quot;token function&quot;&gt;install&lt;/span&gt; flup
pip &lt;span class=&quot;token function&quot;&gt;install&lt;/span&gt; MySQL-python&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h2 id=&quot;create-htaccess&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#create-htaccess&quot; aria-label=&quot;create htaccess permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Create .htaccess&lt;/h2&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;shell&quot;&gt;&lt;pre class=&quot;language-shell&quot;&gt;&lt;code class=&quot;language-shell&quot;&gt;&lt;span class=&quot;token builtin class-name&quot;&gt;cd&lt;/span&gt; ~/public_html/mysite &lt;span class=&quot;token comment&quot;&gt;# where mysite is the root folder of your site&lt;/span&gt;
&lt;span class=&quot;token function&quot;&gt;vim&lt;/span&gt; .htaccess &lt;span class=&quot;token comment&quot;&gt;# Press i then enter the following:&lt;/span&gt;
AddHandler fcgid-script .fcgi
RewriteEngine On
RewriteCond %&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;REQUEST_FILENAME&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;!&lt;/span&gt;-f
RewriteRule ^&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;.*&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;$ mysite.fcgi/&lt;span class=&quot;token variable&quot;&gt;$1&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;QSA,L&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;# Press &amp;lt;escape&gt;:wq&amp;lt;enter&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h2 id=&quot;configure-your-website&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#configure-your-website&quot; aria-label=&quot;configure your website permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Configure Your Website&lt;/h2&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;shell&quot;&gt;&lt;pre class=&quot;language-shell&quot;&gt;&lt;code class=&quot;language-shell&quot;&gt;&lt;span class=&quot;token function&quot;&gt;mkdir&lt;/span&gt; ~/django-projects
&lt;span class=&quot;token builtin class-name&quot;&gt;cd&lt;/span&gt; ~/django-projects
django-admin.py startproject myproject &lt;span class=&quot;token comment&quot;&gt;# I use the same name as mysite&lt;/span&gt;
&lt;span class=&quot;token comment&quot;&gt;# without any periods&lt;/span&gt;
&lt;span class=&quot;token builtin class-name&quot;&gt;cd&lt;/span&gt; ~/public_html/mysite
&lt;span class=&quot;token function&quot;&gt;vim&lt;/span&gt; mysite.fcgi &lt;span class=&quot;token comment&quot;&gt;# Press i then enter the following:&lt;/span&gt;
&lt;span class=&quot;token comment&quot;&gt;#!/home/your_username/python/bin/python&lt;/span&gt;
&lt;span class=&quot;token function&quot;&gt;import&lt;/span&gt; sys, os
&lt;span class=&quot;token comment&quot;&gt;# Where /home/your_username is the path to your home directory&lt;/span&gt;
sys.path.insert&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;0&lt;/span&gt;, &lt;span class=&quot;token string&quot;&gt;&quot;/home/your_username/python&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
sys.path.insert&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;13&lt;/span&gt;, &lt;span class=&quot;token string&quot;&gt;&quot;/home/your_username/django-projects/myproject&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
os.environ&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&apos;DJANGO_SETTINGS_MODULE&apos;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&apos;myproject.settings&apos;&lt;/span&gt;
from django.core.servers.fastcgi &lt;span class=&quot;token function&quot;&gt;import&lt;/span&gt; runfastcgi
runfastcgi&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;method&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&quot;threaded&quot;&lt;/span&gt;, &lt;span class=&quot;token assign-left variable&quot;&gt;daemonize&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&quot;false&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;# Press &amp;lt;escape&gt;:wq&amp;lt;enter&gt;&lt;/span&gt;
&lt;span class=&quot;token function&quot;&gt;chmod&lt;/span&gt; 0755 mysite.fcgi&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h2 id=&quot;test-your-configuration&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#test-your-configuration&quot; aria-label=&quot;test your configuration permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Test your configuration&lt;/h2&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;shell&quot;&gt;&lt;pre class=&quot;language-shell&quot;&gt;&lt;code class=&quot;language-shell&quot;&gt;python mysite.fcgi
&lt;span class=&quot;token comment&quot;&gt;# Fix any errors and run the command again. When you have an HTML page&lt;/span&gt;
&lt;span class=&quot;token comment&quot;&gt;# returned your Django install is complete. You should be able to go to your&lt;/span&gt;
&lt;span class=&quot;token comment&quot;&gt;# sites URL and view the Django welcome page.&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h2 id=&quot;thats-everything&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#thats-everything&quot; aria-label=&quot;thats everything permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;That&apos;s everything&lt;/h2&gt;
&lt;p&gt;Now you can get to work and create some real Django pages.&lt;/p&gt;
&lt;h2 id=&quot;a-few-tips&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#a-few-tips&quot; aria-label=&quot;a few tips permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;A Few Tips&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Remember to install every python and django package using pip - that way they will be available to your django app.&lt;/li&gt;
&lt;li&gt;Keep in mind that every Django command like syncdb, collectstatic  etc. should be run using the correct version of Python. This means using source ~/.bashrc every time you log into your SSH client e.g.&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;shell&quot;&gt;&lt;pre class=&quot;language-shell&quot;&gt;&lt;code class=&quot;language-shell&quot;&gt;&lt;span class=&quot;token builtin class-name&quot;&gt;source&lt;/span&gt; ~/.bashrc
python manage.py syncdb
python manage.py shell
etc.&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</content:encoded><author>michael@ratcliffefamily.org</author></item><item><title><![CDATA[Firefox DevTools API]]></title><description><![CDATA[Hopefully, most of you are familiar with Firefox Developer Tools by now, if not then now is the time to get familiar!
The DevTools Team…]]></description><link>https://flailingmonkey.com/firefox-devtools-api/</link><guid isPermaLink="false">https://flailingmonkey.com/firefox-devtools-api/</guid><category><![CDATA[Mozilla]]></category><dc:creator><![CDATA[Mike Ratcliffe]]></dc:creator><pubDate>Fri, 05 Oct 2012 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Hopefully, most of you are familiar with &lt;a href=&quot;https://developer.mozilla.org/docs/Tools&quot; title=&quot;Firefox Developer Tools&quot;&gt;Firefox Developer Tools&lt;/a&gt; by now, if not then now is the time to get familiar!
The DevTools Team recently met up in London to talk about, and generally hack on, developer tools stuff and it turned out to be an amazingly productive time. The DevTools team has two branches, the debugger team and the inspector team so I will discuss them separately.&lt;/p&gt;
&lt;h2 id=&quot;the-debugger-team-aka-team-minotaur&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#the-debugger-team-aka-team-minotaur&quot; aria-label=&quot;the debugger team aka team minotaur permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;The Debugger Team a.k.a. Team Minotaur&lt;/h2&gt;
&lt;p&gt;Rob Campbell talked about how to build a Jetpack addon using Scratchpad. They have managed to get &lt;a href=&quot;https://blog.astithas.com/2012/10/debugging-firefox.html&quot; title=&quot;Firefox chrome debugging&quot;&gt;Firefox chrome debugging&lt;/a&gt; working... it is still work in progress but it will be extremely useful for debugging Firefox OS etc. Mihai Sucan managed to get the Web Console working to log errors, network requests etc from a &lt;a href=&quot;https://wiki.mozilla.org/Gaia&quot; title=&quot;Gaia&quot;&gt;Gaia&lt;/a&gt; installation. They even managed to step through CoffeeScript using sourcemaps!&lt;/p&gt;
&lt;p&gt;Not debugger related but also by a member of that team, Victor Porof demoed WebGL live shader editing using scratchpad.&lt;/p&gt;
&lt;h2 id=&quot;the-inspector-team-aka-team-carnage-&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#the-inspector-team-aka-team-carnage-&quot; aria-label=&quot;the inspector team aka team carnage  permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;The Inspector Team a.k.a. Team Carnage &lt;sup id=&quot;fnref-1&quot;&gt;&lt;a href=&quot;#fn-1&quot; class=&quot;footnote-ref&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;&lt;/h2&gt;
&lt;p&gt;Paul Rouget really was on fire, he has managed to get the Responsive Design View to use mobile style scrollbars instead of the standard ones.&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;gatsby-resp-iframe-wrapper&quot; style=&quot;padding-bottom: 56.49999999999999%; position: relative; height: 0; overflow: hidden; &quot; &gt; &lt;div class=&quot;embedVideo-container&quot;&gt; &lt;iframe title=&quot;&quot; src=&quot;https://www.youtube.com/embed/M2y5S7p81jU?rel=0&quot; class=&quot;embedVideo-iframe&quot; style=&quot;border:0; position: absolute; top: 0; left: 0; width: 100%; height: 100%; &quot; loading=&quot;lazy&quot; allowfullscreen=&quot;&quot; sandbox=&quot;allow-same-origin allow-scripts allow-popups&quot;&gt;&lt;/iframe&gt; &lt;/div&gt; &lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Paul has also managed to add a live preview to the DOM Tree à la Sublime Text and added an OSX fullscreen button to the scratchpad.&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;gatsby-resp-iframe-wrapper&quot; style=&quot;padding-bottom: 56.49999999999999%; position: relative; height: 0; overflow: hidden; &quot; &gt; &lt;div class=&quot;embedVideo-container&quot;&gt; &lt;iframe title=&quot;&quot; src=&quot;https://www.youtube.com/embed/61tQij_ox9k?rel=0&quot; class=&quot;embedVideo-iframe&quot; style=&quot;border:0; position: absolute; top: 0; left: 0; width: 100%; height: 100%; &quot; loading=&quot;lazy&quot; allowfullscreen=&quot;&quot; sandbox=&quot;allow-same-origin allow-scripts allow-popups&quot;&gt;&lt;/iframe&gt; &lt;/div&gt; &lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Paul, Heather and myself managed to get a new panel management system working. These panels will be a little like Firebug panels on steroids and will ultimately make all of our lives much easier, more about that below.&lt;/p&gt;
&lt;h2 id=&quot;others&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#others&quot; aria-label=&quot;others permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Others&lt;/h2&gt;
&lt;p&gt;Mark Goodwin has rewritten the &lt;a href=&quot;https://developer.mozilla.org/docs/Tools/GCLI&quot; title=&quot;The Firefox Command Line&quot;&gt;Command Line&lt;/a&gt; cookie command so that it is much more reliable when creating and editing cookies. Kevin Dangoor added an in page HTML editor that can be used along with the DOM Tree for Dreamweaver-like editing.&lt;/p&gt;
&lt;h2 id=&quot;the-devtools-api&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#the-devtools-api&quot; aria-label=&quot;the devtools api permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;The DevTools API&lt;/h2&gt;
&lt;p&gt;Before I say anything about this API I would like to add that it is so early alpha that it is a long way away from being merged with Firefox&apos;s main branches. Everything here is subject to change so don&apos;t use it, at least no until we have everything working properly!
Paul Rouget has also blogged about the &lt;a href=&quot;https://paulrouget.com/e/devtools-toolbox/&quot; title=&quot;The DevTools Toolbox&quot;&gt;DevTools Toolbox&lt;/a&gt; in a little less detail. I stole the images on this page from him to save a little time... thanks Paul.&lt;/p&gt;
&lt;p&gt;I mentioned earlier that we will be moving to panels similar to Firebug&apos;s. Of course, a lot of people like our sidebar so we didn&apos;t want to lose that. Unfortunately, if every tool was allowed to choose how and where it&apos;s panels are opened we very quickly have no space for the content area, we call this phenomena &quot;The DevTools Donut.&quot;&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 690px; &quot;
    &gt;
      &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 65.31791907514452%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/jpeg;base64,/9j/2wBDABALDA4MChAODQ4SERATGCgaGBYWGDEjJR0oOjM9PDkzODdASFxOQERXRTc4UG1RV19iZ2hnPk1xeXBkeFxlZ2P/2wBDARESEhgVGC8aGi9jQjhCY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2P/wgARCAANABQDASIAAhEBAxEB/8QAGAAAAgMAAAAAAAAAAAAAAAAAAAUBAgT/xAAVAQEBAAAAAAAAAAAAAAAAAAAAAf/aAAwDAQACEAMQAAAB22URTcWCf//EABsQAAMAAgMAAAAAAAAAAAAAAAECAxETAAQS/9oACAEBAAEFAhNsLM5qg9bp83AO/bYn/8QAFBEBAAAAAAAAAAAAAAAAAAAAEP/aAAgBAwEBPwE//8QAFBEBAAAAAAAAAAAAAAAAAAAAEP/aAAgBAgEBPwE//8QAHRAAAgEEAwAAAAAAAAAAAAAAAAIBAxEykSEzQf/aAAgBAQAGPwLNtHLNJ6dC7FdKcLYxg//EABsQAAMAAwEBAAAAAAAAAAAAAAABESExUUHB/9oACAEBAAE/IYXEIrO5IIJnTpg+wT8a8XYrvxP/2gAMAwEAAgADAAAAEHDv/8QAFREBAQAAAAAAAAAAAAAAAAAAEBH/2gAIAQMBAT8Qp//EABQRAQAAAAAAAAAAAAAAAAAAABD/2gAIAQIBAT8QP//EAB0QAQACAQUBAAAAAAAAAAAAAAEAESExQVFhcZH/2gAIAQEAAT8QVXVTfx5EjKbSH2b8pdfLAclqGZ0IJLlZ8zEyGjF99z//2Q==&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Firefox Developer Tools Donut&quot;
        title=&quot;&quot;
        src=&quot;/static/eec10f05b326f552d2fd37cd133291c2/15ec7/firefox-developer-tools-donut.jpg&quot;
        srcset=&quot;/static/eec10f05b326f552d2fd37cd133291c2/9ac50/firefox-developer-tools-donut.jpg 173w,
/static/eec10f05b326f552d2fd37cd133291c2/8d48c/firefox-developer-tools-donut.jpg 345w,
/static/eec10f05b326f552d2fd37cd133291c2/15ec7/firefox-developer-tools-donut.jpg 690w,
/static/eec10f05b326f552d2fd37cd133291c2/1a144/firefox-developer-tools-donut.jpg 730w&quot;
        sizes=&quot;(max-width: 690px) 100vw, 690px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Firefox developer tools donut&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;We have also received complaints that opening a sidebar causes reflow and can make it impossible for pages that use media queries to be edited properly. Others do not like editing at the bottom of the screen like in Firebug because some tools are better off in a side panel.&lt;/p&gt;
&lt;p&gt;The DevTools API allows a tool to register itself. On registration the tool will be passed an iframe in which it will be responsible for rendering itself. Of course, we will send events to the tool so that it can react as appropriate. This means that tools can forget about panels and leave all panel related activities to be handled by the panel manager.&lt;/p&gt;
&lt;p&gt;Registering a tool is fairly simple:&lt;/p&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;js&quot;&gt;&lt;pre class=&quot;language-js&quot;&gt;&lt;code class=&quot;language-js&quot;&gt;gDevTools&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;registerTool&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token literal-property property&quot;&gt;id&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;myToolId&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;token literal-property property&quot;&gt;killswitch&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;devtools.mytool.enabled&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;// Your tool needs to create this&lt;/span&gt;
  &lt;span class=&quot;token literal-property property&quot;&gt;icon&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;chrome://browser/skin/devtools/mytool-tool-icon.png&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;token literal-property property&quot;&gt;url&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;chrome://browser/content/devtools/mytool.xul&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;token literal-property property&quot;&gt;label&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; l10n&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;getStr&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&quot;ToolboxMyTool.label&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;token function-variable function&quot;&gt;build&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token parameter&quot;&gt;aIFrameWindow&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; aTarget&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;token keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;token class-name&quot;&gt;MyToolInstance&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;aIFrameWindow&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; aTarget&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;MyToolInstance needs to have a build method that accepts two arguments, an iframe.contentWindow and a target. The window is the window in which your tool is to build itself and the target is an object that specifies a gDevTools.TargetType and a value such as a tab. It also needs a destroy method so that it can clean up listeners etc. when the toolbox is closed.&lt;/p&gt;
&lt;p&gt;The tools open in what we call the Toolbox. This toolbox appears at the bottom of the content area by default but can also be moved to the right of the content area or popped out. Tools will keep their state when changing tabs so you do not usually need any special mechanism to save and restore state.&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 690px; &quot;
    &gt;
      &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 65.31791907514452%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/jpeg;base64,/9j/2wBDABALDA4MChAODQ4SERATGCgaGBYWGDEjJR0oOjM9PDkzODdASFxOQERXRTc4UG1RV19iZ2hnPk1xeXBkeFxlZ2P/2wBDARESEhgVGC8aGi9jQjhCY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2P/wgARCAANABQDASIAAhEBAxEB/8QAGAAAAwEBAAAAAAAAAAAAAAAAAAQFAQL/xAAVAQEBAAAAAAAAAAAAAAAAAAAAAf/aAAwDAQACEAMQAAABr7O6RwQD/8QAGhAAAgMBAQAAAAAAAAAAAAAAABMBAhEDEv/aAAgBAQABBQKF5vMlY2o6ue6H/8QAFBEBAAAAAAAAAAAAAAAAAAAAEP/aAAgBAwEBPwE//8QAFBEBAAAAAAAAAAAAAAAAAAAAEP/aAAgBAgEBPwE//8QAGRAAAgMBAAAAAAAAAAAAAAAAAAECMTOR/9oACAEBAAY/AriXHpa6ZoyRkj//xAAeEAABBAEFAAAAAAAAAAAAAAAAAREhUdEQcaHB8P/aAAgBAQABPyFtNF6MnFGjJe2H5cGBY+vB/9oADAMBAAIAAwAAABBM/wD/xAAUEQEAAAAAAAAAAAAAAAAAAAAQ/9oACAEDAQE/ED//xAAVEQEBAAAAAAAAAAAAAAAAAAAQEf/aAAgBAgEBPxCH/8QAGxAAAgIDAQAAAAAAAAAAAAAAAREAITFR0aH/2gAIAQEAAT8QMKXo69lr8XYSVj07FUsA0RcAgCWFZhhg1D//2Q==&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Toolbox displayed below content&quot;
        title=&quot;&quot;
        src=&quot;/static/7b0b47418e26b6b07b919fcd74e60d0e/15ec7/toolbox-displayed-below-content.jpg&quot;
        srcset=&quot;/static/7b0b47418e26b6b07b919fcd74e60d0e/9ac50/toolbox-displayed-below-content.jpg 173w,
/static/7b0b47418e26b6b07b919fcd74e60d0e/8d48c/toolbox-displayed-below-content.jpg 345w,
/static/7b0b47418e26b6b07b919fcd74e60d0e/15ec7/toolbox-displayed-below-content.jpg 690w,
/static/7b0b47418e26b6b07b919fcd74e60d0e/1a144/toolbox-displayed-below-content.jpg 730w&quot;
        sizes=&quot;(max-width: 690px) 100vw, 690px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Toolbox displayed below content&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 690px; &quot;
    &gt;
      &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 65.31791907514452%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/jpeg;base64,/9j/2wBDABALDA4MChAODQ4SERATGCgaGBYWGDEjJR0oOjM9PDkzODdASFxOQERXRTc4UG1RV19iZ2hnPk1xeXBkeFxlZ2P/2wBDARESEhgVGC8aGi9jQjhCY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2P/wgARCAANABQDASIAAhEBAxEB/8QAFwABAQEBAAAAAAAAAAAAAAAAAAMCBf/EABUBAQEAAAAAAAAAAAAAAAAAAAAB/9oADAMBAAIQAxAAAAG8czOgLP/EABoQAAIDAQEAAAAAAAAAAAAAAAECAAMEERP/2gAIAQEAAQUCCXlV9TeaXg3FRXf3QdE//8QAFBEBAAAAAAAAAAAAAAAAAAAAEP/aAAgBAwEBPwE//8QAFBEBAAAAAAAAAAAAAAAAAAAAEP/aAAgBAgEBPwE//8QAHxAAAQMEAwEAAAAAAAAAAAAAAAECEQMSMaEyM5GS/9oACAEBAAY/Akx9DqauiEOzRFiejqluUOOz/8QAHBAAAwEAAgMAAAAAAAAAAAAAAAERITFBUZHw/9oACAEBAAE/IZguK+YdyczTyPoKlUUDGOpRMqX/2gAMAwEAAgADAAAAENsf/8QAFREBAQAAAAAAAAAAAAAAAAAAACH/2gAIAQMBAT8QR//EABQRAQAAAAAAAAAAAAAAAAAAABD/2gAIAQIBAT8QP//EABsQAQEAAwEBAQAAAAAAAAAAAAERACExQWHw/9oACAEBAAE/EGFgtuPMbo+qQ+eoXuBSvTIbQVVuEw3UGlkh2fMJDZr85n//2Q==&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Toolbox displayed on the right of content&quot;
        title=&quot;&quot;
        src=&quot;/static/b9fcbce7fec65f82d781f879b798d43c/15ec7/toolbox-displayed-on-the-right-of-content.jpg&quot;
        srcset=&quot;/static/b9fcbce7fec65f82d781f879b798d43c/9ac50/toolbox-displayed-on-the-right-of-content.jpg 173w,
/static/b9fcbce7fec65f82d781f879b798d43c/8d48c/toolbox-displayed-on-the-right-of-content.jpg 345w,
/static/b9fcbce7fec65f82d781f879b798d43c/15ec7/toolbox-displayed-on-the-right-of-content.jpg 690w,
/static/b9fcbce7fec65f82d781f879b798d43c/1a144/toolbox-displayed-on-the-right-of-content.jpg 730w&quot;
        sizes=&quot;(max-width: 690px) 100vw, 690px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Toolbox displayed on the right of content&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 690px; &quot;
    &gt;
      &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 61.27167630057804%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/jpeg;base64,/9j/2wBDABALDA4MChAODQ4SERATGCgaGBYWGDEjJR0oOjM9PDkzODdASFxOQERXRTc4UG1RV19iZ2hnPk1xeXBkeFxlZ2P/2wBDARESEhgVGC8aGi9jQjhCY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2P/wgARCAAMABQDASIAAhEBAxEB/8QAFwAAAwEAAAAAAAAAAAAAAAAAAAIEBf/EABUBAQEAAAAAAAAAAAAAAAAAAAAB/9oADAMBAAIQAxAAAAHVVkSUmK//xAAaEAACAwEBAAAAAAAAAAAAAAABAgADEgQR/9oACAEBAAEFAireZeWc5ZmYiaMvvKWf/8QAFBEBAAAAAAAAAAAAAAAAAAAAEP/aAAgBAwEBPwE//8QAFBEBAAAAAAAAAAAAAAAAAAAAEP/aAAgBAgEBPwE//8QAHhAAAQMEAwAAAAAAAAAAAAAAAQACERAiMXEygaL/2gAIAQEABj8CtIHS5+VLnCdIapAa3C//xAAdEAEAAgICAwAAAAAAAAAAAAABABEhMUFRYZHR/9oACAEBAAE/IaREAxnBDT0l2qnjAAaRAjiY5Ha/s//aAAwDAQACAAMAAAAQTA//xAAWEQEBAQAAAAAAAAAAAAAAAAAAARH/2gAIAQMBAT8QZH//xAAVEQEBAAAAAAAAAAAAAAAAAAABAP/aAAgBAgEBPxAhb//EABkQAQEBAQEBAAAAAAAAAAAAAAERACFRcf/aAAgBAQABPxCBLSgl9uQITMGkAlFx8HTSoNM4IhJ0xxQB4rP/2Q==&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Toolbox undocked&quot;
        title=&quot;&quot;
        src=&quot;/static/395a43a485c6fe87d20330b1ef1bc05e/15ec7/toolbox-undocked.jpg&quot;
        srcset=&quot;/static/395a43a485c6fe87d20330b1ef1bc05e/9ac50/toolbox-undocked.jpg 173w,
/static/395a43a485c6fe87d20330b1ef1bc05e/8d48c/toolbox-undocked.jpg 345w,
/static/395a43a485c6fe87d20330b1ef1bc05e/15ec7/toolbox-undocked.jpg 690w,
/static/395a43a485c6fe87d20330b1ef1bc05e/1a144/toolbox-undocked.jpg 730w&quot;
        sizes=&quot;(max-width: 690px) 100vw, 690px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Toolbox undocked&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;Tools do not need to live in a panel. We also have a mechanism that allows you to register a Firefox Command Line command and display it as a button. This makes it extremely easy to add buttons to create screenshots, trigger responsive design mode, restart Firefox etc.&lt;/p&gt;
&lt;p&gt;Are we missing anything? I don&apos;t think so but if we are then feel free to let us know.&lt;/p&gt;
&lt;h3 id=&quot;resources&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#resources&quot; aria-label=&quot;resources permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Resources&lt;/h3&gt;

      &lt;div class=&quot;footnotes&quot;&gt;
        &lt;hr/&gt;
        &lt;ol &gt;
    
    &lt;li class=&quot;footnote-list-item&quot; id=&quot;fn-1&quot; &gt;
          
        &lt;p class=&quot;footnote-paragraph&quot; style=&quot;display:inline; &quot;&gt;I can neither confirm or deny that &quot;Team Carnage&quot; is the inspector team&apos;s official name although we may or may not be searching for one. If you can think of a better name then please let us know.&lt;/p&gt;
      &lt;a href=&quot;#fnref-1&quot; class=&quot;footnote-backref&quot; style=&quot;display:inline;text-decoration: none;&quot;&gt;
        ↩
      &lt;/a&gt;
    
      &lt;/li&gt;
      
    &lt;/ol&gt;&lt;/div&gt;</content:encoded><author>michael@ratcliffefamily.org</author></item><item><title><![CDATA[How well does your browser protect your privacy?]]></title><description><![CDATA[Having downsized my home a couple of times in the last year it is no understatement to say I have urgent space issues. I have power tools…]]></description><link>https://flailingmonkey.com/how-well-does-your-browser-protect-your-privacy/</link><guid isPermaLink="false">https://flailingmonkey.com/how-well-does-your-browser-protect-your-privacy/</guid><category><![CDATA[Mozilla]]></category><dc:creator><![CDATA[Mike Ratcliffe]]></dc:creator><pubDate>Sun, 05 Aug 2012 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Having downsized my home a couple of times in the last year it is no understatement to say I have urgent space issues. I have power tools, large kitchen devices and surplus everything else. I looked online for a new shed, comparing reviews and investigating the UK&apos;s top shed building companies in my typically obsessive way. Having found &quot;the one&quot;, I paid the company and am currently waiting for the timber that I will use to make the concrete base for the shed in preparation for delivery.&lt;/p&gt;
&lt;p&gt;Imagine my irritation a few days after my investigations to discover that almost every web page I visit contains some kind of shed advert! It seems that the popular search engine that I use actually owns a large advertising and tracking company and that this company advertises on a very large percentage of websites. A lot has been said about online privacy and users rights to own their data but little has been said about what can be done about it.&lt;/p&gt;
&lt;p&gt;It irks me that my search results have suddenly become shed based... wood, cedar, paint, tools internet and house are all terms that result in the first few results being related to sheds. Interestingly there is a &quot;Why do I see this?&quot; link next to these results and clicking this link provides an option not to receive these targeted results. Conveniently, if I attempt to opt out nothing changes and if I look at the option again it remains set for me to receive targeted results. I also find that the search results that I receive appear to be the results that the search company think that I want to receive.&lt;/p&gt;
&lt;p&gt;I greatly dislike the fact that if you and I search for a particular term both us us will receive a completely different set of results. I would love to say that tracking a user in this way should be illegal but the truth is that online advertising is very big business and it won&apos;t be going away any time soon. A quick look at the profits of large search engine and social media companies shows just how lucrative online advertising can be. I have nothing against online advertising itself but I do have a problem with the methods that some websites and online stores employ in order to track my online activity.&lt;/p&gt;
&lt;p&gt;Before the &lt;a href=&quot;https://edition.cnn.com/2012/03/01/tech/social-media/twitter-selling-tweets/&quot;&gt;recent(ish) media outrage&lt;/a&gt; would you ever have thought that Twitter would begin selling it&apos;s users tweets? Google’s mission is to organize the world’s information and make it universally accessible and useful. Lots of people I know find this a frightening concept. Need I mention Facebook and the many privacy issues that have been reported. Personally, I don&apos;t mind the idea of them using e.g. pictures that I have uploaded, after all, I did upload the picture to their servers. I really do dislike them using my data to target me with their adverts.&lt;/p&gt;
&lt;p&gt;Tracking aside, there are bigger issues to worry about. Many web sites, in particularly forums, send usernames and passwords in plain text. When the data is sent over the internet it goes through a bunch of servers before it arrives at it&apos;s destination. It is simple to find the path that your data takes using traceroute:&lt;/p&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;powershell&quot;&gt;&lt;pre class=&quot;language-powershell&quot;&gt;&lt;code class=&quot;language-powershell&quot;&gt;tracert google&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;com
Tracing route to google&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;com &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;173&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;194&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;34&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;72&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;
over a maximum of 30 hops:
1    &amp;lt;1 ms    &amp;lt;1 ms    &amp;lt;1 ms  my&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;router &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;192&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;168&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;1&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;1&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;
2    24 ms     4 ms     5 ms  93&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;186&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;155&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;65-ifnl&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;net &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;93&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;186&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;155&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;65&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;
3     5 ms     5 ms     5 ms  ge-2-0-0-xcr1&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;lsw&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;cw&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;net &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;194&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;112&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;69&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;129&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;
4     6 ms     4 ms     5 ms  xe-4-3-0-xcr1&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;lns&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;cw&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;net &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;195&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;2&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;28&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;42&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;
5    81 ms    85 ms    82 ms  72&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;14&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;198&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;113
6    36 ms     5 ms     6 ms  209&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;85&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;240&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;63
7     6 ms     5 ms     5 ms  209&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;85&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;253&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;31
8     5 ms     5 ms     5 ms  lhr14s19-in-f8&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;1e100&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;net &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;173&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;194&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;34&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;72&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;All eight steps in this traceroute are points where a device could be intercepting your usernames and passwords and you would know nothing about it. One tool that helps protect against this kind of activity is the Secure Sockets Layer (SSL).&lt;/p&gt;
&lt;p&gt;SSL provides a way to create an encrypted channel between an application running on your computer and an application running on another computer. When it comes to web pages then the secure protocol that we use is HTTPS. When you are on a webpage containing a log in dialog it is only safe to submit your username and password only if the page is an HTTPS page.&lt;/p&gt;
&lt;p&gt;So, why don&apos;t we just use HTTPS all of the time, would that not solve all of our privacy issues? No, unfortunately not. HTTPS ensures that your data is safe between your computer and the destination server. Once your data is on the server it is in the hands of the organization that owns the server. This is highly likely to be a legitimate server but it could just as easily be an evil webmaster that is attempting to gather your personal information.&lt;/p&gt;
&lt;p&gt;A useful Firefox extension that will use HTTPS versions of a site whenever available is &lt;a href=&quot;https://www.eff.org/https-everywhere&quot; title=&quot;HTTP Anywhere&quot;&gt;HTTPS Everywhere&lt;/a&gt;. I would certainly suggest using it, after it is installed you will find that a large amount of sites will automatically run using HTTPS.&lt;/p&gt;
&lt;p&gt;There is an excellent article that explains why you would would want to encrypt your internet traffic on Pixel Privacy&apos;s website &lt;a href=&quot;https://pixelprivacy.com/resources/how-to-encrypt-your-traffic/&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Another issue that plagues the internet today is website spoofing / phishing. Website spoofers create websites that looks very similar to a site that you commonly use with the soul purpose of gaining information about you. In the last couple of years sites that directly ask you for information such as bank or credit card details have become more popular. An example of this kind of site can be found &lt;a href=&quot;https://ismycreditcardstolen.com&quot; title=&quot;Is my credit card stolen&quot;&gt;here&lt;/a&gt;. The page does not submit any information, in fact you don&apos;t really need to enter anything, it is designed as a teaching aid. Try it, you can trust it... honest (to be safe don&apos;t use your real information).&lt;/p&gt;
&lt;p&gt;Compared to the illegal vulnerabilities that we face, tracking is not such a worry but more of an irritating abuse of privacy. Google, Facebook, Twitter and others make money by providing users with a free service in return for information about them. This information is either used by the sites themselves or sold to other sites in order to better target you with adverts that they believe that you will respond to. This video highlights this issue in quite an eye opening way:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;gatsby-resp-iframe-wrapper&quot; style=&quot;padding-bottom: 56.49999999999999%; position: relative; height: 0; overflow: hidden; &quot; &gt; &lt;div class=&quot;embedVideo-container&quot;&gt; &lt;iframe title=&quot;&quot; src=&quot;https://www.youtube.com/embed/yZKul_awxMA?rel=0&quot; class=&quot;embedVideo-iframe&quot; style=&quot;border:0; position: absolute; top: 0; left: 0; width: 100%; height: 100%; &quot; loading=&quot;lazy&quot; allowfullscreen=&quot;&quot; sandbox=&quot;allow-same-origin allow-scripts allow-popups&quot;&gt;&lt;/iframe&gt; &lt;/div&gt; &lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Google and Facebook have built relationships with millions of other websites to help them track your web activity using cookies. Google uses it&apos;s adverts, and analytical services to track what you do whilst Facebook uses it&apos;s log in services and like buttons. It is possible to disable cookies in your browser preferences but you would find that many sites would not work properly and you would have to log in every time you visit. Deleting cookies can help but some websites create zombie cookies (the word cookie here is misleading).&lt;/p&gt;
&lt;p&gt;Zombie cookies are stored in multiple locations using multiple methods e.g. Flash LSOs, cookies, local storage, web databases etc. When a zombie cookie is erased it recreates itself along with it&apos;s gathered information when you return to a related website.&lt;/p&gt;
&lt;p&gt;There is an excellent Firefox extension called &lt;a href=&quot;https://addons.mozilla.org/firefox/addon/lightbeam/&quot;&gt;Lightbeam&lt;/a&gt;. Lightbeam allows you to see what kind of communications go on between the sites you visit. When the extension is installed click on the white circle at the bottom right of the browser to start. A tree similar to the one below will appear with each node representing a website or domain. The collusion developers are working on adding more features, such as the ability to click on any node in the graph and tell Firefox to block third-party cookies to that site. They are also working on visualizing other methods of tracking besides third-party cookies. If you would like to keep an eye on their progress, file a bug, request a feature, or get a copy of the source code, please go to &lt;a href=&quot;https://github.com/toolness/collusion&quot;&gt;https://github.com/toolness/collusion&lt;/a&gt;.&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 576px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/6ff16c227dc3f5c00835aea4bcff88a5/ac097/the-excellent-collusion-extension.jpg&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 94.79768786127167%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/jpeg;base64,/9j/2wBDABALDA4MChAODQ4SERATGCgaGBYWGDEjJR0oOjM9PDkzODdASFxOQERXRTc4UG1RV19iZ2hnPk1xeXBkeFxlZ2P/2wBDARESEhgVGC8aGi9jQjhCY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2P/wgARCAATABQDASIAAhEBAxEB/8QAGAABAAMBAAAAAAAAAAAAAAAAAAECAwX/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIQAxAAAAHhysYLCLhmD//EABgQAQEBAQEAAAAAAAAAAAAAAAEAEAIx/9oACAEBAAEFAgkwlwuvb//EABQRAQAAAAAAAAAAAAAAAAAAACD/2gAIAQMBAT8BH//EABQRAQAAAAAAAAAAAAAAAAAAACD/2gAIAQIBAT8BH//EABQQAQAAAAAAAAAAAAAAAAAAADD/2gAIAQEABj8CH//EABoQAAICAwAAAAAAAAAAAAAAAAABESEQMUH/2gAIAQEAAT8hus49w6cSMso2RWK1j//aAAwDAQACAAMAAAAQYwg8/8QAFBEBAAAAAAAAAAAAAAAAAAAAIP/aAAgBAwEBPxAf/8QAFBEBAAAAAAAAAAAAAAAAAAAAIP/aAAgBAgEBPxAf/8QAHhABAAEEAwEBAAAAAAAAAAAAAREAITFBEFFxYcH/2gAIAQEAAT8QKZMS9nrVCsPE774cAICPPtZwLnTn8bU7ys3tqkxanFES0MHH/9k=&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;The excellent Lightbeam extension&quot;
        title=&quot;&quot;
        src=&quot;/static/6ff16c227dc3f5c00835aea4bcff88a5/ac097/the-excellent-collusion-extension.jpg&quot;
        srcset=&quot;/static/6ff16c227dc3f5c00835aea4bcff88a5/9ac50/the-excellent-collusion-extension.jpg 173w,
/static/6ff16c227dc3f5c00835aea4bcff88a5/8d48c/the-excellent-collusion-extension.jpg 345w,
/static/6ff16c227dc3f5c00835aea4bcff88a5/ac097/the-excellent-collusion-extension.jpg 576w&quot;
        sizes=&quot;(max-width: 576px) 100vw, 576px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;The excellent Lightbeam extension&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;Unfortunately, even when cookies are blocked there are things that websites can do in order to track you. Take for example a Facebook like button, even without cookies it would be capable of informing Facebook which website you were on when you clicked the button and which page referred you to that website. There is really very little, if anything, that you can do in order to prevent this.&lt;/p&gt;
&lt;p&gt;Another technique that can be used to identify you is fingerprinting. This is a method of gathering information about your browser in an attempt to uniquely identify you. Although you may think your browser is not unique consider how unique your personal combination of screen size, color depth, time zone, user agent and browser plugins. You can check how unique your browser is &lt;a href=&quot;https://panopticlick.eff.org/&quot; title=&quot;How unique is your browser&quot;&gt;here&lt;/a&gt;, the odds are that you can be uniquely identified. This method could potentially be used to track you without using cookies but at the time of writing it is not commonly used.&lt;/p&gt;
&lt;p&gt;I have always worried about my online privacy. In fact, it is because Mozilla is a non profit organization that I work for them. They are not an advertising company so I can be absolutely certain that my browser is not spying on me. Of course, tracking cookies are part of the web so we can&apos;t block them but we are actively working on ways to give you control of this area of the internet. Another video:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;gatsby-resp-iframe-wrapper&quot; style=&quot;padding-bottom: 56.49999999999999%; position: relative; height: 0; overflow: hidden; &quot; &gt; &lt;div class=&quot;embedVideo-container&quot;&gt; &lt;iframe title=&quot;&quot; src=&quot;https://www.youtube.com/embed/2J0ITwUZ4lc?rel=0&quot; class=&quot;embedVideo-iframe&quot; style=&quot;border:0; position: absolute; top: 0; left: 0; width: 100%; height: 100%; &quot; loading=&quot;lazy&quot; allowfullscreen=&quot;&quot; sandbox=&quot;allow-same-origin allow-scripts allow-popups&quot;&gt;&lt;/iframe&gt; &lt;/div&gt; &lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Cheesy maybe, but very educational.&lt;/p&gt;
&lt;p&gt;Firefox contains &quot;&lt;a href=&quot;https://www.mozilla.org/dnt/&quot;&gt;Do not track&lt;/a&gt;.&quot; Do Not Track is a feature in Firefox that allows you to let a website know you would like to opt-out of third-party tracking for purposes including behavioral advertising. Companies are starting to support Do Not Track, but you may not notice many changes until more tracking companies choose to honor it. Mozilla are actively working with companies that have started to implement Do Not Track and with others who have committed to doing so soon.
How do you enable &quot;Do not track?&quot; Simple, watch this video:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;gatsby-resp-iframe-wrapper&quot; style=&quot;padding-bottom: 56.49999999999999%; position: relative; height: 0; overflow: hidden; &quot; &gt; &lt;div class=&quot;embedVideo-container&quot;&gt; &lt;iframe title=&quot;&quot; src=&quot;https://www.youtube.com/embed/D0ieagw4jFI?rel=0&quot; class=&quot;embedVideo-iframe&quot; style=&quot;border:0; position: absolute; top: 0; left: 0; width: 100%; height: 100%; &quot; loading=&quot;lazy&quot; allowfullscreen=&quot;&quot; sandbox=&quot;allow-same-origin allow-scripts allow-popups&quot;&gt;&lt;/iframe&gt; &lt;/div&gt; &lt;/div&gt;&lt;/p&gt;
&lt;p&gt;In fact, if you want to go all out against tracking and advertising you could also install these Firefox extensions:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://www.eff.org/https-everywhere&quot;&gt;HTTPS Everywhere&lt;/a&gt; - As mentioned above, HTTPS Everywhere is a Firefox and Chrome extension that encrypts your communications with many major websites, making your browsing more secure. It is available for Firefox and Chrome bug due to a Chrome bug has far better stability in Firefox.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://addons.mozilla.org/en-US/firefox/addon/adblock-plus/?src=cb-dl-users&quot;&gt;Adblock Plus&lt;/a&gt; - Annoyed by adverts? Troubled by tracking? Bothered by banners? Install Adblock Plus now to regain control of the internet and change the way that you view the web.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://addons.mozilla.org/en-US/firefox/addon/betterprivacy/?src=cb-dl-users&quot;&gt;Better Privacy&lt;/a&gt; - Remove or manage a new and uncommon kind of cookies, better known as LSO&apos;s (mentioned above when talking about zombie cookies). The BetterPrivacy safeguard offers various ways to handle Flash-cookies set by Google, YouTube, Ebay and others ...&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://addons.mozilla.org/en-US/firefox/addon/ghostery/?src=cb-dl-users&quot;&gt;Ghostery&lt;/a&gt; - Ghostery sees the &quot;invisible&quot; web, detecting trackers, web bugs, pixels, and beacons placed on web pages by Facebook, Google Analytics, and over 1,000 other ad networks, behavioral data providers, web publishers - all companies interested in your activity.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://addons.mozilla.org/firefox/addon/lightbeam/&quot;&gt;Lightbeam&lt;/a&gt; - As mentioned above, visualize who&apos;s tracking you in real time. To get started, click on the Collusion icon in the bottom-right corner of your browser. (You may need to show the Add-on Bar to see the icon).&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://addons.mozilla.org/en-US/firefox/addon/noscript/&quot;&gt;NoScript&lt;/a&gt; - NoScript allows you more control over JavaScript running in your browser. It allows granular control over which scripts you would like to allow to run on any page allowing you to e.g. block JavaScript from third party sites. It really is a very good extension, but it needs to be used with care as this extension is the most likely out of this list to break websites.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://addons.mozilla.org/en-US/firefox/addon/cookie-monster/&quot;&gt;Cookie Monster&lt;/a&gt; - Provides an easy NoScript-style toolbar button for changing domain-specific cookie settings so you can default to forcing session cookies and easily allow them for just the domains where you want &quot;Remember Me&quot; to work.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In fact, there were 798 Firefox extensions related to Privacy &amp;#x26; Security at the time of writing, the four I have selected here are, in my opinion, the cream of the crop. Of course, you may have your own favorites... feel free to let us know.&lt;/p&gt;</content:encoded><author>michael@ratcliffefamily.org</author></item><item><title><![CDATA[What is it like to work as an engineer at Mozilla?]]></title><description><![CDATA[This question popped up on Quora recently. I have been working on the Developer Tools Team at Mozilla for over a year now and would love to…]]></description><link>https://flailingmonkey.com/what-is-it-like-to-work-as-an-engineer-at-mozilla/</link><guid isPermaLink="false">https://flailingmonkey.com/what-is-it-like-to-work-as-an-engineer-at-mozilla/</guid><category><![CDATA[Mozilla]]></category><dc:creator><![CDATA[Mike Ratcliffe]]></dc:creator><pubDate>Fri, 03 Aug 2012 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;This question &lt;a href=&quot;https://www.quora.com/Mozilla/What-is-it-like-to-work-as-an-engineer-at-Mozilla&quot;&gt;popped up on Quora recently&lt;/a&gt;. I have been working on the &lt;a href=&quot;https://www.mozilla.org/en-US/firefox/technology/#tools&quot;&gt;Developer Tools Team&lt;/a&gt; at Mozilla for over a year now and would love to let you all know what is it like. To see this from my perspective I you will need to know a little about my background.&lt;/p&gt;
&lt;p&gt;I have always enjoyed reverse engineering software just to see how it ticks. If you were in the habit of using pokes to gain invulnerability or infinite lives on a Commodore or Acorn computer then I probably helped you cheat. I used to obtain many of my games from magazines because they would send them to me so that I could send them pokes or explain how to complete the latest adventure games.&lt;/p&gt;
&lt;p&gt;A few years later Netscape Communicator 4.0 was released and I was looking at the source. I discovered the &lt;a href=&quot;https://www.mozilla.org/book/&quot;&gt;about:mozilla&lt;/a&gt; page and was impressed by the attitude that they had to open source... after all, the web is the ultimate open platform. I desperately wanted to work for Mozilla but, unfortunately, I believed that Mozilla was an organization full of UNIX bearded academics each trying to show how clever they were. I am not sure where that image came from, but it was very common at the time.&lt;/p&gt;
&lt;p&gt;Fast forward 5 years and I was regularly contributing add-ons and fixes to the &lt;a href=&quot;https://www.oscommerce.com/&quot;&gt;osCommerce&lt;/a&gt; project. I had an online store and as I tweaked my store I shared my changes with the community. I really enjoyed the fact that I was helping make tens of thousands of online stores better every time I submitted a small fix or created an add-on. I made my money working as an admin for over 60,000 users covering hundreds of domains.&lt;/p&gt;
&lt;p&gt;Fast forward 10 - 15 years and I had a problem with &lt;a href=&quot;https://getfirebug.com/&quot;&gt;Firebug&lt;/a&gt;. I contacted Joe Hewitt and he said he would take a look. Weeks went by and, not being the patient type, I decided I would take a look myself. I fixed the problem and let Joe know about it... at this point I don&apos;t think that the &lt;a href=&quot;https://code.google.com/p/fbug/issues/list&quot;&gt;Firebug Issue List&lt;/a&gt; existed but I was surprised how quickly it was fixed in the release version. From that point I contributed Firebug fixes on and off for a few years.&lt;/p&gt;
&lt;p&gt;Eventually &lt;a href=&quot;https://antennasoft.net/robcee/&quot;&gt;Rob Campbell&lt;/a&gt; started to hint that I should start working for Mozilla. Unfortunately, I still felt under-qualified... I was never very academic being able to learn things very quickly for myself but switching off the moment a professor starts a lecture. My &lt;a href=&quot;https://en.wikipedia.org/wiki/Characteristics_of_dyslexia&quot;&gt;dyslexia&lt;/a&gt; and &lt;a href=&quot;https://en.wikipedia.org/wiki/Attention_deficit_hyperactivity_disorder&quot;&gt;ADD&lt;/a&gt; had a role to play in that, and besides, I didn&apos;t have a UNIX beard.&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 458px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/9c36d9913b216a3d4ad0fe3c2734c815/f7c3c/unix-beard.jpg&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 69.94219653179191%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/jpeg;base64,/9j/2wBDABALDA4MChAODQ4SERATGCgaGBYWGDEjJR0oOjM9PDkzODdASFxOQERXRTc4UG1RV19iZ2hnPk1xeXBkeFxlZ2P/2wBDARESEhgVGC8aGi9jQjhCY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2P/wgARCAAOABQDASIAAhEBAxEB/8QAGAAAAgMAAAAAAAAAAAAAAAAAAAIBAwT/xAAVAQEBAAAAAAAAAAAAAAAAAAABAv/aAAwDAQACEAMQAAABp0Skqjif/8QAGxAAAQUBAQAAAAAAAAAAAAAAAAECAxIhETH/2gAIAQEAAQUCpGJpZw/yNeGH/8QAFREBAQAAAAAAAAAAAAAAAAAAARD/2gAIAQMBAT8BJ//EABURAQEAAAAAAAAAAAAAAAAAAAEQ/9oACAECAQE/AWf/xAAdEAABAwUBAAAAAAAAAAAAAAAAAhESARAhMTKB/9oACAEBAAY/AlIolo25f0yRNH//xAAbEAEAAwEAAwAAAAAAAAAAAAABABEhMUFRkf/aAAgBAQABPyFQSVkVlt7EVCr3CrR3teZsPOy7uvs//9oADAMBAAIAAwAAABDn3//EABcRAAMBAAAAAAAAAAAAAAAAAAABIRH/2gAIAQMBAT8Qis0//8QAFxEAAwEAAAAAAAAAAAAAAAAAAAEhMf/aAAgBAgEBPxCsEj//xAAbEAEBAQEBAAMAAAAAAAAAAAABEQAhMUFxgf/aAAgBAQABPxBBMWXog6xCPkjzDSBhEp9O5PM8Q/ToCQAFag5SHonJ3//Z&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;UNIX Beard&quot;
        title=&quot;&quot;
        src=&quot;/static/9c36d9913b216a3d4ad0fe3c2734c815/f7c3c/unix-beard.jpg&quot;
        srcset=&quot;/static/9c36d9913b216a3d4ad0fe3c2734c815/9ac50/unix-beard.jpg 173w,
/static/9c36d9913b216a3d4ad0fe3c2734c815/8d48c/unix-beard.jpg 345w,
/static/9c36d9913b216a3d4ad0fe3c2734c815/f7c3c/unix-beard.jpg 458w&quot;
        sizes=&quot;(max-width: 458px) 100vw, 458px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;UNIX Beard&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;A year or two later the small company I was working for had cash flow issues and I was the only developer working full time so I was sacrificed to the financial gods in hope of helping keep the company afloat. Rob asked me to come to work at Mozilla again and I thought &quot;I have been hacking since I was a kid so why the heck not?&quot; Six months later and a number of rejected job offers later I started work with Mozilla.&lt;/p&gt;
&lt;p&gt;What a fantastic choice it was... Mozilla is by far the most awesome company in the world, no other company has quite the philosophy about openness as I do and to my astonishment everybody there has the same attitude.&lt;/p&gt;
&lt;p&gt;There are at least a gazillion reasons why I love working for Mozilla. I could list hundreds but if I had to pick a few.&lt;/p&gt;
&lt;h2 id=&quot;positives&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#positives&quot; aria-label=&quot;positives permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Positives&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;There are some people with UNIX beards but they are not academic in the way I had feared. Some academics have an encyclopaedic knowledge of memorized facts and really struggle to think for themselves... well, to think outside the box. It turns out that the people here are some of the most creative and intelligent people that I have met in my life.&lt;/li&gt;
&lt;li&gt;I really like the fact that Mozilla&apos;s Mission Statement is something that they believe in and live by. There are too many companies that say one thing and do another... not Mozilla.&lt;/li&gt;
&lt;li&gt;The people I work with truly are the cream of the crop. They are motivated and highly determined to make the Internet a better place. Everything they do every day helps them make it so. They are super smart and always happy to help anybody that has problems.&lt;/li&gt;
&lt;li&gt;Although each team works on separate parts of the browser we are free to fix problems as we find them. If I find a part of the browser that is not behaving properly then I can fix it without upsetting anybody, everybody is very flexible.&lt;/li&gt;
&lt;li&gt;In the last year the number of Mozilla employees has increased dramatically which has resulted in an incredible increase in creativity and output. It is incredibly humbling to be part of it... a day never goes by when I don&apos;t learn something important.&lt;/li&gt;
&lt;li&gt;The culture at Mozilla is amazing. Before I started working here I didn&apos;t really know anybody that thought the same way about open source as I do. Now I know hundreds of people that have the same drive and determination when it comes to openness as I do.&lt;/li&gt;
&lt;li&gt;Mozilla have a unique position in the browser market. They don&apos;t need to spy on you or buy advertising and tracking companies as they are not in the advertising market. In fact, we would love to prevent the gathering of user&apos;s browsing activities. Mozilla have no secret agenda and live by &lt;a href=&quot;https://www.mozilla.org/about/mission.html&quot;&gt;their mission statement&lt;/a&gt; - to make the internet a better place.&lt;/li&gt;
&lt;li&gt;You know that guy at your company that you don&apos;t like? Mozilla doesn&apos;t have anyone like that! Seriously, I have never met a Mozilla employee that I don&apos;t like.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&quot;negatives&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#negatives&quot; aria-label=&quot;negatives permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Negatives&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Because I work from home I sometimes don&apos;t shower until late afternoon.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;That is about it for negatives, there are not many places I have worked where I can say that!&lt;/p&gt;</content:encoded><author>michael@ratcliffefamily.org</author></item><item><title><![CDATA[What is SOPA and why should you care?]]></title><description><![CDATA[I have received a flood of emails today from people asking about what SOPA is and was surprised when I looked online and didn't see any…]]></description><link>https://flailingmonkey.com/what-is-sopa-and-why-should-you-care/</link><guid isPermaLink="false">https://flailingmonkey.com/what-is-sopa-and-why-should-you-care/</guid><category><![CDATA[Mozilla]]></category><dc:creator><![CDATA[Mike Ratcliffe]]></dc:creator><pubDate>Wed, 18 Jan 2012 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;I have received a flood of emails today from people asking about what SOPA is and was surprised when I looked online and didn&apos;t see any places that explains why SOPA would be a very bad thing. The idea behind SOPA is to stop online piracy and this is a good thing but there are some very, very serious consequences meaning the end of the internet as you know it.&lt;/p&gt;
&lt;h2 id=&quot;things-that-break-sopas-rules&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#things-that-break-sopas-rules&quot; aria-label=&quot;things that break sopas rules permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Things that break SOPA&apos;s rules&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Any site that allows users type or upload stuff could be taken down if a user types or uploads the wrong thing.&lt;/li&gt;
&lt;li&gt;Uploading home movies with TV, music, computer game or even a physical DVD visible in the background... you singing a song would not be allowed. In fact, if a cereal box is in the background it would be against the rules.&lt;/li&gt;
&lt;li&gt;A picture of a famous person (could even be a poster on a wall that is part of some photo or video) would also be a reason to take down a site.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Any site breaking these rules would be taken down.&lt;/p&gt;
&lt;h2 id=&quot;the-effect-that-this-would-have&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#the-effect-that-this-would-have&quot; aria-label=&quot;the effect that this would have permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;The effect that this would have&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Site owners will not only be responsible for their own comments and pictures but they will become responsible for comments and pictures that users upload in their comments. This means that every site owner will need to review every users comments, pictures, videos, etc. to ensure that they do not break any rules.&lt;/li&gt;
&lt;li&gt;Facebook, YouTube, Wikipedia, blogs etc. could all become a thing of the past as e.g. Twitter cannot be expected to review over 10,000 comments per minute and YouTube cannot be expected to check 8 years of content per day to see if they break any rules.&lt;/li&gt;
&lt;li&gt;Book reviews, music reviews etc. would become a thing of the past as having one of those things on your site would be against the rules.&lt;/li&gt;
&lt;li&gt;There would be almost no cool new sites and the sites that you know and love would be taken down.&lt;/li&gt;
&lt;li&gt;Basically any site that you can imagine that allows you to upload or type stuff would be taken down!&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Khan Academy have done a great job of explaining the details in this video:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;gatsby-resp-iframe-wrapper&quot; style=&quot;padding-bottom: 56.49999999999999%; position: relative; height: 0; overflow: hidden; &quot; &gt; &lt;div class=&quot;embedVideo-container&quot;&gt; &lt;iframe title=&quot;&quot; src=&quot;https://www.youtube.com/embed/OjAb5zPqAlg?rel=0&quot; class=&quot;embedVideo-iframe&quot; style=&quot;border:0; position: absolute; top: 0; left: 0; width: 100%; height: 100%; &quot; loading=&quot;lazy&quot; allowfullscreen=&quot;&quot; sandbox=&quot;allow-same-origin allow-scripts allow-popups&quot;&gt;&lt;/iframe&gt; &lt;/div&gt; &lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Of course there are more side effects but even the small amount of information above should help you see how huge an issue this is. If you live in the USA then you can sign a petition to stop this &lt;a href=&quot;https://sopastrike.com/modal/strike-modal/index.html&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;</content:encoded><author>michael@ratcliffefamily.org</author></item><item><title><![CDATA[How Browsers Work]]></title><description><![CDATA[Preface Introduction The Browsers We Will Talk About The Browser's Main Functionality The Browser's High Level Structure Communication…]]></description><link>https://flailingmonkey.com/how-browsers-work/</link><guid isPermaLink="false">https://flailingmonkey.com/how-browsers-work/</guid><category><![CDATA[Mozilla]]></category><category><![CDATA[Browsers]]></category><dc:creator><![CDATA[Mike Ratcliffe]]></dc:creator><pubDate>Sat, 29 Oct 2011 00:00:00 GMT</pubDate><content:encoded>&lt;div class=&quot;table-of-contents&quot;&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;#preface&quot;&gt;Preface&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;#introduction&quot;&gt;Introduction&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#the-browsers-we-will-talk-about&quot;&gt;The Browsers We Will Talk About&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#the-browsers-main-functionality&quot;&gt;The Browser&apos;s Main Functionality&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#the-browsers-high-level-structure&quot;&gt;The Browser&apos;s High Level Structure&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#communication-between-the-components&quot;&gt;Communication Between the Components&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;#the-rendering-engine&quot;&gt;The Rendering Engine&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;#rendering-engines&quot;&gt;Rendering Engines&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;#the-main-flow&quot;&gt;The Main Flow&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;#main-flow-examples&quot;&gt;Main Flow Examples&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;#parsing-and-dom-tree-construction&quot;&gt;Parsing and DOM Tree Construction&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;#parsing---general&quot;&gt;Parsing - General&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#grammars&quot;&gt;Grammars&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#parser---lexer-combination&quot;&gt;Parser - Lexer Combination&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#translation&quot;&gt;Translation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#parsing-example&quot;&gt;Parsing Example&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#formal-definitions-for-vocabulary-and-syntax&quot;&gt;Formal Definitions for Vocabulary and Syntax&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#types-of-parsers&quot;&gt;Types of Parsers&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#generating-parsers-automatically&quot;&gt;Generating Parsers Automatically&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;#html-parser&quot;&gt;HTML Parser&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;#the-html-grammar-definition&quot;&gt;The HTML Grammar Definition&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;#not-a-context-free-grammar&quot;&gt;Not a Context Free Grammar&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;#html-dtd&quot;&gt;HTML DTD&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;#dom&quot;&gt;DOM&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;#the-parsing-algorithm&quot;&gt;The Parsing Algorithm&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;#the-tokenization-algorithm&quot;&gt;The Tokenization Algorithm&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;#tree-construction-algorithm&quot;&gt;Tree Construction Algorithm&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;#actions-when-the-parsing-is-finished&quot;&gt;Actions When the Parsing is Finished&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;#browsers-error-tolerance&quot;&gt;Browsers Error Tolerance&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#br-instead-of-br&quot;&gt;&amp;#x3C;/br&gt; Instead of &amp;#x3C;br&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#a-stray-table&quot;&gt;A Stray Table&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#nested-form-elements&quot;&gt;Nested Form Elements&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#a-too-deep-tag-hierarchy&quot;&gt;A Too Deep Tag Hierarchy&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#misplaced-html-or-body-end-tags&quot;&gt;Misplaced HTML or body End Tags&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;#css-parsing&quot;&gt;CSS Parsing&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#webkit-css-parser&quot;&gt;WebKit CSS Parser&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;#parsing-scripts&quot;&gt;Parsing Scripts&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;#the-order-of-processing-scripts-and-stylesheets&quot;&gt;The Order of Processing Scripts and Stylesheets&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#scripts&quot;&gt;Scripts&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#speculative-parsing&quot;&gt;Speculative Parsing&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#stylesheets&quot;&gt;Stylesheets&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;#render-tree-construction&quot;&gt;Render Tree Construction&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;#the-render-tree-relation-to-the-dom-tree&quot;&gt;The Render Tree Relation to the DOM Tree&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;#the-flow-of-constructing-the-tree&quot;&gt;The Flow of Constructing the Tree&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;#style-computation&quot;&gt;Style Computation&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;#sharing-style-data&quot;&gt;Sharing Style Data&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;#firefox-rule-tree&quot;&gt;Firefox Rule Tree&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#division-into-structs&quot;&gt;Division Into Structs&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#computing-the-style-contexts-using-the-rule-tree&quot;&gt;Computing the Style Contexts Using the Rule Tree&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;#manipulating-the-rules-for-an-easy-match&quot;&gt;Manipulating the Rules for an Easy Match&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;#applying-the-rules-in-the-correct-cascade-order&quot;&gt;Applying the Rules in the Correct Cascade Order&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#stylesheet-cascade-order&quot;&gt;Stylesheet Cascade Order&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#specificity&quot;&gt;Specificity&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#sorting-the-rules&quot;&gt;Sorting the rules&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;#gradual-process&quot;&gt;Gradual Process&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;#layout&quot;&gt;Layout&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#dirty-bit-system&quot;&gt;Dirty Bit System&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#global-and-incremental-layout&quot;&gt;Global and Incremental Layout&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#asynchronous-and-synchronous-layout&quot;&gt;Asynchronous and Synchronous Layout&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#optimizations&quot;&gt;Optimizations&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#the-layout-process&quot;&gt;The Layout Process&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#width-calculation&quot;&gt;Width Calculation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#line-breaking&quot;&gt;Line Breaking&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;#painting&quot;&gt;Painting&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#global-and-incremental&quot;&gt;Global and Incremental&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#the-painting-order&quot;&gt;The Painting Order&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#firefox-display-list&quot;&gt;Firefox Display List&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#webkit-rectangle-storage&quot;&gt;WebKit Rectangle Storage&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;#dynamic-changes&quot;&gt;Dynamic Changes&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;#the-rendering-engines-threads&quot;&gt;The Rendering Engine&apos;s Threads&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#event-loop&quot;&gt;Event Loop&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;#css2-visual-model&quot;&gt;CSS2 Visual Model&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;#the-canvas&quot;&gt;The Canvas&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;#css-box-model&quot;&gt;CSS Box Model&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;#positioning-scheme&quot;&gt;Positioning Scheme&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;#box-types&quot;&gt;Box Types&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;#positioning&quot;&gt;Positioning&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#relative&quot;&gt;Relative&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#floats&quot;&gt;Floats&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#absolute-and-fixed&quot;&gt;Absolute and Fixed&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;#layered-representation&quot;&gt;Layered Representation&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;#resources&quot;&gt;Resources&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;h2 id=&quot;preface&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#preface&quot; aria-label=&quot;preface permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Preface&lt;/h2&gt;
&lt;p&gt;This comprehensive primer on the internal operations of WebKit and Gecko is the result of much research done by Israeli developer Tali Garsiel. Over a few years, she reviewed all the published data about browser internals and spent a lot of time reading web browser source code. She wrote:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;In the years of IE 90% dominance there was nothing much to do but regard the browser as a &quot;black box&quot;, but now, with open source browsers having &lt;a href=&quot;https://techcrunch.com/2011/08/01/open-web-browsers/&quot;&gt;more than half of the usage share&lt;/a&gt;, it&apos;s a good time to take a peek under the engine&apos;s hood and see what&apos;s inside a web browser. Well, what&apos;s inside are millions of C++ lines...&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Tali published her research on &lt;a href=&quot;https://taligarsiel.com/&quot;&gt;her site&lt;/a&gt;, but we knew it deserved a larger audience, so we&apos;ve cleaned it up and republished it here. As a web developer, &lt;strong&gt;learning the internals of browser operations helps you make better decisions and know the justifications behind development best practices&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;While this is a rather lengthy document, we recommend you spend some time digging in; we guarantee you&apos;ll be glad you did.&lt;/p&gt;
&lt;h2 id=&quot;introduction&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#introduction&quot; aria-label=&quot;introduction permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Introduction&lt;/h2&gt;
&lt;p&gt;Web browsers are probably the most widely used software. In this primer, I will explain how they work behind the scenes. We will see what happens when you type google.com in the address bar until you see the Google page on the browser screen.&lt;/p&gt;
&lt;h3 id=&quot;the-browsers-we-will-talk-about&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#the-browsers-we-will-talk-about&quot; aria-label=&quot;the browsers we will talk about permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;The Browsers We Will Talk About&lt;/h3&gt;
&lt;p&gt;There are five major browsers used today - Internet Explorer, Firefox, Safari, Chrome and Opera. I will give examples from the open source browsers - Firefox, Chrome and Safari, which is partly open source. According to the &lt;a href=&quot;https://www.w3schools.com/browsers/browsers_stats.asp&quot;&gt;W3C browser statistics&lt;/a&gt;, currently (September 2011), the usage share of Firefox, Safari, Chrome and Opera is almost 80%. So nowdays open source browsers are a substantial part of the browser business.&lt;/p&gt;
&lt;h3 id=&quot;the-browsers-main-functionality&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#the-browsers-main-functionality&quot; aria-label=&quot;the browsers main functionality permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;The Browser&apos;s Main Functionality&lt;/h3&gt;
&lt;p&gt;The browser main functionality is to present the web resource you choose, by requesting it from the server and displaying it on the browser window. The resource format is usually HTML but can also be PDF, image etc. The location of the resource is specified by the user using a URI (Uniform Resource Identifier). The way the browser interprets and displays HTML files is specified in the HTML and CSS specifications&lt;sup id=&quot;fnref-17&quot;&gt;&lt;a href=&quot;#fn-17&quot; class=&quot;footnote-ref&quot;&gt;17&lt;/a&gt;&lt;/sup&gt;. These specifications are maintained by the &lt;a id=&quot;W3C&quot;&gt;&lt;/a&gt;W3C (World Wide Web Consortium) organization, which is the standards organization for the web.&lt;/p&gt;
&lt;p&gt;For years browsers conformed to only a part of the specifications and developed their own extensions. That caused serious compatibility issues for web authors. Today most of the browsers more or less conform to the specifications. Browser&apos;s user interfaces have a lot in common with each other. Among the common user interface elements are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Address bar for inserting the URI&lt;/li&gt;
&lt;li&gt;Back and forward buttons&lt;/li&gt;
&lt;li&gt;Bookmarking options&lt;/li&gt;
&lt;li&gt;Refresh and stop buttons for refreshing and stopping the loading of current documents&lt;/li&gt;
&lt;li&gt;Home button that gets you to your home page&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Strangely enough, the browser&apos;s user interface is not specified in any formal specification, it is just good practices shaped over years of experience and by browsers imitating one another. The HTML5 specification doesn&apos;t define UI elements a browser must have, but lists some common elements. Among those are the address bar, status bar and toolbar. There are, of course, features unique to a specific browser such as Firefox download manager.&lt;/p&gt;
&lt;h3 id=&quot;the-browsers-high-level-structure&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#the-browsers-high-level-structure&quot; aria-label=&quot;the browsers high level structure permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;The Browser&apos;s High Level Structure&lt;/h3&gt;
&lt;p&gt;The browser&apos;s main components&lt;sup id=&quot;fnref-1&quot;&gt;&lt;a href=&quot;#fn-1&quot; class=&quot;footnote-ref&quot;&gt;1&lt;/a&gt;&lt;/sup&gt; are:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The user interface: this includes the address bar, back/forward button, bookmarking menu etc. Every part of the browser display except the main window where you see the requested page.&lt;/li&gt;
&lt;li&gt;The browser engine: the interface for querying and manipulating the rendering engine.&lt;/li&gt;
&lt;li&gt;The rendering engine: responsible for displaying the requested content. For example if the requested content is HTML, it is responsible for parsing the HTML and CSS and displaying the parsed content on the screen.&lt;/li&gt;
&lt;li&gt;Networking: used for network calls, like HTTP requests&lt;sup id=&quot;fnref-10&quot;&gt;&lt;a href=&quot;#fn-10&quot; class=&quot;footnote-ref&quot;&gt;10&lt;/a&gt;&lt;/sup&gt; . It has platform independent interface and underneath implementations for each platform.&lt;/li&gt;
&lt;li&gt;UI backend: used for drawing basic widgets like combo boxes and windows. It exposes a generic interface that is not platform specific. Underneath it uses the operating system user interface methods.&lt;/li&gt;
&lt;li&gt;JavaScript interpreter. Used to parse and execute the JavaScript code.&lt;/li&gt;
&lt;li&gt;Data storage. This is a persistence layer. The browser needs to save some data to the hard disk, e.g cookies. The HTML5 specification includes &apos;web database&apos; which is a complete (although light) database in the browser.&lt;/li&gt;
&lt;/ol&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 500px; &quot;
    &gt;
      &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 67.6300578034682%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAOCAYAAAAvxDzwAAAACXBIWXMAAAsTAAALEwEAmpwYAAADqUlEQVR42lWS309bZRjHz+bExBhnYkzUuLkYZxYSL3QEdGrmnRdemBj5A7wxkbjp9IYlJiRczGUIzFphnYxmILCVHy0t7VZaelq6FgZtOaelp+1ZT3+cFlhLe0rXH0DPj8f3tIOEN/nm+b7f57yfPOe8ByvZ7R/ygUBSCAY3kFJIaR6pTBDpKklulHy+upezg55IUWlhfT1dtls+wtAS8J4r4Nc9FhjXb9gzs/kzINYASAJQleQqof3+ogOq+AJUF6xQc9jh8BlZPq8Eaz7YxS1fykBxdWAahCCIeUqLpa91vl652dtRUfRfrvzVd6mu/t7LoLjZsTk6+ffeoPKKoFT8JOcllO/2//ljfmioO6Me6c3cuPFmHWjv0wC3DGLy8TSmAWh6BNDiBPhkEaBNlgd5L8p0afge5Z87AFrlHEf5MsB5/QZ8PGFJf4A9X4K9dxJKXhASK1rMka9eiEgSRAGABpBo5L1cFYidffDmy4I3V4aIcNgXWVSXMuVx5YinbdpBvYVdgpfqQBZvAO/Eim3aTE2c3RYkXZYXkaQxJl/X/cSONEpnpZmn+5Jum5dms7xgLAKMhTnNP5PEt8MG8osf1PFzdWDICKIMvIjjJ1q0K6c+nXK9e6CvHoTOtJqW3/ndynz39Xzw7HmN87ScX9QunTk1Pv92j5VuHjUlmo+88hNzA+jxeF7cjhS7c7HKvzmmNIA0yMXKg4VEdSAVKd7jmMpt2cu53OeY0u0guX2teyp69hBoQ8CwqQGkl+lX97J8FkroAxVAEgsSbD0pwSZdApbKQyq0AwV2F+AZgMCJIiC7lahQ7dedp49MmLQ9n1Dvedk5F5tymVP+pQdx66O5mNUxG7XhWtpmNzBrdl3E7pilbS5j3OI2xq3uh+y6Wc/clScE6Dp+CNxZbVyKvFQW7mSfLtlS3wAcQxd5TLbDD9MXcBxONOJGpjAwrX9MPX3vqjp87siEB8AiRFU5PqraqEY1HB+67mEsJ/3xWqc/VhlyBnLjZKwyHEjWfkHnjlMU1RkMMzNhmlGHIsx9ilr/tf5juxWTsEuCuEVoMa4WgM3KirhVWoXyHlVmM+73gzkxTLAC2NZyvD8tQIQTVzq6lK+wLEuzbBICfj/PJpOQTCQCMpC39SggaIB9xnULCxTv+cjChNvPTXhIbmx+cfPOG3cXyqOqOZZQzjAulSHlH8GLt9C5F/R6/X8mk4kwGAwuo9FI6nS6IRmoaW9uUv/8zWuarvam/wEd/BFptz29MgAAAABJRU5ErkJggg==&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Browser Main Components&quot;
        title=&quot;&quot;
        src=&quot;/static/7ba7cd1c25f87aa6bacc9cc57edd9689/0b533/browser-main-components.png&quot;
        srcset=&quot;/static/7ba7cd1c25f87aa6bacc9cc57edd9689/991de/browser-main-components.png 173w,
/static/7ba7cd1c25f87aa6bacc9cc57edd9689/e4d6b/browser-main-components.png 345w,
/static/7ba7cd1c25f87aa6bacc9cc57edd9689/0b533/browser-main-components.png 500w&quot;
        sizes=&quot;(max-width: 500px) 100vw, 500px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Figure 1: Browser Main Components&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;It is important to note that Chrome, unlike most browsers, holds multiple instances of the rendering engine - one for each tab. Each tab is a separate process.&lt;/p&gt;
&lt;h3 id=&quot;communication-between-the-components&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#communication-between-the-components&quot; aria-label=&quot;communication between the components permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Communication Between the Components&lt;/h3&gt;
&lt;p&gt;Both Firefox and Chrome developed a special communication infrastructures.&lt;/p&gt;
&lt;h2 id=&quot;the-rendering-engine&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#the-rendering-engine&quot; aria-label=&quot;the rendering engine permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;The Rendering Engine&lt;/h2&gt;
&lt;p&gt;The responsibility of the rendering engine is well... rendering, that is display of the requested contents on the browser screen. By default the rendering engine can display HTML and XML documents and images. It can display other types through plug-ins (browser extensions). An example is displaying a PDF using a PDF viewer plug-in. Here we will focus on the main use case - displaying HTML and images that are formatted using CSS.&lt;/p&gt;
&lt;h3 id=&quot;rendering-engines&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#rendering-engines&quot; aria-label=&quot;rendering engines permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Rendering Engines&lt;/h3&gt;
&lt;p&gt;Our reference browsers - Firefox, Chrome and Safari are built upon two rendering engines. Firefox&lt;sup id=&quot;fnref-18&quot;&gt;&lt;a href=&quot;#fn-18&quot; class=&quot;footnote-ref&quot;&gt;18&lt;/a&gt;&lt;/sup&gt; uses Gecko - a &quot;home made&quot; Mozilla rendering engine. Both Safari and Chrome use WebKit. WebKit&lt;sup id=&quot;fnref-19&quot;&gt;&lt;a href=&quot;#fn-19&quot; class=&quot;footnote-ref&quot;&gt;19&lt;/a&gt;&lt;/sup&gt; is an open source rendering engine which started as an engine for the Linux platform and was modified by Apple to support Mac and Windows. See &lt;a href=&quot;https://webkit.org/&quot;&gt;https://webkit.org/&lt;/a&gt; for more details.&lt;/p&gt;
&lt;h3 id=&quot;the-main-flow&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#the-main-flow&quot; aria-label=&quot;the main flow permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;The Main Flow&lt;/h3&gt;
&lt;p&gt;The rendering engine will start getting the contents of the requested document from the networking layer. This will usually be done in 8K chunks. After that this is the basic flow of the rendering engine:&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 600px; &quot;
    &gt;
      &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 10.982658959537572%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAACCAYAAABYBvyLAAAACXBIWXMAAAsTAAALEwEAmpwYAAAArUlEQVR42gGiAF3/AM7X4/bU2Nz43uHm/8zY57tci9ghy9jrnt/k6f/V2d343OPp9p674U+btuFN2d7k9dfa3vnh5ur/yNbon2ON1CTO2ui33+Pm/9TX2/jT3On2AM3W4fnS1Nf73+Hk/8rW5b9ZhdIoy9nqount8f/c3+L74OXr+Za03lWWtd1T4ebs+Nrd4Pzs8PT/y9nqo1OCySvT3uu76Ovu/93g4vvY4Or56f6BzozMEYYAAAAASUVORK5CYII=&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Rendering engine basic flow&quot;
        title=&quot;&quot;
        src=&quot;/static/71f429bba5ef6fb7bd2221f8082ba20a/0a47e/rendering-engine-basic-flow.png&quot;
        srcset=&quot;/static/71f429bba5ef6fb7bd2221f8082ba20a/991de/rendering-engine-basic-flow.png 173w,
/static/71f429bba5ef6fb7bd2221f8082ba20a/e4d6b/rendering-engine-basic-flow.png 345w,
/static/71f429bba5ef6fb7bd2221f8082ba20a/0a47e/rendering-engine-basic-flow.png 600w&quot;
        sizes=&quot;(max-width: 600px) 100vw, 600px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Figure 2: Rendering engine basic flow&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;The rendering engine will start parsing the HTML document and turn the tags to &lt;a href=&quot;#DOM&quot;&gt;DOM&lt;/a&gt; nodes in a tree called the &quot;content tree&quot;.&lt;/p&gt;
&lt;p&gt;It will parse the style data, both in external CSS files and in style elements. The styling information together with visual instructions in the HTML will be used to create another tree - the &lt;a href=&quot;#render-tree-construction&quot;&gt;render tree&lt;/a&gt;. The render tree contains rectangles with visual attributes like color and dimensions. The rectangles are in the right order to be displayed on the screen. After the construction of the render tree it goes through a &quot;&lt;a href=&quot;#layout&quot;&gt;layout&lt;/a&gt;&quot; process. This means giving each node the exact coordinates where it should appear on the screen.&lt;/p&gt;
&lt;p&gt;The next stage is &lt;a href=&quot;#Painting&quot;&gt;painting&lt;/a&gt;. The render tree will be traversed and each node will be painted using the UI backend layer. It&apos;s important to understand that this is a gradual process. For better user experience, the rendering engine will try to display contents on the screen as soon as possible. It will not wait until all HTML is parsed before starting to build and layout the render tree. Parts of the content will be parsed and displayed, while the process continues with the rest of the contents that keeps coming from the network.&lt;/p&gt;
&lt;h3 id=&quot;main-flow-examples&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#main-flow-examples&quot; aria-label=&quot;main flow examples permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Main Flow Examples&lt;/h3&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 624px; &quot;
    &gt;
      &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 46.24277456647399%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAJCAYAAAAywQxIAAAACXBIWXMAAAsTAAALEwEAmpwYAAAB9ElEQVR42mPYv5+BBYTr6+uZZs6cybpq1X9mBgYGpglN85vn9q39N6V1yQI9PT1uoBgDSA0D+eA/Y1nhOrO0tJmsJGm7coWx9d5dhuldi5o9pu86s2DmnhNlDGbb+LYe21i14dDylfvPb20AqVt86lrzirPXz8w5cMEQxJ955gzQN6uYIS5nYFq1ioEZRDNcv8m84vZNhrmdy3uc5x44f2P23rNTiru7xQ5e2LRv/+lVj45e2lwL0jT70NW86Xsvbpl55JYy0d7///8/I4hecOy89OyDl1O6N50vnbL3ph0DQyjz2t3LvJftWJa798xap7SZByUXHbucPA+kZstR+QcP2LxvPxDIufdE2A/JMAZGmBem7z/vsODIxf9LTl79P//4tZVtC5a7AV387/TNrf93n93cGN+7y2LJiUu/5x2+8LNv87bo5y+Zjr14zfn/2Qv+Mzhdm7XqCk/mtFNK8/ff59i5cxH3sj0bxWduWipy5gwokv4zXnj+n3snENfX/2f690+F/f9/UZ799+U5GE5fltl2/qro5blb8xLnHrpxduGxC3vyJqzV2X92/b69p1a9OXxpWxfEB9AwgwQLI5LdjCguefKM49+te+y35m7LtZ+683zDtD2nCmZv3my278z6eRv3L1545Op2W3Ak/CcuDQIAMnL/bj9wex0AAAAASUVORK5CYII=&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Webkit main flow&quot;
        title=&quot;&quot;
        src=&quot;/static/85a66640e7f1d9b94421884d454cad12/39c09/webkit-main-flow.png&quot;
        srcset=&quot;/static/85a66640e7f1d9b94421884d454cad12/991de/webkit-main-flow.png 173w,
/static/85a66640e7f1d9b94421884d454cad12/e4d6b/webkit-main-flow.png 345w,
/static/85a66640e7f1d9b94421884d454cad12/39c09/webkit-main-flow.png 624w&quot;
        sizes=&quot;(max-width: 624px) 100vw, 624px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Figure 3: WebKit main flow&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 624px; &quot;
    &gt;
      &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 46.24277456647399%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/jpeg;base64,/9j/2wBDABALDA4MChAODQ4SERATGCgaGBYWGDEjJR0oOjM9PDkzODdASFxOQERXRTc4UG1RV19iZ2hnPk1xeXBkeFxlZ2P/2wBDARESEhgVGC8aGi9jQjhCY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2P/wgARCAAJABQDASIAAhEBAxEB/8QAGAAAAgMAAAAAAAAAAAAAAAAAAAIBAwX/xAAVAQEBAAAAAAAAAAAAAAAAAAABAP/aAAwDAQACEAMQAAAB3FWwJGJ//8QAGBAAAgMAAAAAAAAAAAAAAAAAAAIQETH/2gAIAQEAAQUCixhcP//EABQRAQAAAAAAAAAAAAAAAAAAABD/2gAIAQMBAT8BP//EABURAQEAAAAAAAAAAAAAAAAAAAEQ/9oACAECAQE/ASf/xAAYEAACAwAAAAAAAAAAAAAAAAAAICExMv/aAAgBAQAGPwLRBSf/xAAbEAEAAgIDAAAAAAAAAAAAAAABABEhMRBRgf/aAAgBAQABPyFu9IKYGBlu039Of//aAAwDAQACAAMAAAAQc8//xAAXEQADAQAAAAAAAAAAAAAAAAABEBEx/9oACAEDAQE/EDsX/8QAFxEBAQEBAAAAAAAAAAAAAAAAAQARUf/aAAgBAgEBPxBaSPb/xAAdEAEAAgEFAQAAAAAAAAAAAAABABExECFBcZGx/9oACAEBAAE/EEaUUmyEKGcgCkgwNfkyyw9v3T//2Q==&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Mozilla main flow&quot;
        title=&quot;&quot;
        src=&quot;/static/b074db49562b1d3d2416c22b624c574b/a3695/mozilla.jpg&quot;
        srcset=&quot;/static/b074db49562b1d3d2416c22b624c574b/9ac50/mozilla.jpg 173w,
/static/b074db49562b1d3d2416c22b624c574b/8d48c/mozilla.jpg 345w,
/static/b074db49562b1d3d2416c22b624c574b/a3695/mozilla.jpg 624w&quot;
        sizes=&quot;(max-width: 624px) 100vw, 624px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Figure 4: Mozilla&apos;s Gecko rendering engine main flow&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;From figures 3 and 4 you can see that although WebKit and Gecko&lt;sup id=&quot;fnref-9&quot;&gt;&lt;a href=&quot;#fn-9&quot; class=&quot;footnote-ref&quot;&gt;9&lt;/a&gt;&lt;/sup&gt; use slightly different terminology, the flow is basically the same. Gecko calls the tree of visually formatted elements the Frame tree. Each element is a frame. WebKit uses the term &quot;Render Tree&quot; and it consists of &quot;Render Objects&quot;. WebKit uses the term &quot;layout&quot; for the placing of elements, while Gecko calls it &quot;Reflow&quot;. &quot;Attachment&quot; is WebKit&apos;s term for connecting DOM nodes and visual information to create the render tree. A minor non semantic difference is that Gecko has an extra layer between the HTML and the DOM tree. It is called the &quot;content sink&quot; and is a factory for making DOM elements. We will talk about each part of the flow:&lt;/p&gt;
&lt;h3 id=&quot;parsing-and-dom-tree-construction&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#parsing-and-dom-tree-construction&quot; aria-label=&quot;parsing and dom tree construction permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Parsing and DOM Tree Construction&lt;/h3&gt;
&lt;h4 id=&quot;parsing---general&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#parsing---general&quot; aria-label=&quot;parsing   general permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Parsing - General&lt;/h4&gt;
&lt;p&gt;Since parsing is a very significant process within the rendering engine, we will go into it a little more deeply. Let&apos;s begin with a little introduction about parsing&lt;sup id=&quot;fnref-2&quot;&gt;&lt;a href=&quot;#fn-2&quot; class=&quot;footnote-ref&quot;&gt;2&lt;/a&gt;&lt;/sup&gt;.&lt;/p&gt;
&lt;p&gt;Parsing a document means translating it to some structure that makes sense - something the code can understand and use. The result of parsing is usually a tree of nodes that represent the structure of the document. It is called a parse tree or a syntax tree.&lt;/p&gt;
&lt;p&gt;For example - parsing the expression &lt;code class=&quot;language-text&quot;&gt;2 + 3 - 1&lt;/code&gt; could return this tree:&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 400px; &quot;
    &gt;
      &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 38.72832369942196%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAICAYAAAD5nd/tAAAACXBIWXMAABcRAAAXEQHKJvM/AAABvklEQVR42mNgQAf//zOCcP3+/Swg7oxtu5zXH73xedG2k2/nbTz8dvmec+83HLv1pmv1aj2QfOiqVcwwPWCMBuAC/1f9ZwbRM7cccNx47O7jpbsu3Jm36fidtQdv3F139M69vo0btSH2/2diIAGAXMmOKVzPxBAayoxTF8yWyZu2W24+cffhsl1nby7efurmqn1X7m48cevWtA3bDMHGILlm1aFL87ecuPtkybbTN4Dqr289ce/5yoMXpqIYOG3bLotNx+8+X7L9zKM5Gw49Wr3vyuONx+88mrxpjxHYEGB4/YeG06oDFxdvOHb73bwNhx8s2Hr8wabj9z6sOHhpFkNUe5Rg/fp6gY7dHfy+rXnizhUBwh4Tc9nj98/nsK+P52CwCOVksLdnwfAWUEwm1IIzfn49BwjLx9tz2IPUbTv9+P/Crad+Ltp6+seuCy//rzxwZQ9I/Zkz/1lB9MKdx+KBsfpo4ZYTF2etP3h53eGbN1Ydunywc84cXqjvUGN247Fbp+dsPHR03qbDR9YfuX5h+d7zUyHeu8IGohfvOVGw8/yj/0t3nvo0f/PhLxuP3/q99ujVhx2rZvJjMxAAQNT55Nh0hL4AAAAASUVORK5CYII=&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Mathematical expression node tree&quot;
        title=&quot;&quot;
        src=&quot;/static/bc20d504cc8b45e7a4a8d99cab39019e/e17e5/mathematical-expression-tree-node.png&quot;
        srcset=&quot;/static/bc20d504cc8b45e7a4a8d99cab39019e/991de/mathematical-expression-tree-node.png 173w,
/static/bc20d504cc8b45e7a4a8d99cab39019e/e4d6b/mathematical-expression-tree-node.png 345w,
/static/bc20d504cc8b45e7a4a8d99cab39019e/e17e5/mathematical-expression-tree-node.png 400w&quot;
        sizes=&quot;(max-width: 400px) 100vw, 400px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Figure 5: Mathematical expression node tree&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;h5 id=&quot;grammars&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#grammars&quot; aria-label=&quot;grammars permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Grammars&lt;/h5&gt;
&lt;p&gt;Parsing is based on the syntax rules the document obeys - the language or format it was written in. Every format you can parse must have deterministic grammar consisting of vocabulary and syntax rules. It is called a &lt;a href=&quot;#context_free_grammar&quot;&gt;context free grammar&lt;/a&gt;. Human languages are not such consistent languages and therefore cannot be parsed with conventional parsing techniques.&lt;/p&gt;
&lt;h5 id=&quot;parser---lexer-combination&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#parser---lexer-combination&quot; aria-label=&quot;parser   lexer combination permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Parser - Lexer Combination&lt;/h5&gt;
&lt;p&gt;Parsing can be separated into two sub processes - lexical analysis and syntax analysis. Lexical analysis is the process of breaking the input into tokens. Tokens are the language vocabulary - the collection of valid building blocks. In human language it will consist of all the words that appear in the dictionary for that language. Syntax analysis is the applying of the language syntax rules.&lt;/p&gt;
&lt;p&gt;Parsers usually divide the work between two components - the &lt;strong&gt;lexer&lt;/strong&gt; (sometimes called &lt;strong&gt;tokenizer&lt;/strong&gt;) that is responsible for breaking the input into valid tokens, and the &lt;strong&gt;parser&lt;/strong&gt; that is responsible for constructing the parse tree by analyzing the document structure according to the language syntax rules. The lexer knows how to strip irrelevant characters like white spaces and line breaks.&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 101px; &quot;
    &gt;
      &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 297.029702970297%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAA7CAYAAAB7c6ruAAAACXBIWXMAAAsTAAALEwEAmpwYAAAJX0lEQVR42uVYaWxU1xUelkJSI1WpWqFKLa3aSiQopbSghhJSqxEg2hKkIFmNCBCJxcGgpKJpymLDgI3x7uAd4x3v492e3cuMPbbHnsXjZWyPZzyrB8YLXvEy47ecnjczNgYcamj/VL3Sp3fuved999z33v3uuY/F8pamnvF6vYMk+uyLE4jpV0G/fXFc76Cgou1R2BIfq10/3T7uAjCP0eTQBIDlMWN7YBl7aj8Prx8xTQEI1CPfLBNKe6bk1kmAHitFtPWO071DBK1zAN3/EOg+O9C6R0APODxg2pk6A63NjUX7DEC5fCR2mbBWM9lmnQaobR8iMzj1UCrqgipJP9Q06aFOaQeR3AqFXMVye0WdFkpEnZBVKoVOCxDmKYDiZsfTCPmqyTb9OACvxUamFUkgndMEMfcrILWwHrLKWiE2rRJyKuWQklcPManlkFEig8QcHqQXS0AxCMQATj1fuoKwun2qrdMOIOujyLrOGWjqc4FUuwCNWhc0dM+j7YJmHe1GY68L+wmQ6SiQoo33EN3DANn1KwhLW6ba2s0A9T00KekDaNDSy3DXe5k+L7RAM37YR2I7hf0u9UOArIaxp88wr3Gytb4foEZNElw1RXM7wAO0eR0UyYCvAUqMhBI9QOMgDjIAINICcDuBqNUB3K22P40wXz6plNkA+DhyTRdAdYcH3G78HDA6IQ5WifXshmlnQrVNG5bbVXgtpSkkIKzK/2RQzrFjXyb++Y/+Ib9YJryc0nYjsnhQEVf5yJDIG5tKEU46k4UTznjuyOPYMqvmRkZH2Wc3S0P3+f1jF7r7sNZY1iG+t/W9v/5s95Grb+85+vX2t35+YBvTsfuz6Ld3Hw/PW3IEgPV+HNjAZsN6Fpu93nvvOtZKB8S650dge5xZf7n04NcfnEvirRj4lYtnRC/hH/wTfrXvdHwN6z8u/1uEZ+K4/zVC39PJ7+4/E1/1eiSH4zazfLPeYPmy32AdSf0u07Tr1Dd/2nMiuvdHR9g/YO1O/Q5rb8ybHh+EP9ZfLN5P5seX3pRqp9rUpvmRTith7TA7h7qsi1a57skoH6VNbXba1aaFIY3FNaQyLlg05oWp8hZ77NKn9yLhDy9s0dqctmkSQKE1U8bheTAOE2AaJUBnnQHDIyfYUOZUqLr96LWALA3dwzlewg0vEm79ykfWN2exoQJnlojItAIBHZdeRsemcui4tBLIrWjEegl9Jy6Tbu2dJOyzuMbljuxvJ9z5lY+kZ8GqG0VhaDZShTwNiq4FuDIz8FttUNVoAI6wG5XcCHKdkzTg/lPaMvpyQlGny6q2ALQNEpQaFUiJOqly12lQoM20MVf5IEX2OAAKm15GuPWED09DWkUdcxCVJqAKRINQWGeBArERUorbgSOxQC5fB9k1WsgTG0glkmdLXkp40KdSBeYHQisERhcv3k4RkKEpfPJqVBEVlSmlrseUkMGJXPJmfBV5557AhbOHjPrxLOZWzqqEvhe25MtdNgwAytQkVaIkoURJQG6jE4rkLkgXW6C4nYKiNgIKWl2kGJX7Xt1YziqE3uLL3nguuPKTgNu88+dvV58NCOP7X4qpO3E8qCTm6KWsyssJsuMXwgWfXwgXnrsYIT57PpR38eRVjq93yuvWvPR++0nIh7v8bl1jbD8/zoZXWnkcVOIl+Keq3Mtq36nYQ3tPRbM9Y2g3rfRhP7tC/l2Angj3Ho888N6n4ddfK8JVCU9GHvjdpxE3XosQH+7GJeDL3sS0Hfo84aDv6Zggxtbr6c0rfbxY47T9/NzRbD9y/aPtH12PfZUIPa/8l19slvRM5qmMcxKVcV7UbSNrOy0LPH6bXVtQqxvV2im+0jBbqzDMilUIpXFeoBica61WOC6urocoX/pRlw1FBB5OuSil9iGMzAEMY4N9goJBxxw4ngCMzAOMIrCPwDwVWg0TyasT4lpuHXCa9ag2GpOLSMqupLI4tVRaoYhOyCilk3OqqYwiMYVSRuVXt1C6YXAZUXH4qvGE1QlRbRr7nNZeVBGViaLKG/rgPuaIHEwuuTIDVEoHIKeiGQq4KqhGKdNYMTdEwa1qH0/8VsLaLqdHvgyUW74UJhIljAa1FdzXjiFwg6nL9UB04+ClrS8hrFEtWBlZyihXUQViPZTLhoGnmIYCoRHyRTrgtY9Dcb0ViupMIOyYI1R2Jnt9/G2EJ3xK5U6TCGXpSkSe6+s72QTKFxEUW0hciyogbiVUETfjK4hbiJCkKiKZo1mQmXBw8Wj86oQ72FvKNC5bLcpSdZeTKlPOQUWHE/KbZqFcTUJOgw3yGkehVEFAqXIR4SSaccoZ0omU1b/GHexNf0+SB165r7x7La0rKjCzJ/pauib6Rk5fVFB2dwRjB6Z3RTPtzPVqZmfkP++1J128K/14rQvRHfk7xwJ/+s7RoMDXEgRmb1hCqgrc8nX4i5zf+Abc5z/fv4S1S5hXbX6Puc37p+Mr/4/yw/1nkna+/6r5IbNrSSSwcSXYHK1bYA8HpO384GyiOz983sftx17lpay6DXoj3H6UveddvzsSNNevKTLmmlTR8xNZ33REi24mUm12IYjIZu1ElMq0cLtYOsgJzmiYaOyevNs68CSc8WHQ3D8d3tI/nZAmNBx+5rtjriLN2C0m35skgDQ4ZjEvXIAZPKlPLgI8dgKModBOoJqOe/HYSTO+tH2GgNC0uoNLbO7oDrGF31cMLlgMuC4NI+C69wAXflY5UVApc6NCrCKzimvp5k4HoXcA0WujiN4hcJpRC/mKR9zlmS7lI5yWkQsD+A9BbaJJFE2oqO+FGhTQ+MwqqJbqoIivhuQHfJD1TEGnlfEDWmMGmtHN6Nzmo54EYXnz2rFJ1DXX0YVn3tYBipIPeHJCJcoScwNjK0xMjkijoDJAPx1FddkZpR5TIcHGZza6FL7tY/y1ABI8TDMH7kY8yjKCmpgvA27bBAhVMyDSzKGYzoK0z+2HJ3kgW4wAsSWd55fSl+WXUtg8LcBZ4W8SyiXAg7ZQA2SVfJZMLFKT4ali8kr4AxIFlQy/LyZxayH5HeQiPhEoap4ybdsf8NYzehpWNvQhDztFfUALemkQYgQM+FoKyhWzUIaR5jaMocSPQ6FsAsQ6pp8mpfgoIooHbr6QF/4tsf3LkHx9c3CejhucNyBYidAiI8IkCPMitNAoCM4d4Ifk6YXs7N5qv8ucbc8viH8BFL9aEVsJ2lsAAAAASUVORK5CYII=&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;From source document to parse trees&quot;
        title=&quot;&quot;
        src=&quot;/static/175e3c1dd7246701c39c7ad7f841ddc4/2c66b/from-source-document-to-parse-trees.png&quot;
        srcset=&quot;/static/175e3c1dd7246701c39c7ad7f841ddc4/2c66b/from-source-document-to-parse-trees.png 101w&quot;
        sizes=&quot;(max-width: 101px) 100vw, 101px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Figure 6: From source document to parse trees&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;The parsing process is iterative. The parser will usually ask the lexer for a new token and try to match the token with one of the syntax rules. If a rule is matched, a node corresponding to the token will be added to the parse tree and the parser will ask for another token. If no rule matches, the parser will store the token internally, and keep asking for tokens until a rule matching all the internally stored tokens is found. If no rule is found then the parser will raise an exception. This means the document was not valid and contained syntax errors.&lt;/p&gt;
&lt;h5 id=&quot;translation&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#translation&quot; aria-label=&quot;translation permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Translation&lt;/h5&gt;
&lt;p&gt;Many times the parse tree is not the final product. Parsing is often used in translation - transforming the input document to another format. One example is compilation. The compiler that compiles a program into machine code first parses it into a parse tree and then translates the tree into a machine code document.&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 104px; &quot;
    &gt;
      &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 384.6153846153846%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAABNCAYAAACmCEQyAAAACXBIWXMAAAsTAAALEwEAmpwYAAAMQUlEQVR42s1YaVBb1xnFduqs/dFJm7aZTtN2Ou1kmbRxplmaxUmaTNu0nU6mwUlTJ02zkK1tmqRxYiexHG8sAmMbDAZsFoNZxCpACEkggdhBOwKJHa3sBmPM9vR0+t0nAbKHxHaSzuTNnPnuu/e75937lvPOvWFhdBQ1ej/S9Z+f0/XPDRPcVwp935yD4myuxvEO4wtTmcdj5wC4p8C5pykSPMHoOhOI62KtjTvnB2Qdnk8FQmnLqNh7HrB7+WWbh/f3eOHvdsNvp9gzEogMNs8aQut6R7DsOgsUad2iAGHHGbF9DMiXtXMdPXNo6Z6B2eFDm30WTZ2TaO0+K9SxWCjXU90U9H3zULUOC2izzXKDNNKCes8egbCoeVJsI8L4E6VcXGoxjqRLcVKiwVGKiVlVSM1XIyFThkJlJwqqzcgsaURcSjEOpRUj5lgeknOUXM8EcFoTJMzVjostI4BEaePy5F0oqx9GXpUV5Q0OyFu9KKrtg5Tq6q0LyK/uFs6L1f0oqukVYnmji7PSgLJUQcIs9bjY6AGa+8A19wNNvVQOxsYeP5r6WAS0tmB98LyxFzzB12DDYusgkFbt3C0QnlSNi1sdgMLs45RmHkqLH0I0+y+AwsT7FSbOpzDzXI0FvLoLqLPThXrAGWmE6bUjgaecqhgX19GVKwxYIHAVet63CjqvNICXm4Fa6qyhPCWNtLidQ7b6zHy6YsxzvNJlT5QO9u9Ka40QCOPLx2JrhoCqbnB0CyGzBlBFZTl1LjeDz9Eu+I5VeF37sztL/x1b9eG2d5KfvPXRV24Pu/67NxHFDYRrCJsEwsdfjr81Yl/Zu+8nNSWIMixl+3N7Gw7mDzTty7HXfXLSmLZ9T2nxoy/F/pdSrw0DNoR9gYN12rh1q+gqdnLPC3GR9714eBcrS6zYTB/VJokEm0Qi0cZgbijooKuyBFx0dQl1ZPHhV4/FPPBS4sesvHKRLzLCDXffHfENdvLgy4lRX5YwLLTz15/wgZcTYh74x9FPvhAhezCEjQwSq2SzQPJaUtQjrycFnrJEsnmlPYjLf43CwyXCU75jW2Tm7U8fSA6tu+TBXhtByprc7xmG5nv0g/Nt+oHzerNjsa2yxTEpa3VOsDKrMwzO6yinTTdwvreg3vF66CsWOlWhQt05mrBMJ2Nz4MbnAQYqC1g5D4JbpDyFyX2A9dMAV61LWNYyEj88Q7+DUSySxPusLr+v08n7rU74u9zwMbC6Lg8WmUoXNwUURqP5DMLi5rHDA0RYrLJyqnYPzC6go38ZHX1LaO4+B/0gB8OQD+29C1wv/aTytSN7P5dQop04bB0F9sRmcHFp5RAfL8Gx7Bocy1Ei8ZSSfhMVOJJRhZS8es4+BZxSez6fMEczcbh9mH44qgGuSDOEQ+kqlGrdOFGiQ1pRByS1/dgdl4O4E3LOTKJ6QnkJwjT5SLyWRFTViSUF6WBNF/hqM88rLPCrrOAZSptn+ML6yaV6yjsu83z+PUyrGT/a5CZhJbGl/xGquwKQd66VlaTcKpL9Rrq/xxWe/esSrryHu05YPogrcQ3FljiNsSUuS1yp2xxT5OjadcIwxcqsLgDW7hz+MM34z9D+6x2bg5J+fTBu/tH9z91y59O7s6l8XbD++tD2K/quWXzqveKbHnjxUEbYV3AIhPdvF9903/PRX3PCe7fHZF5594AWbliX8PmYE19sTOEkqn9MuY7itWF3i+ipYuNt4eLbtjwbqfrhc0nfCvtd1dWr7SH4fkT5daKMoWtWhiaMJDxRc0OTbbbZ4lgaMzuWHLYRuKyuZSdp4FitccxnHl70WF2c0zS86AqFxbHoaO+bmzpU2PHnC/6/hVrnX73nAO8M+B73HMpVbehxz2N40g+bcwGOSR/6R5bhnApYZQYq81MLgG5gZvjmX7114wWz1XafaxiipJ4x+JQtA9gdmYBjmWU4nCbxZxaqkZhRhsT0Uuj750F6CNJJWJ28b4h0MUve/Unwkwv8I9KqB54wkKUzDMJvcsCvtcygzjRCjtVAMEJDfi1b2obS2m7SRD9pIhsVCS8R11lnJ598M/GWla9ho+CzdTOFneRim3v8vhYymq39DDx01NFIYtFO0URRN8xyAJbDcgPOdTApVGDC9uZ23aWwLC4zh6q2wq+2+tFAnVIK20kHDShvnoS0eQJlTeOQ686hLpinJdWR6eeWXo8svIvxiESBwYWl10wdqSebW2Xkl+VGnq/Sc4IOppfb+LjMev7jQwX+vQlS/47ITD5T1seTVvIyA7fcQLM4qXBJQ7/7sP+c7PlJqWnpbA0Rktn0CxpIUNAopIYFFHfMo6Bxihw+oW4aUuMya/MzlJNtfju+/reB1zf4v37jUMOf9ud0Nx043VO1/7RdsQab4mBen1Jc5Kh4/3jHwAep+t5DpZ6Kg3k9SmqTH8jt1XyUqktbT742XcrbbHkuKuoX2/ata5auyIqsyPrWiKTora8kfXyx1ONK7fGXsXMbmF++GOHhos0XE7K69XLX/PX/wx+KTtu/vTPbcJsoz/Szj7PNP1/Bjiz9ramayR88/tbxqifeSinN1Z+/mdWF5rA+rO+HCW1rwlDZPhrtPsfWy9wCgQtF76hv2eqc5xhY+eJ2+wi34JylxVGrd/cqocI8GUt8cM2AI8A1/dlwXhRJwjhae6NaP7Z3lbCsZVzsJEbzMMdZXTzsJBLdXgjRRpFJFdk44ZxsHqxUtgXbuj3gHLNrtk448htHxczCpRc1coVKKzSmKdSZp1GjG4PWOouKhgFUNTugNk6iSNkFZfuIkFOrn6C8M1wfjTS/PoQwWz0itpEKF6rsXFJuDY5mKiESZ+Iw2Tbx8VLEkKWLP1kJUWym0BabUoaY5BIcTJAwi8d1TZKtqw0hzKgZFetoGpXtZ7mK1imUaD3Iqe6FrH0aErUD+bRUzVMNCrFEO4rCOhdOK/oFOStrHuPanTQ7VQhhSvVojIapjQmLtKXgI+vmo5n7hHInlUmuGFiZta22WwQssr7J8pE9q4TJtZNxDXTjZWThaM0MWVcAQpkgpcV3ZWegLFtpX8vjaEJIVk+sPeW34mqe+iC5NXNHcksixaQV7EhqTd6V2nH4hT1Sw5tiVenOVN2RHUktyRfkBPpkviFW/eEyFj7hgrTdtW1P5JZnPn0o8FmJNl7607twqbWKFJ1OWN7e93ex+MFX47YGc6/C+vkbLnuE926Pirnnb9GXP8KvlJD96NnU1oMoI0MwP79+MTb24Yi4R1n5X1VVV6+Xu/qTupwR/nLbvqgtzxy4vBGKpfYf59a7Hsur8zyUX+99OL/eKSCHkKUe3FptnLnn6ffTNRFRJaLmYWzJUPU9klNL7bUsz/sw65endv9GXNQVsCLVhvHoGb8gRxyTJA8ph/tsACNzAQxOciRtPJM3jNI+I3NorN5xJtCPqiE3jgU+vco2b/QErVP7R8EN0pZdVkEVlI0WlCnaYeiZgqnvDMqqW1HT3O1vtbjRSI5KZxtHq8ULlj9A/Vj/irbgt1zS4I1mikt6xzF9EydmISbhFNILVDhwKA2pOZU4VVyHw6m5SMmuQHJWGeVkI7tUK+hjl4vnmJau6mEhEbJ1r9kBjoAGywTqTWMUSe86vFDrvGTrxtFknaL6cdrpnBZiY+c0LC4myjQzmnNhQ5AwT+ONttPQOwbAEci+kfcjy9Y+wKGxaw4W+vBpprRm5mF0+mEiqdJTu35I6CP0s5Me5q4IbJbKG20RfCFtRrJNRhuPNko8VW6kHc8eFNBKsbh2ACn5WmRJDahs8qKlL5DH8lm/ztEQgU1XeqM76Kq0uchpupjvI29IZjK1sANZlVZEHS/HwaQyRKdUYE98HrLldpAv5NWdPp/GyvvqurDQRrcqvWY0sEOcLHNHsfWxnHYtSVDBQAKKio7zKNCMobhh2l/WMusraZxeqmg7T/5xESy/YXAVnIGmnKkN6mEyqXUdTbFCjyWpzu+T6sAxlNPOpswEX5WZvGC3sD5GhQnIrju7kCJz98YX9qojs005e062JexKqj/6eqT0MYFwd6ZlZ5pqBqe0iz5JB1BqDKBYTze62Y805czCkVKnfXe6Ljtib1HEg+Hv3R32vZ9+5/Ns4HV3PvHSHX95O+X3L4okr7wWJdvxxkH5zoh95e9u33nq2XsZQdiN3/yM5S/TQbbvuGnFX/8PlOFLWN4wj04AAAAASUVORK5CYII=&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Compilation flow&quot;
        title=&quot;&quot;
        src=&quot;/static/adedd28fadec708cb4e0c8dd5d24448c/c6fc0/compilation-flow.png&quot;
        srcset=&quot;/static/adedd28fadec708cb4e0c8dd5d24448c/c6fc0/compilation-flow.png 104w&quot;
        sizes=&quot;(max-width: 104px) 100vw, 104px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Figure 7: Compilation flow&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;h5 id=&quot;parsing-example&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#parsing-example&quot; aria-label=&quot;parsing example permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Parsing Example&lt;/h5&gt;
&lt;p&gt;In figure 5 we built a parse tree from a mathematical expression. Let&apos;s try to define a simple mathematical language and see the parse process. Vocabulary: Our language can include integers, plus signs and minus signs. Syntax:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The language syntax building blocks are expressions, terms and operations.&lt;/li&gt;
&lt;li&gt;Our language can include any number of expressions.&lt;/li&gt;
&lt;li&gt;A expression is defined as a &quot;term&quot; followed by an &quot;operation&quot; followed by another term&lt;/li&gt;
&lt;li&gt;An operation is a plus token or a minus token&lt;/li&gt;
&lt;li&gt;A term is an integer token or an expression&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Let&apos;s analyze the input &lt;code class=&quot;language-text&quot;&gt;2 + 3 - 1&lt;/code&gt;. The first substring that matches a rule is &lt;code class=&quot;language-text&quot;&gt;2&lt;/code&gt;, according to rule #5 it is a term. The second match is &lt;code class=&quot;language-text&quot;&gt;2 + 3&lt;/code&gt; this matches the second rule - a term followed by an operation followed by another term. The next match will only be hit at the end of the input. &lt;code class=&quot;language-text&quot;&gt;2 + 3 - 1&lt;/code&gt; is an expression because we already know that &lt;code class=&quot;language-text&quot;&gt;2 + 3&lt;/code&gt; is a term so we have a term followed by an operation followed by another term. &lt;code class=&quot;language-text&quot;&gt;2 + +&lt;/code&gt; will not match any rule and therefore is an invalid input.&lt;/p&gt;
&lt;h5 id=&quot;formal-definitions-for-vocabulary-and-syntax&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#formal-definitions-for-vocabulary-and-syntax&quot; aria-label=&quot;formal definitions for vocabulary and syntax permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Formal Definitions for Vocabulary and Syntax&lt;/h5&gt;
&lt;p&gt;Vocabulary is usually expressed by &lt;a href=&quot;https://www.regular-expressions.info/&quot;&gt;regular expressions&lt;/a&gt;. For example our language will be defined as:&lt;/p&gt;
&lt;figure&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;js&quot;&gt;&lt;pre class=&quot;language-js&quot;&gt;&lt;code class=&quot;language-js&quot;&gt;&lt;span class=&quot;token constant&quot;&gt;INTEGER&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;9&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;9&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;*&lt;/span&gt;
&lt;span class=&quot;token constant&quot;&gt;PLUS&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt;    &lt;span class=&quot;token operator&quot;&gt;+&lt;/span&gt;
&lt;span class=&quot;token constant&quot;&gt;MINUS&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt;   &lt;span class=&quot;token operator&quot;&gt;-&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
  &lt;figcaption&gt;Example of our language in BNF&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;As you see, integers are defined by a regular expression. Syntax is usually defined in a format called &lt;a href=&quot;https://en.wikipedia.org/wiki/Backus%E2%80%93Naur_Form&quot;&gt;BNF&lt;/a&gt;. Our language will be defined as:&lt;/p&gt;
&lt;figure&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;js&quot;&gt;&lt;pre class=&quot;language-js&quot;&gt;&lt;code class=&quot;language-js&quot;&gt;&lt;span class=&quot;token literal-property property&quot;&gt;expression&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; term operation term
&lt;span class=&quot;token literal-property property&quot;&gt;operation&lt;/span&gt;  &lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token constant&quot;&gt;PLUS&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token constant&quot;&gt;MINUS&lt;/span&gt;
&lt;span class=&quot;token literal-property property&quot;&gt;term&lt;/span&gt;       &lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token constant&quot;&gt;INTEGER&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; expression&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
  &lt;figcaption&gt;Language definition in BNF&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;We said that a language can be parsed by regular parsers if its grammar is a &lt;a id=&quot;context_free_grammar&quot;&gt;&lt;/a&gt;context free grammar. An intuitive definition of a context free grammar is a grammar that can be entirely expressed in BNF. For a formal definition see &lt;a href=&quot;https://en.wikipedia.org/wiki/Context-free_grammar&quot;&gt;https://en.wikipedia.org/wiki/Context-free_grammar&lt;/a&gt;&lt;/p&gt;
&lt;h5 id=&quot;types-of-parsers&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#types-of-parsers&quot; aria-label=&quot;types of parsers permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Types of Parsers&lt;/h5&gt;
&lt;p&gt;There are two basic types of parsers - top down parsers and bottom up parsers. An intuitive explanation is that top down parsers see the high level structure of the syntax and try to match one of them. Bottom up parsers start with the input and gradually transform it into the syntax rules, starting from the low level rules until high level rules are met. Let&apos;s see how the two types of parsers will parse our example:&lt;/p&gt;
&lt;p&gt;A top down parser starts from the higher level rule - it identifies &lt;code class=&quot;language-text&quot;&gt;2 + 3&lt;/code&gt; as an expression. It will then identify &lt;code class=&quot;language-text&quot;&gt;2 + 3 - 1&lt;/code&gt; as an expression (the process of identifying the expression evolves matching the other rules, but the start point is the highest level rule).&lt;/p&gt;
&lt;p&gt;The bottom up parser will scan the input until a rule is matched it will then replace the matching input with the rule. This will go on until the end of the input. The partly matched expression is placed on the parsers stack.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Stack&lt;/th&gt;
&lt;th align=&quot;right&quot;&gt;Input&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;2 + 3 - 1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Term&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;+ 3 - 1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Term Operation&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;3 - 1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Expression&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;- 1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Expression operation&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Expression&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;This type of bottom up parser is called a shift reduce parser, because the input is shifted to the right (imagine a pointer pointing first at the input start and moving to the right) and is gradually reduced to syntax rules.&lt;/p&gt;
&lt;h5 id=&quot;generating-parsers-automatically&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#generating-parsers-automatically&quot; aria-label=&quot;generating parsers automatically permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Generating Parsers Automatically&lt;/h5&gt;
&lt;p&gt;There are tools that can generate a parser for you. They are called parser generators. You feed them with the grammar of your language - its vocabulary and syntax rules and they generate a working parser. Creating a parser requires a deep understanding of parsing and its not easy to create an optimized parser by hand, so parser generators can be very useful.&lt;/p&gt;
&lt;p&gt;WebKit uses two well known parser generators - Flex for creating a lexer and Bison for creating a parser (you might run into them with the names Lex and Yacc). Flex input is a file containing regular expression definitions of the tokens. Bison&apos;s input is the language syntax rules in BNF format.&lt;/p&gt;
&lt;h4 id=&quot;html-parser&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#html-parser&quot; aria-label=&quot;html parser permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;HTML Parser&lt;/h4&gt;
&lt;p&gt;The job of the HTML parser is to parse the HTML markup into a parse tree.&lt;/p&gt;
&lt;h5 id=&quot;the-html-grammar-definition&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#the-html-grammar-definition&quot; aria-label=&quot;the html grammar definition permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;The HTML Grammar Definition&lt;/h5&gt;
&lt;p&gt;The vocabulary and syntax of HTML are defined in &lt;a href=&quot;#W3C&quot;&gt;specifications&lt;/a&gt; created by the W3C organization. The current version is HTML4 and work on HTML5 is in progress.&lt;/p&gt;
&lt;h5 id=&quot;not-a-context-free-grammar&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#not-a-context-free-grammar&quot; aria-label=&quot;not a context free grammar permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Not a Context Free Grammar&lt;/h5&gt;
&lt;p&gt;As we have seen in the parsing introduction, grammar syntax can be defined formally using formats like BNF. Unfortunately not all of the conventional parser topics apply to HTML (I didn&apos;t bring them up just for fun - they will be used in parsing CSS and JavaScript). HTML cannot easily be defined by a context free grammar that parsers need.&lt;/p&gt;
&lt;p&gt;There is a formal format for defining HTML - DTD (Document Type Definition) - but it is not a context free grammar. This appears strange at first site - HTML is rather close to XML. There are lots of available XML parsers. There is an XML variation of HTML - XHTML - so what&apos;s the big difference? The difference is that HTML approach is more &quot;forgiving&quot;, it lets you omit certain tags which are added implicitly, sometimes omit the start or end of tags etc.&lt;/p&gt;
&lt;p&gt;On the whole it&apos;s a &quot;soft&quot; syntax, as opposed to XML&apos;s stiff and demanding syntax. Apparently this seemingly small difference makes a world of a difference. On one hand this is the main reason why HTML is so popular - it forgives your mistakes and makes life easy for the web author. On the other hand, it makes it difficult to write a format grammar. So to summarize - HTML cannot be parsed easily, not by conventional parsers since its grammar is not a context free grammar, and not by XML parsers.&lt;/p&gt;
&lt;h5 id=&quot;html-dtd&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#html-dtd&quot; aria-label=&quot;html dtd permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;HTML DTD&lt;/h5&gt;
&lt;p&gt;HTML definition is in a DTD format. This format is used to define languages of the &lt;a href=&quot;https://en.wikipedia.org/wiki/Standard_Generalized_Markup_Language&quot;&gt;SGML&lt;/a&gt; family. The format contains definitions for all allowed elements, their attributes and hierarchy. As we saw earlier, the HTML DTD doesn&apos;t form a context free grammar. There are a few variations of the DTD. The strict mode conforms solely to the specifications but other modes contain support for markup used by browsers in the past. The purpose is backwards compatibility with older content. The current strict DTD is at &lt;a href=&quot;https://www.w3.org/TR/html4/strict.dtd&quot;&gt;https://www.w3.org/TR/html4/strict.dtd&lt;/a&gt;&lt;/p&gt;
&lt;h5 id=&quot;dom&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#dom&quot; aria-label=&quot;dom permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;DOM&lt;/h5&gt;
&lt;p&gt;The output tree - the parse tree is a tree of DOM element and attribute nodes. DOM is short for Document Object Model. It is the object presentation of the HTML document and the interface of HTML elements to the outside world like JavaScript. The root of the tree is the &quot;&lt;a href=&quot;https://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#i-Document&quot;&gt;document&lt;/a&gt;&quot; object.&lt;/p&gt;
&lt;p&gt;The DOM has an almost one to one relation to the markup. Example, this markup:&lt;/p&gt;
&lt;figure&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;html&quot;&gt;&lt;pre class=&quot;language-html&quot;&gt;&lt;code class=&quot;language-html&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;html&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;body&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
    &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;p&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;Hello World&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;p&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
    &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;div&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;img&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;src&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;example.png&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;/&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;div&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;body&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;html&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
  &lt;figcaption&gt;Example markup&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;Would be translated to the following DOM tree:&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 400px; &quot;
    &gt;
      &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 54.91329479768786%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAALCAYAAAB/Ca1DAAAACXBIWXMAAAsTAAALEwEAmpwYAAACS0lEQVR42pVSWW8SURQeWq0alzdj4k/w0T/gf9Ckr/6AvvpOfNHE2mrZLR22LjYUgSkMUwbKhLZTKLtlcYZ1oDJdWIvOVLD1OqPUEJpGPcmXc3Pzne+c79wLQQMBAJCIeWmrdj9a6vEbyRbwhNkfRLwGfLEj4P/YEND8TtcBiDBn6n7NKHR5/Bacmc/eMXjqL+WW3PTU0u7ktDk99fp96o3MQk2+Xc68eufcU+nw+mORK5WCEeh/Q5zCtA9u/it55BxmMxgVs3AtIamu2xM+ADaC/opuFTmUZHhsu8LhO2wnQPFgi+rK+/VXBzQklzbSe2sTmtUyLP9AyTX2vFKECikqFba8QotWYRhvjP+yDIYsC6o3BNwWcGsIV6RE6fpwo5ls9trAZH/qasI5lUqNQViQjTs3C/zqRq6FBSptAS3BXhsly1/WgiyHRw57vgT3RBTZzp6i67E6sKzTHVeg0hE4LVdgr40Fq3UywwEy05VBs6vMCw2SN6qsuTnBHiyzpA0KK6VT2XNzIjRIwaTzHj0UBReI1jMY+7yotNNalY3WKa1ZvdpGw2orrTV5D5fn/c2nF3b3QGoeE/7C37+CwHkk1V9YCWTeYO/GiqeWRPnMGSv0EE+EdQcozplggC1aPCU20/z4OXeHPnlOJPZxPFS2EfED1Bvdd/siVWQz2UDIZBML5b6pIC1ycM8R5mk00q04QieMca1QWvHXGCzWyztC/PEK2Z7ov57EQrYWFvHyEez4VDS4csysdbekR7OMAc2XjK4Ca90+Jn4Cu+GywKyngOAAAAAASUVORK5CYII=&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;DOM tree of the example markup&quot;
        title=&quot;&quot;
        src=&quot;/static/16ef855a130014986eef5af91304b3a0/e17e5/dom-tree-of-the-example-markup.png&quot;
        srcset=&quot;/static/16ef855a130014986eef5af91304b3a0/991de/dom-tree-of-the-example-markup.png 173w,
/static/16ef855a130014986eef5af91304b3a0/e4d6b/dom-tree-of-the-example-markup.png 345w,
/static/16ef855a130014986eef5af91304b3a0/e17e5/dom-tree-of-the-example-markup.png 400w&quot;
        sizes=&quot;(max-width: 400px) 100vw, 400px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Figure 8: DOM tree of the example markup&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;Like HTML, DOM is specified by the W3C organizationm see &lt;a href=&quot;https://www.w3.org/DOM/DOMTR&quot;&gt;https://www.w3.org/DOM/DOMTR&lt;/a&gt;. It is a generic specification for manipulating documents. A specific module describes HTML specific elements. The HTML definitions can be found here: &lt;a href=&quot;https://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109/idl-definitions.html&quot;&gt;https://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109/idl-definitions.html&lt;/a&gt;. When we say the tree contains DOM nodes, we mean the tree is constructed of elements that implement one of the DOM interfaces. Browsers use concrete implementations that have other attributes used by the browser internally.&lt;/p&gt;
&lt;h5 id=&quot;the-parsing-algorithm&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#the-parsing-algorithm&quot; aria-label=&quot;the parsing algorithm permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;The Parsing Algorithm&lt;/h5&gt;
&lt;p&gt;As we saw in the previous sections, HTML cannot be parsed using the regular top down or bottom up parsers. The reasons are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The forgiving nature of the language.&lt;/li&gt;
&lt;li&gt;The fact that browsers have traditional error tolerance to support well known cases of invalid HTML.&lt;/li&gt;
&lt;li&gt;The parsing process in reentrant. Usually the source doesn&apos;t change during parsing, but in HTML, script tags containing &quot;document.write&quot; can add extra tokens, so the parsing process actually modifies the input.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Unable to use the regular parsing techniques, browsers create custom parsers for parsing HTML. The parsing algorithm is described in details by the HTML5 specification. The algorithm consists of two stages - tokenization and tree construction. Tokenization is the lexical analysis, parsing the input into tokens. Among HTML tokens are start tags, end tags, attribute names and attribute values. The tokenizer recognizes the token, gives it to the tree constructor and consumes the next character for recognizing the next token and so on until the end of the input.&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 308px; &quot;
    &gt;
      &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 130.0578034682081%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAaCAIAAAA44esqAAAACXBIWXMAAAsTAAALEwEAmpwYAAACqklEQVR42pVUC3OaQBDO//8RnWkynTjTadMmUROtbyXBkMT4ACQKAhLlkNcBGkW0C6R5jdbkE847uI/d2/1299YRHh8fZ7PZFH6zaYjZdLlcrndhD27YLIh9ZKq6rWmmimdWT+B0XYdXq9VqB3k8GY2xmKmmT/O/stUUjziOZ4Ngtduyv/CJ2zLRKVzS5WqrcEGXKo28itSdZkMy7EAIDQbicKgwNNPv80hF649hL/6Ljbiu6/v+R2xuII9GI4j558iO6xqGPp16DMtoGrIifJQsKzKyHnoip2jy4IHXXa3NtjSkzefzxT+AEGAJ42unQrKoCDLm0rXjzMVJqvq7i9q3LGUapiRJFEXdXN/A2Gq16vU6wzAQl+dzhWRBEgpk5rJZKVM5olEq1rNNphGJxwOpGBFs2zZNczKZYIzfkINlYJsYW44kyhOk25YD/m48JLj9nryK8P9UxU82k30/LANRFD1vCsKE6x3Au/UqrALLtGJnn8hwEsPS4WJYWtXGlm0gTX1t0PO8MRobpj5UZEiNaRswwsOQzN2zeKErk0E6l2zf383XLsN1IEiQbQgSbLokSUUTJcSf5ZLpfEr3VEHpqaoakpudxlE+cZjc/5k9TCQPEqmv5B0BjkFJxyHgeZ7iKt/PvyWS+wdHXzL1U5KpghCeRPKndJ6rZFO5U5hkimd0t/M6kHBU8pqokqUiUSgReZhcXNWgY7zRNsZObGobQGrwoa2pirvPtlQtFnPoU9EyeKmqSMZ+pxPGCYxvI8OruOxetA20vtDHHjZsHTvWSH1wHGej/Q1kSEZP4oYaf5z+QfM09gwobPD/uarmEWImiOwNGRpuo0dJbpdky7VWiWzXkIaCIACaHyH+RDx/X5Kwvr67Kl8Vb5oUd9+VZAmYn2tDsVw/hb+rbcQFZdL1sQAAAABJRU5ErkJggg==&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;HTML Parsing Flow&quot;
        title=&quot;&quot;
        src=&quot;/static/618a32b45bea0ca79c36309579c8dedb/2ece4/html-parsing-flow.png&quot;
        srcset=&quot;/static/618a32b45bea0ca79c36309579c8dedb/991de/html-parsing-flow.png 173w,
/static/618a32b45bea0ca79c36309579c8dedb/2ece4/html-parsing-flow.png 308w&quot;
        sizes=&quot;(max-width: 308px) 100vw, 308px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Figure 9: HTML Parsing Flow&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;h5 id=&quot;the-tokenization-algorithm&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#the-tokenization-algorithm&quot; aria-label=&quot;the tokenization algorithm permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;The Tokenization Algorithm&lt;/h5&gt;
&lt;p&gt;The algorithm&apos;s output is an HTML token. The algorithm is expressed as a state machine. Each state consumes one or more characters of the input stream and updates the next state according to those characters. The decision is influenced by the current tokenization state and by the tree construction state. This means the same consumed character will yield different results for the correct next state, depending on the current state. The algorithm is too complex to bring fully, so let&apos;s see a simple example that will help us understand the principal.&lt;/p&gt;
&lt;p&gt;Basic example - tokenizing the following HTML:&lt;/p&gt;
&lt;figure&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;html&quot;&gt;&lt;pre class=&quot;language-html&quot;&gt;&lt;code class=&quot;language-html&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;html&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;body&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
    Hello world
  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;body&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;html&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
  &lt;figcaption&gt;The HTML to be tokenized&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;ol&gt;
&lt;li&gt;The initial state is the &quot;Data state&quot;. When the &lt;code class=&quot;language-text&quot;&gt;&amp;lt;&lt;/code&gt; character is encountered, the state is changed to &lt;strong&gt;&quot;Tag open state&quot;&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Consuming an &quot;a-z&quot; character causes creation of a &quot;Start tag token&quot;, the state is changed to &lt;strong&gt;&quot;Tag name state&quot;&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;We stay in this state until the &lt;code class=&quot;language-text&quot;&gt;&gt;&lt;/code&gt; character is consumed. Each character is appended to the new token name. In our case the created token is an &quot;HTML&quot; token.&lt;/li&gt;
&lt;li&gt;When the &lt;code class=&quot;language-text&quot;&gt;&gt;&lt;/code&gt; tag is reached, the current token is emitted and the state changes back to the &lt;strong&gt;&quot;Data state&quot;&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The &lt;code class=&quot;language-text&quot;&gt;&amp;lt;body&gt;&lt;/code&gt; tag will be treated by the same steps. So far the &quot;html&quot; and &quot;body&quot; tags were emitted. We are now back at the &lt;strong&gt;&quot;Data state&quot;&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Consuming the &quot;H&quot; character of &quot;Hello world&quot; will cause creation and emitting of a character token, this goes on until the &lt;code class=&quot;language-text&quot;&gt;&gt;&lt;/code&gt; of &lt;code class=&quot;language-text&quot;&gt;&amp;lt;body&gt;&lt;/code&gt; is reached.&lt;/li&gt;
&lt;li&gt;We will emit a character token for each character of &quot;Hello world&quot;. We are now back at the &lt;strong&gt;&quot;Tag open state&quot;&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Consuming the next input &quot;/&quot; will cause creation of an &quot;end tag token&quot; and a move to the &lt;strong&gt;&quot;Tag name state&quot;&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Again we stay in this state until we reach &lt;code class=&quot;language-text&quot;&gt;&gt;&lt;/code&gt;.Then the new tag token will be emitted and we go back to the &lt;strong&gt;&quot;Data state&quot;&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The &lt;code class=&quot;language-text&quot;&gt;&amp;lt;html&gt;&lt;/code&gt; input will be treated like the previous case.&lt;/li&gt;
&lt;/ol&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 627px; &quot;
    &gt;
      &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 61.849710982658955%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAMCAIAAADtbgqsAAAACXBIWXMAAAsTAAALEwEAmpwYAAABKElEQVR42n2SWW6EQAxEuf+VOARfgEBiFTthDRAgwOSFnmklZCb1YXW7XeWyQbn9wb7vRFVVPc/jcBzH7QUUeaLo8wHOYRgWRbGu69uJpyqK7DaO47Is8zxv25YkCWTf96Hpuq5pmnT0hAxhmiYhT1Hf91VVIUESI/T/OCFMSXyT6UlpXddpmkZRRCTD2zAMlmUZhtF1HWUwsyxjlrZty7JsmkYRfui8/wZ5inDuui7ScmYksCAM3m0zKvI0JPYnaPt+gg5cxTqYgohHXul3J4upiJCp5jkIAirEOoRJrqhwwDwRFeWyQL6t4zhE27bhk4nj2DRNrkgghAW59iuZb9OcEM2J7DzPcxFx9/ODXclorw/QhEgGDsMzMJHrS/I/YB34Er+DIH8Bliq1B0hXpisAAAAASUVORK5CYII=&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Tokenizing the example input&quot;
        title=&quot;&quot;
        src=&quot;/static/dbf0664153ac609ac61b0f32bb099f23/e9c9b/tokenizing-the-example-input.png&quot;
        srcset=&quot;/static/dbf0664153ac609ac61b0f32bb099f23/991de/tokenizing-the-example-input.png 173w,
/static/dbf0664153ac609ac61b0f32bb099f23/e4d6b/tokenizing-the-example-input.png 345w,
/static/dbf0664153ac609ac61b0f32bb099f23/e9c9b/tokenizing-the-example-input.png 627w&quot;
        sizes=&quot;(max-width: 627px) 100vw, 627px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Figure 10: Tokenizing the example input&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;h5 id=&quot;tree-construction-algorithm&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#tree-construction-algorithm&quot; aria-label=&quot;tree construction algorithm permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Tree Construction Algorithm&lt;/h5&gt;
&lt;p&gt;When the parser is created the document object is created. During the tree construction stage the DOM tree with the document in its root will be modified and elements will be added to it. Each node emitted by the tokenizer will be processed by the tree constructor. For each token the specification defines which DOM element is relevant to it and will be created for this token. Except of adding the element to the DOM tree it is also added to a stack of open elements.&lt;/p&gt;
&lt;p&gt;This stack is used to correct nesting mismatches and unclosed tags. The algorithm is also described as a state machine. The states are called &quot;insertion modes.&quot; Let&apos;s see the tree construction process for the example input:&lt;/p&gt;
&lt;figure&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;html&quot;&gt;&lt;pre class=&quot;language-html&quot;&gt;&lt;code class=&quot;language-html&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;html&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;body&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
    Hello world
  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;body&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;html&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
  &lt;figcaption&gt;Example input&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;The input to the tree construction stage is a sequence of tokens from the tokenization stage:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The first mode is the &lt;strong&gt;&quot;initial mode&quot;&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Receiving the HTML token will cause a move to the &lt;strong&gt;&quot;before html&quot;&lt;/strong&gt; mode and a reprocessing of the token in that mode.&lt;/li&gt;
&lt;li&gt;This will cause a creation of the HTMLHtmlElement element and it will be appended to the root document object. The state will be changed to &lt;strong&gt;&quot;before head.&quot;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;We receive the &quot;body&quot; token. An HTMLHeadElement will be created implicitly although we don&apos;t have a &quot;head&quot; token and it will be added to the tree.&lt;/li&gt;
&lt;li&gt;We now move to the &lt;strong&gt;&quot;in head&quot;&lt;/strong&gt; mode and then to &lt;strong&gt;&quot;after head&quot;&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The body token is reprocessed, an HTMLBodyElement is created and inserted and the mode is transferred to &lt;strong&gt;&quot;in body.&quot;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;The character tokens of the &quot;Hello world&quot; string are now received.&lt;/li&gt;
&lt;li&gt;The first one will cause creation and insertion of a &quot;Text&quot; node and the other characters will be appended to that node.&lt;/li&gt;
&lt;li&gt;The receiving of the body end token will cause a transfer to &lt;strong&gt;&quot;after body&quot;&lt;/strong&gt; mode.&lt;/li&gt;
&lt;li&gt;We will now receive the HTML end tag which will move us to &lt;strong&gt;&quot;after after body&quot;&lt;/strong&gt; mode.&lt;/li&gt;
&lt;li&gt;Receiving the end of file token will end the parsing.&lt;/li&gt;
&lt;/ol&gt;
&lt;figure&gt;
&lt;p&gt;&lt;img src=&quot;/5d647d69fde4ee3e3fbca60eb319c8b3/tree-construction-of-example-html.gif&quot; alt=&quot;Tree construction of example HTML&quot;&gt;&lt;/p&gt;
  &lt;figcaption&gt;Figure 11: Tree construction of example HTML&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;h5 id=&quot;actions-when-the-parsing-is-finished&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#actions-when-the-parsing-is-finished&quot; aria-label=&quot;actions when the parsing is finished permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Actions When the Parsing is Finished&lt;/h5&gt;
&lt;p&gt;At this stage the browser will mark the document as interactive and start parsing scripts that are in &quot;deferred&quot; mode - those who should be executed after the document is parsed. The document state will then be set to &quot;complete&quot; and a &quot;load&quot; event will be fired. You can see the full algorithms for tokenization and tree construction in HTML5 specification - &lt;a href=&quot;https://www.w3.org/TR/html5/syntax.html#html-parser&quot;&gt;https://www.w3.org/TR/html5/syntax.html#html-parser&lt;/a&gt;&lt;/p&gt;
&lt;h5 id=&quot;browsers-error-tolerance&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#browsers-error-tolerance&quot; aria-label=&quot;browsers error tolerance permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Browsers Error Tolerance&lt;/h5&gt;
&lt;p&gt;You never get an &quot;Invalid Syntax&quot; error on an HTML page. Browsers fix an invalid content and go on. Take this HTML for example:&lt;/p&gt;
&lt;figure&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;html&quot;&gt;&lt;pre class=&quot;language-html&quot;&gt;&lt;code class=&quot;language-html&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;html&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;mytag&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;mytag&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;div&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;p&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;div&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
    Really lousy HTML
  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;p&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;html&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
  &lt;figcaption&gt;Terrible HTML&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;I must have violated about a million rules (&quot;mytag&quot; is not a standard tag, wrong nesting of the &quot;p&quot; and &quot;div&quot; elements and more) but the browser still shows it correctly and doesn&apos;t complain. So a lot of the parser code is fixing the HTML author&apos;s mistakes. The error handling is quite consistent in browsers but amazingly enough it&apos;s not part of HTML current specification. Like bookmarking and back/forward buttons it&apos;s just something that developed in browsers over the years.&lt;/p&gt;
&lt;p&gt;There are known invalid HTML constructs that repeat themselves in many sites and the browsers try to fix them in a conformant way with other browsers. The HTML5 specification does define some of these requirements. WebKit summarizes this nicely in the comment at the beginning of the HTML parser class.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The parser parses tokenized input into the document, building up the document tree. If the document is well-formed, parsing it is straightforward. Unfortunately, we have to handle many HTML documents that are not well-formed, so the parser has to be tolerant about errors. We have to take care of at least the following error conditions:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The element being added is explicitly forbidden inside some outer tag. In this case we should close all tags up to the one, which forbids the element, and add it afterwards.&lt;/li&gt;
&lt;li&gt;We are not allowed to add the element directly. It could be that the person writing the document forgot some tag in between (or that the tag in between is optional). This could be the case with the following tags: HTML HEAD BODY TBODY TR TD LI (did I forget any?).&lt;/li&gt;
&lt;li&gt;We want to add a block element inside to an inline element. Close all inline elements up to the next higher block element.&lt;/li&gt;
&lt;li&gt;If this doesn&apos;t help, close elements until we are allowed to add the element or ignore the tag.&lt;/li&gt;
&lt;/ol&gt;
&lt;/blockquote&gt;
&lt;p&gt;Let&apos;s see some WebKit error tolerance examples:&lt;/p&gt;
&lt;h6 id=&quot;br-instead-of-br&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#br-instead-of-br&quot; aria-label=&quot;br instead of br permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&amp;#x3C;/br&gt; Instead of &amp;#x3C;br&gt;&lt;/h6&gt;
&lt;p&gt;Some sites use &lt;code class=&quot;language-text&quot;&gt;&amp;lt;/br&gt;&lt;/code&gt; instead of &lt;code class=&quot;language-text&quot;&gt;&amp;lt;br&gt;&lt;/code&gt;. In order to be compatible with IE and Firefox WebKit treats this like &lt;code class=&quot;language-text&quot;&gt;&amp;lt;br&gt;&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;The code:&lt;/p&gt;
&lt;figure&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;cpp&quot;&gt;&lt;pre class=&quot;language-cpp&quot;&gt;&lt;code class=&quot;language-cpp&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;t&lt;span class=&quot;token operator&quot;&gt;-&gt;&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;isCloseTag&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;brTag&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; m_document&lt;span class=&quot;token operator&quot;&gt;-&gt;&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;inCompatMode&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
     &lt;span class=&quot;token function&quot;&gt;reportError&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;MalformedBRError&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
     t&lt;span class=&quot;token operator&quot;&gt;-&gt;&lt;/span&gt;beginTag &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token boolean&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
  &lt;figcaption&gt;How WebKit treats &amp;lt;/br&amp;gt; as &amp;lt;br&amp;gt;&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;Note: The error handling is internal - it won&apos;t be presented to the user.&lt;/p&gt;
&lt;h6 id=&quot;a-stray-table&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#a-stray-table&quot; aria-label=&quot;a stray table permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;A Stray Table&lt;/h6&gt;
&lt;p&gt;A stray table is a table inside another tables contents but not inside a table cell.&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;figure&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;html&quot;&gt;&lt;pre class=&quot;language-html&quot;&gt;&lt;code class=&quot;language-html&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;table&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;table&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
    &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;tr&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
      &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;td&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;inner table&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;td&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
    &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;tr&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;table&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;tr&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
    &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;td&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;outer table&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;td&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;tr&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;table&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
  &lt;figcaption&gt;HTML resulting in a stray table&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;WebKit will change the hierarchy to two sibling tables:&lt;/p&gt;
&lt;figure&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;html&quot;&gt;&lt;pre class=&quot;language-html&quot;&gt;&lt;code class=&quot;language-html&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;table&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;tr&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
    &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;td&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;outer table&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;td&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;tr&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;table&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;table&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;tr&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
    &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;td&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;inner table&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;td&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;tr&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;table&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
  &lt;figcaption&gt;WebKit creates two sibling tables&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;The code:&lt;/p&gt;
&lt;figure&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;cpp&quot;&gt;&lt;pre class=&quot;language-cpp&quot;&gt;&lt;code class=&quot;language-cpp&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;m_inStrayTableContent &lt;span class=&quot;token operator&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; localName &lt;span class=&quot;token operator&quot;&gt;==&lt;/span&gt; tableTag&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
  &lt;span class=&quot;token function&quot;&gt;popBlock&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;tableTag&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
  &lt;figcaption&gt;WebKit&apos;s code that creates the siblings&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;WebKit uses a stack for the current element contents - it will pop the inner table out of the outer table stack. The tables will now be siblings.&lt;/p&gt;
&lt;h6 id=&quot;nested-form-elements&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#nested-form-elements&quot; aria-label=&quot;nested form elements permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Nested Form Elements&lt;/h6&gt;
&lt;p&gt;In case the user puts a form inside another form, the second form is ignored. The code:&lt;/p&gt;
&lt;figure&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;cpp&quot;&gt;&lt;pre class=&quot;language-cpp&quot;&gt;&lt;code class=&quot;language-cpp&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;!&lt;/span&gt;m_currentFormElement&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  m_currentFormElement &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;HTMLFormElement&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;formTag&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; m_document&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
  &lt;figcaption&gt;Forms inside forms are ignored&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;h6 id=&quot;a-too-deep-tag-hierarchy&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#a-too-deep-tag-hierarchy&quot; aria-label=&quot;a too deep tag hierarchy permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;A Too Deep Tag Hierarchy&lt;/h6&gt;
&lt;p&gt;The quote speaks for itself:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;a href=&quot;https://www.liceo.edu.mx/&quot;&gt;https://www.liceo.edu.mx/&lt;/a&gt; is an example of a site that achieves a level of nesting of about 1500 tags, all from a bunch of &lt;code class=&quot;language-text&quot;&gt;&amp;lt;b&gt;&lt;/code&gt; tags. We will only allow at most 20 nested tags of the same type before just ignoring them all together.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;figure&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;cpp&quot;&gt;&lt;pre class=&quot;language-cpp&quot;&gt;&lt;code class=&quot;language-cpp&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;bool&lt;/span&gt; &lt;span class=&quot;token class-name&quot;&gt;HTMLParser&lt;/span&gt;&lt;span class=&quot;token double-colon punctuation&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;allowNestedRedundantTag&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token keyword&quot;&gt;const&lt;/span&gt; AtomicString&lt;span class=&quot;token operator&quot;&gt;&amp;amp;&lt;/span&gt; tagName&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token keyword&quot;&gt;unsigned&lt;/span&gt; i &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token keyword&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;HTMLStackElem&lt;span class=&quot;token operator&quot;&gt;*&lt;/span&gt; curr &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; m_blockStack&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
    i &lt;span class=&quot;token operator&quot;&gt;&amp;lt;&lt;/span&gt; cMaxRedundantTagDepth &lt;span class=&quot;token operator&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; curr &lt;span class=&quot;token operator&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; curr&lt;span class=&quot;token operator&quot;&gt;-&gt;&lt;/span&gt;tagName &lt;span class=&quot;token operator&quot;&gt;==&lt;/span&gt; tagName&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
    curr &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; curr&lt;span class=&quot;token operator&quot;&gt;-&gt;&lt;/span&gt;next&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; i&lt;span class=&quot;token operator&quot;&gt;++&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;

  &lt;span class=&quot;token keyword&quot;&gt;return&lt;/span&gt; i &lt;span class=&quot;token operator&quot;&gt;!=&lt;/span&gt; cMaxRedundantTagDepth&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
  &lt;figcaption&gt;Only allow tags nested up to 20 deep&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;h6 id=&quot;misplaced-html-or-body-end-tags&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#misplaced-html-or-body-end-tags&quot; aria-label=&quot;misplaced html or body end tags permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Misplaced HTML or body End Tags&lt;/h6&gt;
&lt;p&gt;Again - the comment speaks for itself. Support for really broken html. We never close the body tag, since some stupid web pages close it before the actual end of the doc. Let&apos;s rely on the end() call to close things:&lt;/p&gt;
&lt;figure&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;cpp&quot;&gt;&lt;pre class=&quot;language-cpp&quot;&gt;&lt;code class=&quot;language-cpp&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;t&lt;span class=&quot;token operator&quot;&gt;-&gt;&lt;/span&gt;tagName &lt;span class=&quot;token operator&quot;&gt;==&lt;/span&gt; htmlTag &lt;span class=&quot;token operator&quot;&gt;||&lt;/span&gt; t&lt;span class=&quot;token operator&quot;&gt;-&gt;&lt;/span&gt;tagName &lt;span class=&quot;token operator&quot;&gt;==&lt;/span&gt; bodyTag &lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
  &lt;span class=&quot;token keyword&quot;&gt;return&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
  &lt;figcaption&gt;body and HTML tags are only closed on the end call&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;So web authors beware - unless you want to appear as an example in a WebKit error tolerance code - write well formed HTML.&lt;/p&gt;
&lt;h4 id=&quot;css-parsing&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#css-parsing&quot; aria-label=&quot;css parsing permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;CSS Parsing&lt;/h4&gt;
&lt;p&gt;Remember the parsing concepts in the introduction&lt;sup id=&quot;fnref-7&quot;&gt;&lt;a href=&quot;#fn-7&quot; class=&quot;footnote-ref&quot;&gt;7&lt;/a&gt;&lt;/sup&gt;? Well, unlike HTML, CSS is a context free grammar and can be parsed using the types of parsers described in the introduction. In fact the CSS specification defines CSS lexical and syntax grammar (&lt;a href=&quot;https://www.w3.org/TR/CSS2/grammar.html&quot;&gt;https://www.w3.org/TR/CSS2/grammar.html&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;Let&apos;s see some examples:&lt;/p&gt;
&lt;p&gt;The lexical grammar (vocabulary) is defined by regular expressions for each token:&lt;/p&gt;
&lt;figure&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;js&quot;&gt;&lt;pre class=&quot;language-js&quot;&gt;&lt;code class=&quot;language-js&quot;&gt;comment   \&lt;span class=&quot;token operator&quot;&gt;/&lt;/span&gt;\&lt;span class=&quot;token operator&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;^&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;*&lt;/span&gt;\&lt;span class=&quot;token operator&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;^&lt;/span&gt;&lt;span class=&quot;token comment&quot;&gt;/*][^*]*\*+)*\/
num       [0-9]+|[0-9]*&quot;.&quot;[0-9]+
nonascii  [\200-\377]
nmstart   [_a-z]|{nonascii}|{escape}
nmchar    [_a-z0-9-]|{nonascii}|{escape}
name      {nmchar}+
ident     {nmstart}{nmchar}*&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
  &lt;figcaption&gt;Lexical grammar (vocabulary)&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;&quot;ident&quot; is short for identifier, like a class name. &quot;name&quot; is an element id (that is referred by &quot;#&quot; )&lt;/p&gt;
&lt;p&gt;The syntax grammar is described in BNF:&lt;/p&gt;
&lt;figure&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;js&quot;&gt;&lt;pre class=&quot;language-js&quot;&gt;&lt;code class=&quot;language-js&quot;&gt;&lt;span class=&quot;token literal-property property&quot;&gt;ruleset&lt;/span&gt;
  &lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; selector &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&apos;,&apos;&lt;/span&gt; &lt;span class=&quot;token constant&quot;&gt;S&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;*&lt;/span&gt; selector &lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;*&lt;/span&gt;
    &lt;span class=&quot;token string&quot;&gt;&apos;{&apos;&lt;/span&gt; &lt;span class=&quot;token constant&quot;&gt;S&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;*&lt;/span&gt; declaration &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&apos;;&apos;&lt;/span&gt; &lt;span class=&quot;token constant&quot;&gt;S&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;*&lt;/span&gt; declaration &lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&apos;}&apos;&lt;/span&gt; &lt;span class=&quot;token constant&quot;&gt;S&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;*&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token literal-property property&quot;&gt;selector&lt;/span&gt;
  &lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; simple_selector &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt; combinator selector &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token constant&quot;&gt;S&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt; combinator&lt;span class=&quot;token operator&quot;&gt;?&lt;/span&gt; selector &lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;?&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;?&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token literal-property property&quot;&gt;simple_selector&lt;/span&gt;
  &lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; element_name &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt; &lt;span class=&quot;token constant&quot;&gt;HASH&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;class&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; attrib &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; pseudo &lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;*&lt;/span&gt;
  &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt; &lt;span class=&quot;token constant&quot;&gt;HASH&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;class&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; attrib &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; pseudo &lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;+&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token keyword&quot;&gt;class&lt;/span&gt;
  &lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&apos;.&apos;&lt;/span&gt; &lt;span class=&quot;token constant&quot;&gt;IDENT&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token literal-property property&quot;&gt;element_name&lt;/span&gt;
  &lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token constant&quot;&gt;IDENT&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&apos;*&apos;&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token literal-property property&quot;&gt;attrib&lt;/span&gt;
  &lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&apos;[&apos;&lt;/span&gt; &lt;span class=&quot;token constant&quot;&gt;S&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;token constant&quot;&gt;IDENT&lt;/span&gt; &lt;span class=&quot;token constant&quot;&gt;S&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&apos;=&apos;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token constant&quot;&gt;INCLUDES&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token constant&quot;&gt;DASHMATCH&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;token constant&quot;&gt;S&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;*&lt;/span&gt;
    &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt; &lt;span class=&quot;token constant&quot;&gt;IDENT&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token constant&quot;&gt;STRING&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;token constant&quot;&gt;S&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&apos;]&apos;&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token literal-property property&quot;&gt;pseudo&lt;/span&gt;
  &lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&apos;:&apos;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt; &lt;span class=&quot;token constant&quot;&gt;IDENT&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token constant&quot;&gt;FUNCTION&lt;/span&gt; &lt;span class=&quot;token constant&quot;&gt;S&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token constant&quot;&gt;IDENT&lt;/span&gt; &lt;span class=&quot;token constant&quot;&gt;S&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&apos;)&apos;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
  &lt;figcaption&gt;Syntax grammar&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;Explanation: A ruleset is this structure:&lt;/p&gt;
&lt;figure&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;css&quot;&gt;&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;div.error,
a.error&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;color&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; red&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;font-weight&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; bold&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
  &lt;figcaption&gt;A ruleset&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;div.error and a.error are selectors. The part inside the curly braces contains the rules that are applied by this ruleset. This structure is defined formally in this definition:&lt;/p&gt;
&lt;figure&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;js&quot;&gt;&lt;pre class=&quot;language-js&quot;&gt;&lt;code class=&quot;language-js&quot;&gt;&lt;span class=&quot;token literal-property property&quot;&gt;ruleset&lt;/span&gt;
  &lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; selector &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&apos;,&apos;&lt;/span&gt; &lt;span class=&quot;token constant&quot;&gt;S&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;*&lt;/span&gt; selector &lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;*&lt;/span&gt;
    &lt;span class=&quot;token string&quot;&gt;&apos;{&apos;&lt;/span&gt; &lt;span class=&quot;token constant&quot;&gt;S&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;*&lt;/span&gt; declaration &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&apos;;&apos;&lt;/span&gt; &lt;span class=&quot;token constant&quot;&gt;S&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;*&lt;/span&gt; declaration &lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&apos;}&apos;&lt;/span&gt; &lt;span class=&quot;token constant&quot;&gt;S&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;*&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
  &lt;figcaption&gt;The structure definition&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;This means a ruleset is a selector or optionally number of selectors separated by a coma and spaces (S stands for white space). A ruleset contains curly braces and inside them a declaration or optionally a number of declarations separated by a semicolon. &quot;declaration&quot; and &quot;selector&quot; will be defined in the following BNF definitions.&lt;/p&gt;
&lt;h5 id=&quot;webkit-css-parser&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#webkit-css-parser&quot; aria-label=&quot;webkit css parser permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;WebKit CSS Parser&lt;/h5&gt;
&lt;p&gt;WebKit uses &lt;a href=&quot;#generating-parsers-automatically&quot;&gt;Flex and Bison&lt;/a&gt; parser generators to create parsers automatically from the CSS grammar files. As you may recall from the parser introduction, Bison creates a bottom up shift reduce parser. Firefox uses a top down parser written manually. In both cases each CSS file is parsed into a StyleSheet object, each object contains CSS rules. The CSS rule objects contain selector and declaration objects and other object corresponding to CSS grammar.&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 500px; &quot;
    &gt;
      &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 78.61271676300578%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAQCAYAAAAWGF8bAAAACXBIWXMAAAsTAAALEwEAmpwYAAAC+ElEQVR42p2Tb0gTcRjHZ4WhkBS9iCiiQBRMqxe+MMwoEEGIIF8U9K4XE3ppsRe9yV5E7xQDK5J6o+D0dO5u2G2XbufN7W5/vW1uuo3Nren+3/7c/qRr6q+7tZWQxOyBh+9z9/s9n+fPcQLBAQMAHOfV5XIJGYYBNput4Pf797xeb8k9Hs8e91zIZrOAuzN0MOdQqxza7fZ+HshBij6fjweD1dVVQNM0cDqdxUwmAxwOx3DVQJPJJORBer2+aLVaeeA+p7scbI/rrBiLxfh31QN1Ol0/1x0wm81FDg5IkgQGgwHwMUVRae68gOP4q2qAx3iFYbgbRVELhmHuxcVFL4bJVQqF4g2CIH3j4+PXR0ZGLolEolOCoxoEQaXqek++nVjLnS8XrRH8j/GJUHkcypfp02ywzQeK1ByFVDNYHl1mCtYDsN+A6Nl7uD11gytSj+PgBL+3I3VaWfRXW+EhrA7kJfiGS7LkYxSmFPIHVCWQS6jl/EwQBOtfQ4ELY/Jk1yd55OZHNHqL90ACtAYShVYyAOr+uS8UdZ/kY8ycGpDrwruYkVHDmnjpS1Z2iZjYDli9VUSWQz9QLi7/BLX8Gg6F8jokDbSNwn7hO1mwB4J+gSo6AAXqBidCLcMz4atvJ9wN5dS/Rzesg2atPT1LWOJzGnvmpdEDOtVWZlq1EhGTDlaC27cbNe7tHsLKyJZt8RnzRuGRkk4J1TYGJeg4f2dsYY09+xuIUNlr00txQqyKGKRa9j2kYe9P4VFyUhXCIILRQGS6EdZnHkypIkaxKkrOUuxzSJ1+OqkKayeVQXx2OTkvxVOnSzDbt2K3cp1txm3xdoSKnPNGsudoX/au0hy6bfGyTUvWSJvBk+t1M6BlwRJrIp2JTutm/qLVl+/A6fAdix9ckdLhy47NnV5XEHRx3THrXwy5FxIi6JCSycewNvpEvOBNz6j8zBwRhFBTRi4htnYUK7kPCBn9LCE2GZkx+2xel7RzcV5hzo3K6e8iWBPZnqcS1E9Q1j6sApPe7AAAAABJRU5ErkJggg==&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Parsing CSS&quot;
        title=&quot;&quot;
        src=&quot;/static/0aa927e9313bf58eb4a12f5ce2c014f5/0b533/parsing-css.png&quot;
        srcset=&quot;/static/0aa927e9313bf58eb4a12f5ce2c014f5/991de/parsing-css.png 173w,
/static/0aa927e9313bf58eb4a12f5ce2c014f5/e4d6b/parsing-css.png 345w,
/static/0aa927e9313bf58eb4a12f5ce2c014f5/0b533/parsing-css.png 500w&quot;
        sizes=&quot;(max-width: 500px) 100vw, 500px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Figure 12: Parsing CSS&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;h4 id=&quot;parsing-scripts&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#parsing-scripts&quot; aria-label=&quot;parsing scripts permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Parsing Scripts&lt;/h4&gt;
&lt;h4 id=&quot;the-order-of-processing-scripts-and-stylesheets&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#the-order-of-processing-scripts-and-stylesheets&quot; aria-label=&quot;the order of processing scripts and stylesheets permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;The Order of Processing Scripts and Stylesheets&lt;/h4&gt;
&lt;h5 id=&quot;scripts&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#scripts&quot; aria-label=&quot;scripts permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Scripts&lt;/h5&gt;
&lt;p&gt;The model of the web is synchronous. Authors expect scripts to be parsed and executed immediately when the parser reaches a &lt;code class=&quot;language-text&quot;&gt;&amp;lt;script&gt;&lt;/code&gt; tag. The parsing of the document halts until the script is executed. If the script is external then the resource must be first fetched from the network - this is also done synchronously, the parsing halts until the resource is fetched. This was the model for many years and is also specified in HTML 4&lt;sup id=&quot;fnref-15&quot;&gt;&lt;a href=&quot;#fn-15&quot; class=&quot;footnote-ref&quot;&gt;15&lt;/a&gt;&lt;/sup&gt; and 5&lt;sup id=&quot;fnref-16&quot;&gt;&lt;a href=&quot;#fn-16&quot; class=&quot;footnote-ref&quot;&gt;16&lt;/a&gt;&lt;/sup&gt; specifications. Authors could mark the script as &quot;defer&quot; and thus it will not halt the document parsing and will execute after it is parsed. HTML5 adds an option to mark the script as asynchronous so it will be parsed and executed by a different thread.&lt;/p&gt;
&lt;h5 id=&quot;speculative-parsing&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#speculative-parsing&quot; aria-label=&quot;speculative parsing permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Speculative Parsing&lt;/h5&gt;
&lt;p&gt;Both WebKit and Firefox perform this optimization. While executing scripts, another thread parses the rest of the document and finds out which other resources need to be loaded from the network and loads them. This way resources can be loaded on parallel connections and the overall speed is better.&lt;/p&gt;
&lt;p&gt;Note: the speculative parser doesn&apos;t modify the DOM tree and leaves that to the main parser, it only parses references to external resources like external scripts, style sheets and images.&lt;/p&gt;
&lt;h5 id=&quot;stylesheets&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#stylesheets&quot; aria-label=&quot;stylesheets permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Stylesheets&lt;/h5&gt;
&lt;p&gt;Stylesheets on the other hand have a different model. Conceptually it seems that since style sheets don&apos;t change the DOM tree, there is no reason to wait for them and stop the document parsing. There is an issue, though, of scripts asking for style information during the document parsing stage. If the style is not loaded and parsed yet, the script will get wrong answers and apparently this caused lots of problems&lt;sup id=&quot;fnref-14&quot;&gt;&lt;a href=&quot;#fn-14&quot; class=&quot;footnote-ref&quot;&gt;14&lt;/a&gt;&lt;/sup&gt;. It seems to be an edge case but is actually fairly common. Firefox blocks all scripts when there is a stylesheet that is still being loaded and parsed. WebKit blocks scripts only when they try to access certain style properties that may be effected by unloaded stylesheets.&lt;/p&gt;
&lt;h3 id=&quot;render-tree-construction&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#render-tree-construction&quot; aria-label=&quot;render tree construction permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Render Tree Construction&lt;/h3&gt;
&lt;p&gt;While the DOM tree is being constructed, the browser constructs another tree, the render tree. This is a tree of visual elements in the order in which they will be displayed. It is the visual representation of the document. The purpose of this tree is to enable painting the contents in their correct order. Firefox calls the elements in the render tree &quot;frames&quot;. WebKit uses the term renderer or render object. A renderer knows how to layout and paint itself and it&apos;s children. WebKit&apos;s RenderObject class, the base class of the renderers has the following definition:&lt;/p&gt;
&lt;figure&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;cpp&quot;&gt;&lt;pre class=&quot;language-cpp&quot;&gt;&lt;code class=&quot;language-cpp&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;class&lt;/span&gt; &lt;span class=&quot;token class-name&quot;&gt;RenderObject&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token keyword&quot;&gt;virtual&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;void&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;layout&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token keyword&quot;&gt;virtual&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;void&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;paint&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;PaintInfo&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token keyword&quot;&gt;virtual&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;void&lt;/span&gt; rect &lt;span class=&quot;token function&quot;&gt;repaintRect&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  Node&lt;span class=&quot;token operator&quot;&gt;*&lt;/span&gt; node&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;  &lt;span class=&quot;token comment&quot;&gt;//the DOM node&lt;/span&gt;
  RenderStyle&lt;span class=&quot;token operator&quot;&gt;*&lt;/span&gt; style&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;  &lt;span class=&quot;token comment&quot;&gt;// the computed style&lt;/span&gt;
  RenderLayer&lt;span class=&quot;token operator&quot;&gt;*&lt;/span&gt; containgLayer&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;//the containing z-index layer&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
  &lt;figcaption&gt;WebKit&apos;s RenderObject Class&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;Each renderer represents a rectangular area usually corresponding to the node&apos;s CSS box, as described by the CSS2 spec. It contains geometric information like width, height and position.&lt;/p&gt;
&lt;p&gt;The box type is affected by the &quot;display&quot; style attribute that is relevant for the node (see the &lt;a href=&quot;#style-computation&quot;&gt;style computation&lt;/a&gt; section). Here is WebKit code for deciding what type of renderer should be created for a DOM node, according to the display attribute.&lt;/p&gt;
&lt;figure&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;cpp&quot;&gt;&lt;pre class=&quot;language-cpp&quot;&gt;&lt;code class=&quot;language-cpp&quot;&gt;RenderObject&lt;span class=&quot;token operator&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;token class-name&quot;&gt;RenderObject&lt;/span&gt;&lt;span class=&quot;token double-colon punctuation&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;createObject&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;Node&lt;span class=&quot;token operator&quot;&gt;*&lt;/span&gt; node&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; RenderStyle&lt;span class=&quot;token operator&quot;&gt;*&lt;/span&gt; style&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
    Document&lt;span class=&quot;token operator&quot;&gt;*&lt;/span&gt; doc &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; node&lt;span class=&quot;token operator&quot;&gt;-&gt;&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;document&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
    RenderArena&lt;span class=&quot;token operator&quot;&gt;*&lt;/span&gt; arena &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; doc&lt;span class=&quot;token operator&quot;&gt;-&gt;&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;renderArena&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;
    RenderObject&lt;span class=&quot;token operator&quot;&gt;*&lt;/span&gt; o &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;

    &lt;span class=&quot;token keyword&quot;&gt;switch&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;style&lt;span class=&quot;token operator&quot;&gt;-&gt;&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;display&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
        &lt;span class=&quot;token keyword&quot;&gt;case&lt;/span&gt; NONE&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt;
            &lt;span class=&quot;token keyword&quot;&gt;break&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;token keyword&quot;&gt;case&lt;/span&gt; INLINE&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt;
            o &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;arena&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;RenderInline&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;node&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
            &lt;span class=&quot;token keyword&quot;&gt;break&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;token keyword&quot;&gt;case&lt;/span&gt; BLOCK&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt;
            o &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;arena&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;RenderBlock&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;node&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
            &lt;span class=&quot;token keyword&quot;&gt;break&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;token keyword&quot;&gt;case&lt;/span&gt; INLINE_BLOCK&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt;
            o &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;arena&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;RenderBlock&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;node&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
            &lt;span class=&quot;token keyword&quot;&gt;break&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;token keyword&quot;&gt;case&lt;/span&gt; LIST_ITEM&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt;
            o &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;arena&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;RenderListItem&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;node&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
            &lt;span class=&quot;token keyword&quot;&gt;break&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
       &lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;
    &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;

    &lt;span class=&quot;token keyword&quot;&gt;return&lt;/span&gt; o&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
  &lt;figcaption&gt;WebKit&apos;s RenderObject::createObject method&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;The element type is also considered, for example form controls and tables have special frames. In WebKit if an element wants to create a special renderer it will override the &lt;code class=&quot;language-text&quot;&gt;createRenderer()&lt;/code&gt; method. The renderers points to style objects that contains the non geometric information.&lt;/p&gt;
&lt;h4 id=&quot;the-render-tree-relation-to-the-dom-tree&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#the-render-tree-relation-to-the-dom-tree&quot; aria-label=&quot;the render tree relation to the dom tree permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;The Render Tree Relation to the DOM Tree&lt;/h4&gt;
&lt;p&gt;The renderers correspond to the DOM elements, but the relation is not one to one. Non visual DOM elements will not be inserted in the render tree. An example is the &quot;head&quot; element. Also elements whose display attribute was assigned to &quot;none&quot; will not appear in the tree (elements with &quot;hidden&quot; visibility attribute will appear in the tree)&lt;sup id=&quot;fnref-4&quot;&gt;&lt;a href=&quot;#fn-4&quot; class=&quot;footnote-ref&quot;&gt;4&lt;/a&gt;&lt;/sup&gt;&lt;sup id=&quot;fnref-5&quot;&gt;&lt;a href=&quot;#fn-5&quot; class=&quot;footnote-ref&quot;&gt;5&lt;/a&gt;&lt;/sup&gt;.&lt;/p&gt;
&lt;p&gt;There are DOM elements which correspond to several visual objects. These are usually elements with complex structures that cannot be described by a single rectangle. For example, the &quot;select&quot; element has 3 renderers - one for the display area, one for the drop down list box and one for the button. Also when text is broken into multiple lines because the width is not sufficient for one line, the new lines will be added as extra renderers. Another example of several renderers is broken HTML.&lt;/p&gt;
&lt;p&gt;According to CSS spec an inline element must contain either only block elements or only inline elements. In case of mixed content, anonymous block renderers will be created to wrap the inline elements. Some render objects correspond to a DOM node but not in the same place in the tree. Floats and absolutely positioned elements are out of flow, placed in a different place in the tree, and mapped to the real frame. A placeholder frame is where they should have been.&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 690px; &quot;
    &gt;
      &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 54.33526011560693%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAALCAIAAADwazoUAAAACXBIWXMAAAsTAAALEwEAmpwYAAACP0lEQVR42kWRzU8TQRiH+5f4H3gxRo+eNCbcTIxeuJiYaGI0HLyIIIkaFUz8isYLEj1oIhERTQgHLEqwEFIKLpRtod3ObHe7pfOxszO729mlO24LxOfwzhzeZ97f5M2oA5JOWog2sT1+Wn97XH93ihTexB0lZZtzzlzmhR4uYjAG8qN57aFGpkiikkzqpF6cJFF64dZW6ceH7OulwueavowIxRgLIYIePvfhOMxdz2l3NF7kqZhRR3RHR8lw0z1Wte7WHAFtz/MIpaQHRpiG1PxuLg4s6k91SeWhvBkEVyG8bRjlhq3iaBHtXdrUhgCoNxoYIdwDtRCX3Jq2cjdzxqgh8ZG80w6ubKwNloq89/N8GPYXCs9sG3Ee+L7fyyy4EFLAaZi9lS2OFiU6klcjdXIbXgAYdV1lR9EJXb9fqylCqOumyWn3dH3lwxk4f21ef6RHNOrKndg1yczM7otf1qvQ/11q+59qlbmd8rS+9R4YiFLuUcYprmO6SuFX2FholCfLrYVWWAkzYbhlmRdLa2cc0KfEvec7lRtVkr66IWRf2QJ7QjAVxLFboUsjf7JD2eZyU/+o50ZyzqyTxk6SRIXSqIKBjb+Xzep5n46ItuOxsd3Nc+XSWcfpJ2yFGGL7ZTH/OI9WkPXFWh9bx1mcOdxRhBmbAOBBpTrIxWQU+e32bHPviWEMSzm+nzQk7tjfLDSHpCGdnw6cgoEW/N/zAUGgPC9hzGNsn3Nl24FpinrdAXXQEi3RESxgfuwfNP8DN448Jz2CY94AAAAASUVORK5CYII=&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;The render tree and the corresponding DOM tree&quot;
        title=&quot;&quot;
        src=&quot;/static/7969ebc91f1756ec2ac29f8d4a934e01/1e043/the-render-tree-and-the-corresponding-dom-tree-31.png&quot;
        srcset=&quot;/static/7969ebc91f1756ec2ac29f8d4a934e01/991de/the-render-tree-and-the-corresponding-dom-tree-31.png 173w,
/static/7969ebc91f1756ec2ac29f8d4a934e01/e4d6b/the-render-tree-and-the-corresponding-dom-tree-31.png 345w,
/static/7969ebc91f1756ec2ac29f8d4a934e01/1e043/the-render-tree-and-the-corresponding-dom-tree-31.png 690w,
/static/7969ebc91f1756ec2ac29f8d4a934e01/e9beb/the-render-tree-and-the-corresponding-dom-tree-31.png 730w&quot;
        sizes=&quot;(max-width: 690px) 100vw, 690px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Figure 13: The render tree and the corresponding DOM tree&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;h4 id=&quot;the-flow-of-constructing-the-tree&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#the-flow-of-constructing-the-tree&quot; aria-label=&quot;the flow of constructing the tree permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;The Flow of Constructing the Tree&lt;/h4&gt;
&lt;p&gt;In Firefox, the presentation is registered as a listener for DOM updates. The presentation delegates frame creation to the &quot;FrameConstructor&quot; and the constructor resolves style (see &lt;a href=&quot;#style-computation&quot;&gt;style computation&lt;/a&gt;) and creates a frame. In WebKit the process of resolving the style and creating a renderer is called &quot;attachment&quot;. Every DOM node has an &quot;attach&quot; method. Attachment is synchronous, node insertion to the DOM tree calls the new node &quot;attach&quot; method.&lt;/p&gt;
&lt;p&gt;Processing the html and body tags results in the construction of the render tree root. The root render object corresponds to what the CSS spec calls the containing block - the top most block that contains all other blocks. Its dimensions are the viewport - the browser window display area dimensions. Firefox calls it ViewPortFrame and WebKit calls it RenderView. This is the render object that the document point to. The rest of the tree is constructed as a DOM nodes insertion. See CSS2 on this topic - &lt;a href=&quot;https://www.w3.org/TR/CSS21/intro.html#processing-model&quot;&gt;https://www.w3.org/TR/CSS21/intro.html#processing-model&lt;/a&gt;&lt;/p&gt;
&lt;h4 id=&quot;style-computation&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#style-computation&quot; aria-label=&quot;style computation permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Style Computation&lt;/h4&gt;
&lt;p&gt;Building the render tree requires calculating the visual properties of each render object. This is done by calculating the style properties of each element. The style includes stylesheets of various origins, inline style elements and visual properties in the HTML (like the &lt;code class=&quot;language-text&quot;&gt;bgcolor&lt;/code&gt; property). The latter is translated to matching CSS style properties. The origins of style sheets are the browser&apos;s default style sheets, the style sheets provided by the page author and user style sheets - these are style sheets provides by the browser user (browsers let you define your favorite style. In Firefox, for instance, this is done by placing a style sheet in the &quot;Firefox Profile&quot; folder). Style computation brings up a few difficulties:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a id=&quot;issue1&quot;&gt;&lt;/a&gt;Style data is a very large construct, holding the numerous style properties, this can cause memory problems.&lt;/li&gt;
&lt;li&gt;&lt;a id=&quot;issue2&quot;&gt;&lt;/a&gt;Finding the matching rules for each element can cause performance issues if it&apos;s not optimized. Traversing the entire rule list for each element to find matches is a heavy task. Selectors can have complex structure that can cause the matching process to start on a seemingly promising path that is proven to be futile and another path has to be tried. For example - this compound selector &lt;code class=&quot;language-text&quot;&gt;div div div div {... }&lt;/code&gt; means the rules apply to a &lt;code class=&quot;language-text&quot;&gt;&amp;lt;div&gt;&lt;/code&gt; which is the descendant of 3 divs. Suppose you want to check if the rule applies for a given &lt;code class=&quot;language-text&quot;&gt;&amp;lt;div&gt;&lt;/code&gt; element. You choose a certain path up the tree for checking. You may need to traverse the node tree up just to find out there are only two divs and the rule does not apply. You then need to try other paths in the tree.&lt;/li&gt;
&lt;li&gt;&lt;a id=&quot;issue3&quot;&gt;&lt;/a&gt;Applying the rules involves quite complex cascade rules that define the hierarchy of the rules.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Let&apos;s see how the browsers face these issues:&lt;/p&gt;
&lt;h5 id=&quot;sharing-style-data&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#sharing-style-data&quot; aria-label=&quot;sharing style data permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Sharing Style Data&lt;/h5&gt;
&lt;p&gt;WebKit nodes references style objects (RenderStyle). These objects can be shared by nodes in some conditions. The nodes are siblings or cousins and:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The elements must be in the same mouse state (e.g., one can&apos;t be in :hover while the other isn&apos;t)&lt;/li&gt;
&lt;li&gt;Neither element should have an id&lt;/li&gt;
&lt;li&gt;The tag names should match&lt;/li&gt;
&lt;li&gt;The class attributes should match&lt;/li&gt;
&lt;li&gt;The set of mapped attributes must be identical&lt;/li&gt;
&lt;li&gt;The link states must match&lt;/li&gt;
&lt;li&gt;The focus states must match&lt;/li&gt;
&lt;li&gt;Neither element should be affected by attribute selectors, where affected is defined as having any selector match that uses an attribute selector in any position within the selector at all&lt;/li&gt;
&lt;li&gt;There must be no inline style attribute on the elements&lt;/li&gt;
&lt;li&gt;There must be no sibling selectors in use at all. WebCore&lt;sup id=&quot;fnref-12&quot;&gt;&lt;a href=&quot;#fn-12&quot; class=&quot;footnote-ref&quot;&gt;12&lt;/a&gt;&lt;/sup&gt; simply throws a global switch when any sibling selector is encountered and disables style sharing for the entire document when they are present. This includes the + selector and selectors like :first-child and :last-child.&lt;/li&gt;
&lt;/ol&gt;
&lt;h5 id=&quot;firefox-rule-tree&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#firefox-rule-tree&quot; aria-label=&quot;firefox rule tree permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Firefox Rule Tree&lt;/h5&gt;
&lt;p&gt;Firefox has two extra trees for easier style computation - the rule tree and style context tree&lt;sup id=&quot;fnref-3&quot;&gt;&lt;a href=&quot;#fn-3&quot; class=&quot;footnote-ref&quot;&gt;3&lt;/a&gt;&lt;/sup&gt;. WebKit also has style objects but they are not stored in a tree like the style context tree, only the DOM node points to its relevant style.&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 336px; &quot;
    &gt;
      &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 121.38728323699422%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAYCAIAAAB1KUohAAAACXBIWXMAAAsTAAALEwEAmpwYAAADhUlEQVR42n1UW2/bNhT2Py+2rmkcZ2kuXdet61v3MHR9SAq024BtSZCsmY0gtuJLfIksmdT9YkmURFGUrB1JWZpuQQ8OiAOSH8/5eD6ysVqtiqJIkkSWZYyxJEkQ+L4Pk7CU5xkEqqrM59cYI4QWpmlUSzC/ahSVMcYURen1ev1+XxAE13VrcH30cumNx9NuF1YGoijVSzDegG8tyzI4iFIax5SQwHHmjiMGAeLcrNzi3EgShVLMWHQDhpOiKIKEQRBUyChJmGEgjFsIrcny2nT6xWKxZlktcNvetKym541KcJ7ngInj+JZ/TZUQx7b3GHvK+fM0/ZbSbxh7Vgem2SJkXILhetI0hSBlDC4FSqgvjBDbMLaz7FlRfH/X8/w7x9kMgqsGpPU8D7bGNHk/HB9dDiD2fC9NsyCwFWUry54XxQ9F8eIecHWZS+hJGMe/DkY9GVUHxZqmz2ZDUVxX1aZhAMmvfX8nivbACdm1rI2bsiFzwphuGBnnYRiKkgTNTFMOYNveBTBC64qyIcuPdb0Frmmtj2Dieb+1Oz9fDh0/6GL11VnHrYiYFrYsSLIJ2QDjuk98f5uQHShE05phOG6sqlZNF+hkKgLtMVZOJrOYUph0HBWhLSgYCE+nDz1vpyheggfBHkKPbjgbrmvYNgSKaTrLMqeIMWXcNPFk0pSkx4Q81bRN1932/V1AWta2ojRdd9iAJu0Lg98nMxKGr4XBOcKO7/94IQhYcywszr+S5Qea9shx1pPkieuCNjaiaEvXv7SsiwaI60rVRMOEhCf9QX92DUTOxpNOT1CwNJm8Nox3CO2r6oGi7GN8gNCBrr/T9be2LX6i7YTSZaXQiJCFLM/nUp7X4i3CiEcRg4BSVm8GLZXgVeXFv2NtIB4QbL2Y0mB8/mdCQfBxGPqVeFeg/08y377B2gCc8VK27tWR+/5B7KAsL8rnRincFIz/fZJ3rd6UrQpHR8vpBxBiXpZdGlCDNJ8BlyVgrJidN/7oD84zp/OTPTqCXsI7B8L3fAZ3KZQSME375GUo7EchiT68kP56Y3tRmjJ4tp8Df2wBS2B3GaQpWVrS6NwwzLxqwz1g4AlVATHOoT1RnuUpTzlPWV74wlv3l4f97nldWuP/pcJlnJ6eHh4eDofwJMV2u318fNy9uDj7u61dXxK5C/9cvf/+suEPhJy8MoiBYf0r1tXe2j+qwymfPWFNtAAAAABJRU5ErkJggg==&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Firefox Style Content Tree&quot;
        title=&quot;&quot;
        src=&quot;/static/ebd5f261572a689ede9e540ed984a7f0/d99f2/firefox-style-content-tree.png&quot;
        srcset=&quot;/static/ebd5f261572a689ede9e540ed984a7f0/991de/firefox-style-content-tree.png 173w,
/static/ebd5f261572a689ede9e540ed984a7f0/d99f2/firefox-style-content-tree.png 336w&quot;
        sizes=&quot;(max-width: 336px) 100vw, 336px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Figure 14: Firefox Style Content Tree&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;The style contexts contain end values. The values are computed by applying all the matching rules in the correct order and performing manipulations that transform them from logical to concrete values. For example - if the logical value is percentage of the screen it will be calculated and transformed to absolute units. The rule tree idea is really clever. It enables sharing these values between nodes to avoid computing them again. This also saves space. All the matched rules are stored in a tree. The bottom nodes in a path have higher priority. The tree contains all the paths for rule matches that were found. Storing the rules is done lazily. The tree isn&apos;t calculated at the beginning for every node, but whenever a node style needs to be computed the computed paths are added to the tree. The idea is to see the tree paths as words in a lexicon. Let&apos;s say we already computed this rule tree:&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 400px; &quot;
    &gt;
      &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 65.31791907514452%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAANCAYAAACpUE5eAAAACXBIWXMAAAsTAAALEwEAmpwYAAAChElEQVR42mNgIAD+///PAqIPXflWd/Tqxz8HLn9eDeQy/WdgYGQgB6xa9Z8ZRM/b/SZp3vYnJ+fvfFHLQAFgPHHvi/6Ze9/dFu6+b8hgX8+yfN8d55N3PjsfvPxWFuoDwi4FKmIC0cce/ec8df/bnbsf//+/8OzXhgV7n2tfefH728Ov//+fe/y7F6TmzJn/rCD1YD2EDE+beYZ1+rZnrTO3PZ89ZcvLhPqlZ0Tm7347YcbWl3P71j7whgTJKmaCLjx6/a3VlQdfQ7aceuESX7+f4/SNl9a7zzyN3n/trc78/fs5tpx46H/g0qvQ5XsfKveuuqJy4e7XYCD23X/+vQCyNxlBuH7/f5Yzj76ffvT9//+LL/4cnrnpityVl78/Pv8L8vbvKXuufrK9+urP/wff/v8/+eBb9NF739Me/QDKPf3278Ctz65YXThh/ZOs2TteTZ+942ViVv1+ntm73lTP3fl60uzdbz3q51+RAMq3zdz2smfm1he603e81J+y8Wn3hPVPm3tXPZKGx9L6488VLj78tejM3W/b9154HwQOn/+QJAMLpzO3vzuevfNt/fGbnxYduvZRDSQWCpQ7euND7Ynr79aeufOtDh6jKw68Nj144/fPc8///9916UcdSOzWrX/sEPo/mN5x4Xvu8fv//x++/ff/lvNfwJHSe+wR5+4r36+cfPD//57LP84xnLj1hg+YKoSnrb0gltZ/1rJs9nmz7MknhaEhC0sGYDq+f79A6cyLRiWzzhuk1W/iggVR1pRjKrWLb5gWTDulxHDo8peT11/8/3/g6rcLDFr1bNAYYiQ7Kyze+3rOsn3vLi/Z/3ahff1+FkKpH5Ya0ARhYowAvUKM7YPx8rYAAAAASUVORK5CYII=&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Computed Rule Tree&quot;
        title=&quot;&quot;
        src=&quot;/static/6f9fc4959f0df56584840b047c8d6724/e17e5/computed-rule-tree.png&quot;
        srcset=&quot;/static/6f9fc4959f0df56584840b047c8d6724/991de/computed-rule-tree.png 173w,
/static/6f9fc4959f0df56584840b047c8d6724/e4d6b/computed-rule-tree.png 345w,
/static/6f9fc4959f0df56584840b047c8d6724/e17e5/computed-rule-tree.png 400w&quot;
        sizes=&quot;(max-width: 400px) 100vw, 400px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Figure 15: Computed Rule Tree&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;Suppose we need to match rules for another element in the content tree, and find out the matched rules (in the correct order) are &lt;code class=&quot;language-text&quot;&gt;B - E - I&lt;/code&gt;. We already have this path in the tree because we already computed path &lt;code class=&quot;language-text&quot;&gt;A - B - E - I - L&lt;/code&gt;. We will now have less work to do. Let&apos;s see how the tree saves as work.&lt;/p&gt;
&lt;h6 id=&quot;division-into-structs&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#division-into-structs&quot; aria-label=&quot;division into structs permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Division Into Structs&lt;/h6&gt;
&lt;p&gt;The style contexts are divided into structs. Those structs contain style information for a certain categories like border or color. All the properties in a struct are either inherited or non inherited. Inherited properties are properties that unless defined by the element, are inherited from its parent. Non inherited properties (called &quot;reset&quot; properties) use default values if not defined. The tree helps us by caching entire structs (containing the computed end values) in the tree. The idea is that if the bottom node didn&apos;t supply a definition for a struct, a cached struct in an upper node can be used.&lt;/p&gt;
&lt;h6 id=&quot;computing-the-style-contexts-using-the-rule-tree&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#computing-the-style-contexts-using-the-rule-tree&quot; aria-label=&quot;computing the style contexts using the rule tree permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Computing the Style Contexts Using the Rule Tree&lt;/h6&gt;
&lt;p&gt;When computing the style context for a certain element, we first compute a path in the rule tree or use an existing one. We then begin to apply the rules in the path to fill the structs in our new style context. We start at the bottom node of the path - the one with the highest precedence (usually the most specific selector) and traverse the tree up until our struct is full. If there is no specification for the struct in that rule node, then we can greatly optimize - we go up the tree until we find a node that specifies it fully and simply point to it - that&apos;s the best optimization - the entire struct is shared. This saves computation of end values and memory.&lt;/p&gt;
&lt;p&gt;If we find partial definitions we go up the tree until the struct is filled.&lt;/p&gt;
&lt;p&gt;If we didn&apos;t find any definitions for our struct, then in case the struct is an &quot;inherited&quot; type - we point to the struct of our parent in the &lt;strong&gt;context tree&lt;/strong&gt;, in this case we also succeeded in sharing structs. If its a reset struct then default values will be used.&lt;/p&gt;
&lt;p&gt;If the most specific node does add values then we need to do some extra calculations for transforming it to actual values. We then cache the result in the tree node so it can be used by children.&lt;/p&gt;
&lt;p&gt;In case an element has a sibling or a brother that points to the same tree node then the &lt;strong&gt;entire style context&lt;/strong&gt; can be shared between them.&lt;/p&gt;
&lt;p&gt;Lets see an example, suppose we have this HTML:&lt;/p&gt;
&lt;figure&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;html&quot;&gt;&lt;pre class=&quot;language-html&quot;&gt;&lt;code class=&quot;language-html&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;html&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;body&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
    &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;div&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;err&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;id&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;div1&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
      &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;p&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
        this is a &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;span&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;big&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt; big error &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;span&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
        this is also a
        &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;span&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;big&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt; very big error&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;span&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt; error
      &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;p&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
    &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;div&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
    &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;div&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;err&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;id&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;div2&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;another error&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;div&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;body&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;html&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
  &lt;figcaption&gt;Similar CSS classes share the same style context&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;And the following rules:&lt;/p&gt;
&lt;figure&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;css&quot;&gt;&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;div&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;margin&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 5px&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;color&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; black&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token selector&quot;&gt;.err&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;color&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; red&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token selector&quot;&gt;.big&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;margin-top&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 3px&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token selector&quot;&gt;div span&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;margin-bottom&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 4px&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token selector&quot;&gt;#div1&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;color&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; blue&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token selector&quot;&gt;#div2&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;color&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; green&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
  &lt;figcaption&gt;The CSS&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;To simplify things let&apos;s say we need to fill out only two structs - the color struct and the margin struct. The color struct contains only one member - the color. The margin struct contains the four sides. The resulting rule tree will look like this (the nodes are marked with the node name : the # of rule they point at):&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 500px; &quot;
    &gt;
      &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 58.95953757225434%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAMCAYAAABiDJ37AAAACXBIWXMAAAsTAAALEwEAmpwYAAAB3ElEQVR42mNgwAL+///PBKJPPfyz6sab//8PXf3069zD3//PPvp7d+amp1xQNYwMxAKY4nl73vnO3fm6YdqWpxWzt7+onbfvQ9a2W//Y/6/6zwyzlP7gypX/bOfv/1fYeuaF7vbzzxVALlkFFAMHwe2f4cevfV516tbXhSfv/HYGia1atYoZSIFcywjFDKAw4ZeT0xUEcY7c/m954PKnf6fu/ft//M7/Q9AgAGli2HzmW+3aw2++rT389vOy3c/zQHplZFSlgbQkEItDMYMUEGuwsbFpAGneLZf+C07b+CR00obHcTN3vbJH94HxzP+s9fXw8GOGYiYkzMAKxCAvscMEIE4PZYYZsgrqwuM3/3sdvPzpyaHLH1+euPO/BzlF4Ewqx2//9jtx49vZI1c+nj19708uSOzMmf8gSxkWH/hgunjPi4WL97xcuuzQ+1R8yYdTSEhaBkgLLtj2IGbd0Q8XVhx4dXHNsY+lkICHRAopAB5DhNInyCdQzIg3EW878Ybv9N2fjUcuv19w5t6v0hM3v9kev/l1zqmbX6afvf8nAm94ofiVkxMU7WJpRT0aW099ObHm0IvXm09+3rbx5PeETSc+PFt/5M3rbed+dgHVcEhKSspBkwgHLgMBSPoCKOujJ3QAAAAASUVORK5CYII=&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;The rule tree&quot;
        title=&quot;&quot;
        src=&quot;/static/39e33993b9ab53dd6e255c31eb408454/0b533/the-rule-tree.png&quot;
        srcset=&quot;/static/39e33993b9ab53dd6e255c31eb408454/991de/the-rule-tree.png 173w,
/static/39e33993b9ab53dd6e255c31eb408454/e4d6b/the-rule-tree.png 345w,
/static/39e33993b9ab53dd6e255c31eb408454/0b533/the-rule-tree.png 500w&quot;
        sizes=&quot;(max-width: 500px) 100vw, 500px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Figure 16: The Rule Tree&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;The context tree will look like this (node name : rule node they point to):&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 400px; &quot;
    &gt;
      &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 76.30057803468209%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/jpeg;base64,/9j/2wBDABALDA4MChAODQ4SERATGCgaGBYWGDEjJR0oOjM9PDkzODdASFxOQERXRTc4UG1RV19iZ2hnPk1xeXBkeFxlZ2P/2wBDARESEhgVGC8aGi9jQjhCY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2P/wgARCAAPABQDASIAAhEBAxEB/8QAGAAAAwEBAAAAAAAAAAAAAAAAAAECAwX/xAAVAQEBAAAAAAAAAAAAAAAAAAABAP/aAAwDAQACEAMQAAAB7+TSWUF//8QAGhAAAgIDAAAAAAAAAAAAAAAAAAEREgIQQf/aAAgBAQABBQI7KLLImuv/xAAUEQEAAAAAAAAAAAAAAAAAAAAQ/9oACAEDAQE/AT//xAAUEQEAAAAAAAAAAAAAAAAAAAAQ/9oACAECAQE/AT//xAAZEAADAAMAAAAAAAAAAAAAAAAAAREQITH/2gAIAQEABj8CLo6REbx//8QAHRAAAgIBBQAAAAAAAAAAAAAAAAERITFBUWFxgf/aAAgBAQABPyFtJSyE9FucQyCH0Ra14Uf/2gAMAwEAAgADAAAAEDs//8QAFREBAQAAAAAAAAAAAAAAAAAAARD/2gAIAQMBAT8QZ//EABYRAQEBAAAAAAAAAAAAAAAAAAEAIf/aAAgBAgEBPxAEsv/EABwQAQACAgMBAAAAAAAAAAAAAAEAEVGRITHh8f/aAAgBAQABPxC9IGWWIGXmzcHLNkEL8vqNsUlnxAR0an//2Q==&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;The context tree&quot;
        title=&quot;&quot;
        src=&quot;/static/fd0c2a98ec909722fa95f04dad9f2972/066f9/the-context-tree.jpg&quot;
        srcset=&quot;/static/fd0c2a98ec909722fa95f04dad9f2972/9ac50/the-context-tree.jpg 173w,
/static/fd0c2a98ec909722fa95f04dad9f2972/8d48c/the-context-tree.jpg 345w,
/static/fd0c2a98ec909722fa95f04dad9f2972/066f9/the-context-tree.jpg 400w&quot;
        sizes=&quot;(max-width: 400px) 100vw, 400px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Figure 17: The Context Tree&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;Suppose we parse the HTML and get to the second &lt;code class=&quot;language-text&quot;&gt;&amp;lt;div&gt;&lt;/code&gt; tag. We need to create a style context for this node and fill its style structs. We will match the rules and discover that the matching rules for the &lt;code class=&quot;language-text&quot;&gt;&amp;lt;div&gt;&lt;/code&gt; are 1 ,2 and 6. This means there is already an existing path in the tree that our element can use and we just need to add another node to it for rule 6 (node F in the rule tree). We will create a style context and put it in the context tree. The new style context will point to node F in the rule tree.&lt;/p&gt;
&lt;p&gt;We now need to fill the style structs. We will begin by filling out the margin struct. Since the last rule node(F) doesn&apos;t add to the margin struct, we can go up the tree until we find a cached struct computed in a previous node insertion and use it. We will find it on node B, which is the uppermost node that specified margin rules. We do have a definition for the color struct, so we can&apos;t use a cached struct. Since color has one attribute we don&apos;t need to go up the tree to fill other attributes. We will compute the end value (convert string to RGB etc) and cache the computed struct on this node.&lt;/p&gt;
&lt;p&gt;The work on the second &lt;code class=&quot;language-text&quot;&gt;&amp;lt;span&gt;&lt;/code&gt; element is even easier. We will match the rules and come to the conclusion that it points to rule G, like the previous span. Since we have siblings that point to the same node, we can share the entire style context and just point to the context of the previous span.&lt;/p&gt;
&lt;p&gt;For structs that contain rules that are inherited from the parent, caching is done on the context tree (the color property is actually inherited, but Firefox treats it as reset and caches it on the rule tree).&lt;/p&gt;
&lt;p&gt;For instance if we added rules for fonts in a paragraph:&lt;/p&gt;
&lt;figure&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;css&quot;&gt;&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;p&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;font-family&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; Verdana&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  font &lt;span class=&quot;token property&quot;&gt;size&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 10px&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;font-weight&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; bold&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
  &lt;figcaption&gt;Rules for fonts in a paragraph&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;Then the paragraph element, which is a child of the div in the context tree, could have shared the same font struct as his parent. This is if no font rules where specified for the paragraph.&lt;/p&gt;
&lt;p&gt;In WebKit, who does not have a rule tree, the matched declarations are traversed four times. First non-important high priority properties are applied (properties that should be applied first because others depend on them, such as display), then high priority important, then normal priority non-important, then normal priority important rules. This means that properties that appear multiple times will be resolved according to the correct cascade order. The last wins.&lt;/p&gt;
&lt;p&gt;So to summarize: sharing the style objects (entirely or some of the structs inside them) solves issues &lt;a href=&quot;#issue1&quot;&gt;1&lt;/a&gt; and &lt;a href=&quot;#issue3&quot;&gt;3&lt;/a&gt;. The Firefox rule tree also helps in applying the properties in the correct order.&lt;/p&gt;
&lt;h5 id=&quot;manipulating-the-rules-for-an-easy-match&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#manipulating-the-rules-for-an-easy-match&quot; aria-label=&quot;manipulating the rules for an easy match permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Manipulating the Rules for an Easy Match&lt;/h5&gt;
&lt;p&gt;There are several sources for style rules:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;CSS rules, either in external style sheets or in style elements:&lt;br&gt;
&lt;code class=&quot;language-text&quot;&gt;p {color: blue}&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Inline style attributes:&lt;br&gt;
&lt;code class=&quot;language-text&quot;&gt;&amp;lt;p style=&quot;color: blue&quot; /&gt;&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;HTML visual attributes (which are mapped to relevant style rules):&lt;br&gt;
&lt;code class=&quot;language-text&quot;&gt;&amp;lt;p bgcolor=&quot;blue&quot; /&gt;&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The last two are easily matched to the element since he owns the style attributes and HTML attributes can be mapped using the element as the key.&lt;/p&gt;
&lt;p&gt;As noted previously in &lt;a href=&quot;#issue2&quot;&gt;issue #2&lt;/a&gt;, the CSS rule matching can be trickier. To solve the difficulty, the rules are manipulated for easier access.&lt;/p&gt;
&lt;p&gt;After parsing the stylesheet, the rules are added one of several hash maps, according to the selector. There are maps by id, by class name, by tag name and a general map for anything that doesn&apos;t fit into those categories. If the selector is an id, the rule will be added to the id map, if it&apos;s a class it will be added to the class map etc. This manipulation makes it much easier to match rules. There is no need to look in every declaration - we can extract the relevant rules for an element from the maps. This optimization eliminates 95+% of the rules, so that they need not even be considered during the matching process&lt;sup id=&quot;fnref-11&quot;&gt;&lt;a href=&quot;#fn-11&quot; class=&quot;footnote-ref&quot;&gt;11&lt;/a&gt;&lt;/sup&gt;.&lt;/p&gt;
&lt;p&gt;Let&apos;s see for example the following style rules:&lt;/p&gt;
&lt;figure&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;css&quot;&gt;&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;p.error&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;color&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; red&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token selector&quot;&gt;#messageDiv&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;height&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 50px&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token selector&quot;&gt;div&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;margin&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 5px&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
  &lt;figcaption&gt;These rules will be stored in different maps&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;The first rule will be inserted into the class map. The second into the id map and the third into the tag map. For the following HTML fragment:&lt;/p&gt;
&lt;figure&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;html&quot;&gt;&lt;pre class=&quot;language-html&quot;&gt;&lt;code class=&quot;language-html&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;p&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;error&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;an error occurred&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;p&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;div&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;id&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;messageDiv&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;this is a message&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;div&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
  &lt;figcaption&gt;The accompanying markup&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;We will first try to find rules for the p element. The class map will contain an &quot;error&quot; key under which the rule for &quot;p.error&quot; is found. The div element will have relevant rules in the id map (the key is the id) and the tag map. So the only work left is finding out which of the rules that were extracted by the keys really match. For example if the rule for the div was:&lt;/p&gt;
&lt;figure&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;css&quot;&gt;&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;table div&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;margin&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 5px&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
  &lt;figcaption&gt;If the rule for the div...&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;It will still be extracted from the tag map, because the key is the rightmost selector, but it would not match our div element, who does not have a table ancestor. Both WebKit and Firefox do this manipulation.&lt;/p&gt;
&lt;h5 id=&quot;applying-the-rules-in-the-correct-cascade-order&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#applying-the-rules-in-the-correct-cascade-order&quot; aria-label=&quot;applying the rules in the correct cascade order permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Applying the Rules in the Correct Cascade Order&lt;/h5&gt;
&lt;p&gt;The style object has properties corresponding to every visual attribute (all css attributes but more generic). If the property is not defined by any of the matched rules - then some properties can be inherited by the parent element style object. Other properties have default values. The problem begins when there is more than one definition - here comes the cascade order to solve the issue.&lt;/p&gt;
&lt;h6 id=&quot;stylesheet-cascade-order&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#stylesheet-cascade-order&quot; aria-label=&quot;stylesheet cascade order permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Stylesheet Cascade Order&lt;/h6&gt;
&lt;p&gt;A declaration for a style property can appear in several style sheets, and several times inside a style sheet. This means the order of applying the rules is very important. This is called the &quot;cascade&quot; order. According to CSS2 spec, the cascade order is (from low to high):&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Browser declarations&lt;/li&gt;
&lt;li&gt;User normal declarations&lt;/li&gt;
&lt;li&gt;Author normal declarations&lt;/li&gt;
&lt;li&gt;Author important declarations&lt;/li&gt;
&lt;li&gt;User important declarations&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The browser declarations are least important and the user overrides the author only if the declaration was marked as important. Declarations with the same order will be sorted by &lt;a href=&quot;#Specificity&quot;&gt;specificity&lt;/a&gt; and then the order they are specified. The HTML visual attributes are translated to matching CSS declarations. They are treated as author rules with low priority.&lt;/p&gt;
&lt;h6 id=&quot;specificity&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#specificity&quot; aria-label=&quot;specificity permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Specificity&lt;/h6&gt;
&lt;p&gt;The selector specificity is defined by the &lt;a href=&quot;https://www.w3.org/TR/CSS2/cascade.html#specificity&quot;&gt;CSS2 specification&lt;/a&gt; as follows:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Count 1 if the declaration is from is a &apos;style&apos; attribute rather than a rule with a selector, 0 otherwise (= a)&lt;/li&gt;
&lt;li&gt;Count the number of ID attributes in the selector (= b)&lt;/li&gt;
&lt;li&gt;Count the number of other attributes and pseudo-classes in the selector (= c)&lt;/li&gt;
&lt;li&gt;Count the number of element names and pseudo-elements in the selector (= d)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Concatenating the four numbers a-b-c-d (in a number system with a large base) gives the specificity. The number base you need to use is defined by the highest count you have in one of the categories. For example, if a=14 you can use hexadecimal base. In the unlikely case where a=17 you will need a 17 digits number base. The later situation can happen with a selector like this: html body div div p... (17 tags in your selector.. not very likely). Some examples:&lt;/p&gt;
&lt;figure&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;css&quot;&gt;&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt; &lt;span class=&quot;token selector&quot;&gt;*&lt;/span&gt;             &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;  &lt;span class=&quot;token comment&quot;&gt;/* a=0 b=0 c=0 d=0 -&gt; specificity = 0,0,0,0 */&lt;/span&gt;
 &lt;span class=&quot;token selector&quot;&gt;li&lt;/span&gt;            &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;  &lt;span class=&quot;token comment&quot;&gt;/* a=0 b=0 c=0 d=1 -&gt; specificity = 0,0,0,1 */&lt;/span&gt;
 &lt;span class=&quot;token selector&quot;&gt;li:first-line&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;  &lt;span class=&quot;token comment&quot;&gt;/* a=0 b=0 c=0 d=2 -&gt; specificity = 0,0,0,2 */&lt;/span&gt;
 &lt;span class=&quot;token selector&quot;&gt;ul li&lt;/span&gt;         &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;  &lt;span class=&quot;token comment&quot;&gt;/* a=0 b=0 c=0 d=2 -&gt; specificity = 0,0,0,2 */&lt;/span&gt;
 &lt;span class=&quot;token selector&quot;&gt;ul ol+li&lt;/span&gt;      &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;  &lt;span class=&quot;token comment&quot;&gt;/* a=0 b=0 c=0 d=3 -&gt; specificity = 0,0,0,3 */&lt;/span&gt;
 &lt;span class=&quot;token selector&quot;&gt;h1 + *[rel=up]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;  &lt;span class=&quot;token comment&quot;&gt;/* a=0 b=0 c=1 d=1 -&gt; specificity = 0,0,1,1 */&lt;/span&gt;
 &lt;span class=&quot;token selector&quot;&gt;ul ol li.red&lt;/span&gt;  &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;  &lt;span class=&quot;token comment&quot;&gt;/* a=0 b=0 c=1 d=3 -&gt; specificity = 0,0,1,3 */&lt;/span&gt;
 &lt;span class=&quot;token selector&quot;&gt;li.red.level&lt;/span&gt;  &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;  &lt;span class=&quot;token comment&quot;&gt;/* a=0 b=0 c=2 d=1 -&gt; specificity = 0,0,2,1 */&lt;/span&gt;
 &lt;span class=&quot;token selector&quot;&gt;#x34y&lt;/span&gt;         &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;  &lt;span class=&quot;token comment&quot;&gt;/* a=0 b=1 c=0 d=0 -&gt; specificity = 0,1,0,0 */&lt;/span&gt;
 style=&lt;span class=&quot;token string&quot;&gt;&quot;&quot;&lt;/span&gt;          &lt;span class=&quot;token comment&quot;&gt;/* a=1 b=0 c=0 d=0 -&gt; specificity = 1,0,0,0 */&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
  &lt;figcaption&gt;Some examples&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;h6 id=&quot;sorting-the-rules&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#sorting-the-rules&quot; aria-label=&quot;sorting the rules permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Sorting the rules&lt;/h6&gt;
&lt;p&gt;After the rules are matched, they are sorted according to the cascade rules. WebKit uses bubble sort for small lists and merge sort for big ones. WebKit implements sorting by overriding the &lt;code class=&quot;language-text&quot;&gt;&gt;&lt;/code&gt; operator for the rules:&lt;/p&gt;
&lt;figure&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;cpp&quot;&gt;&lt;pre class=&quot;language-cpp&quot;&gt;&lt;code class=&quot;language-cpp&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;static&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;bool&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;operator&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;&gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;CSSRuleData&lt;span class=&quot;token operator&quot;&gt;&amp;amp;&lt;/span&gt; r1&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; CSSRuleData&lt;span class=&quot;token operator&quot;&gt;&amp;amp;&lt;/span&gt; r2&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;token keyword&quot;&gt;int&lt;/span&gt; spec1 &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; r1&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;selector&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;-&gt;&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;specificity&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;token keyword&quot;&gt;int&lt;/span&gt; spec2 &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; r2&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;selector&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;-&gt;&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;specificity&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;token keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;spec1 &lt;span class=&quot;token operator&quot;&gt;==&lt;/span&gt; spec2&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; r1&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;position&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;&gt;&lt;/span&gt; r2&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;position&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; spec1 &lt;span class=&quot;token operator&quot;&gt;&gt;&lt;/span&gt; spec2&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
  &lt;figcaption&gt;WebKit overrides the &gt; operator&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;h4 id=&quot;gradual-process&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#gradual-process&quot; aria-label=&quot;gradual process permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Gradual Process&lt;/h4&gt;
&lt;p&gt;WebKit uses a flag that marks if all top level style sheets (including @imports) have been loaded. If the style is not fully loaded when attaching - place holders are used and it s marked in the document, and they will be recalculated once the style sheets are loaded.&lt;/p&gt;
&lt;h3 id=&quot;layout&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#layout&quot; aria-label=&quot;layout permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Layout&lt;/h3&gt;
&lt;p&gt;When the renderer is created and added to the tree, it does not have a position and size. Calculating these values is called layout or reflow.&lt;/p&gt;
&lt;p&gt;HTML uses a flow based layout model, meaning that most of the time it is possible to compute the geometry in a single pass. Elements later &quot;in the flow&apos;&apos; typically do not affect the geometry of elements that are earlier &quot;in the flow&apos;&apos;, so layout can proceed left-to-right, top-to-bottom through the document. There are exceptions - for example, HTML tables may require more than one pass&lt;sup id=&quot;fnref-8&quot;&gt;&lt;a href=&quot;#fn-8&quot; class=&quot;footnote-ref&quot;&gt;8&lt;/a&gt;&lt;/sup&gt;.&lt;/p&gt;
&lt;p&gt;The coordinate system is relative to the root frame. Top and left coordinates are used.&lt;/p&gt;
&lt;p&gt;Layout is a recursive process. It begins at the root renderer, which corresponds to the &lt;code class=&quot;language-text&quot;&gt;&amp;lt;html&gt;&lt;/code&gt; element of the HTML document. Layout continues recursively through some or all of the frame hierarchy, computing geometric information for each renderer that requires it.&lt;/p&gt;
&lt;p&gt;The position of the root renderer is 0, 0 and its dimensions is the viewport - the visible part of the browser window. All renderers have a &quot;layout&quot; or &quot;reflow&quot; method, each renderer invokes the layout method of its children that need layout.&lt;/p&gt;
&lt;h4 id=&quot;dirty-bit-system&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#dirty-bit-system&quot; aria-label=&quot;dirty bit system permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Dirty Bit System&lt;/h4&gt;
&lt;p&gt;In order not to do a full layout for every small change, browser use a &quot;dirty bit&quot; system. A renderer that is changed or added marks itself and its children as &quot;dirty&quot; - needing layout. There are two flags - &quot;dirty&quot; and &quot;children are dirty&quot;. Children are dirty means that although the renderer itself may be ok, it has at least one child that needs a layout.&lt;/p&gt;
&lt;h4 id=&quot;global-and-incremental-layout&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#global-and-incremental-layout&quot; aria-label=&quot;global and incremental layout permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Global and Incremental Layout&lt;/h4&gt;
&lt;p&gt;Layout can be triggered on the entire render tree - this is &quot;global&quot; layout. This can happen as a result of:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A global style change that affects all renderers, like a font size change.&lt;/li&gt;
&lt;li&gt;As a result of a screen being resized&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Layout can be incremental, only the dirty renderers will be layed out (this can cause some damage which will require extra layouts). Incremental layout is triggered (asynchronously) when renderers are dirty. For example when new renderers are appended to the render tree after extra content came from the network and was added to the DOM tree.&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 326px; &quot;
    &gt;
      &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 104.62427745664739%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAVCAIAAADJt1n/AAAACXBIWXMAAAsTAAALEwEAmpwYAAACbklEQVR42pWUW3OTQBTH+VY++yF898FRP4APOn4Ln32ozjijjmO1tWku0yFp7NSm0zaQhBAClCwsl9C6y52EXFxCxFap1X1gzrLnx/9/zgGo5a1rsbjphPoLFUah4zgrfPF/8HQ2ZdUO1EDguzfxVJHNNG90qUgYxLaq0C+n02khX6w8n89P1dM4iedJohxtuzb4JzjL0LHOW3x2J3AuINso7FyR8mLJQMaLvFX+nFwN7sC7gH/y1HUqPbM9mzO5bJsZCZCl95q3wNnq6B0UoPxZGQ+7+5n41cqp32RRiFjI5ts0SBJydW1NY+u3wD2jR2yvt6nree4WtPf8S/0qT10l3chlNOZ6F5ZRr59YYxJjE2hMowBeDXfZh5zpmmmYpG+FPVZb4PDD43snTx9a/YZ0Vm2UNyJk5TyVR6ZjNs1mFEX5hNRus/tt8/PWR7a0maAxuBx+bVeM7mEBLBgCY7TdWWSdtaTnz7yx7micfFylZchCgySILfqAftetvY8DN2sElRfXkTqn4IRBfPXti1d374Dqm/OjT+3D2o6oNARxNpsdPXqw9eQ+X37t++tPbQ37vp8ZTv1DvVTfj9308W1lVFbU3YGIPU/g+nS9OZtMMMa/GkY+A4xwOpZVqbxhbgmSiTGZMC3K1ZFWkkFf1Y5VWJYVohH8VKIy2TAM1y1PkgNR3h7KPQ06nlfh+Lqk0JJSY9jaYLgzlMHYJo4RSl9BarGK8tEhz9sdDKsA0oI0ieMwivwgmE4mvKp+EcSKorZkhaSRP0wcxxTRDIIg1VzxA1KwpOwBWBIk6zvK77dI8eegNtL2hhLxnFaK8Q+oi6KqBYJJDgAAAABJRU5ErkJggg==&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Incremental layout&quot;
        title=&quot;&quot;
        src=&quot;/static/e1a4409f5f5ddf1f13b63ad25c13f0d2/ce9b1/incremental-layout.png&quot;
        srcset=&quot;/static/e1a4409f5f5ddf1f13b63ad25c13f0d2/991de/incremental-layout.png 173w,
/static/e1a4409f5f5ddf1f13b63ad25c13f0d2/ce9b1/incremental-layout.png 326w&quot;
        sizes=&quot;(max-width: 326px) 100vw, 326px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Figure 18: Incremental layout–only dirty renderers and their children are laid out&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;h4 id=&quot;asynchronous-and-synchronous-layout&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#asynchronous-and-synchronous-layout&quot; aria-label=&quot;asynchronous and synchronous layout permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Asynchronous and Synchronous Layout&lt;/h4&gt;
&lt;p&gt;Incremental layout is done asynchronously. Firefox queues &quot;reflow commands&quot; for incremental layouts and a scheduler triggers batch execution of these commands&lt;sup id=&quot;fnref-9&quot;&gt;&lt;a href=&quot;#fn-9&quot; class=&quot;footnote-ref&quot;&gt;9&lt;/a&gt;&lt;/sup&gt;. WebKit also has a timer that executes an incremental layout - the tree is traversed and &quot;dirty&quot; renderers are layout out. Scripts asking for style information, like &quot;offsetHeight&quot; can trigger incremental layout synchronously. Global layout will usually be triggered synchronously. Sometimes layout is triggered as a callback after an initial layout because some attributes, like the scrolling position changed.&lt;/p&gt;
&lt;h4 id=&quot;optimizations&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#optimizations&quot; aria-label=&quot;optimizations permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Optimizations&lt;/h4&gt;
&lt;p&gt;When a layout is triggered by a &quot;resize&quot; or a change in the renderer position(and not size), the renders sizes are taken from a cache and not recalculated. In some cases - only a sub tree is modified and layout does not start from the root. This can happen in cases where the change is local and does not affect its surroundings - like text inserted into text fields (otherwise every keystroke would have triggered a layout starting from the root).&lt;/p&gt;
&lt;h4 id=&quot;the-layout-process&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#the-layout-process&quot; aria-label=&quot;the layout process permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;The Layout Process&lt;/h4&gt;
&lt;p&gt;The layout usually has the following pattern&lt;sup id=&quot;fnref-6&quot;&gt;&lt;a href=&quot;#fn-6&quot; class=&quot;footnote-ref&quot;&gt;6&lt;/a&gt;&lt;/sup&gt;:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Parent renderer determines its own width.&lt;/li&gt;
&lt;li&gt;Parent goes over children and:
&lt;ol&gt;
&lt;li&gt;Place the child renderer (sets its x and y).&lt;/li&gt;
&lt;li&gt;Calls child layout if needed (they are dirty or we are in a global layout or some other reason) - this calculates the child&apos;s height.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Parent uses children accumulative heights and the heights of the margins and paddings to set it own height - this will be used by the parent renderer&apos;s parent.&lt;/li&gt;
&lt;li&gt;Sets its dirty bit to false.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Firefox uses a &quot;state&quot; object (nsHTMLReflowState) as a parameter to layout (termed &quot;reflow&quot;). Among others the state includes the parents width. The output of Firefox layout is a &quot;metrics&quot; object (nsHTMLReflowMetrics). It will contain the renderer computed height.&lt;/p&gt;
&lt;h4 id=&quot;width-calculation&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#width-calculation&quot; aria-label=&quot;width calculation permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Width Calculation&lt;/h4&gt;
&lt;p&gt;The renderer&apos;s width is calculated using the container block&apos;s width , the renderer&apos;s style &quot;width&quot; property, the margins and borders.&lt;/p&gt;
&lt;p&gt;For example the width of the following div:&lt;br&gt;
&lt;code class=&quot;language-text&quot;&gt;&amp;lt;div style=&quot;width: 30%&quot;&gt;&amp;lt;/div&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Would be calculated by WebKit as follows (class RenderBox method calcWidth):&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The container width is the maximum of the containers availableWidth and 0. The availableWidth in this case is the contentWidth which is calculated as:&lt;br&gt;
&lt;code class=&quot;language-text&quot;&gt;clientWidth() - paddingLeft() - paddingRight()&lt;/code&gt;
clientWidth and clientHeight represent the interior of an object excluding border and scrollbar.&lt;/li&gt;
&lt;li&gt;The elements width is the &quot;width&quot; style attribute. It will be calculated as an absolute value by computing the percentage of the container width.&lt;/li&gt;
&lt;li&gt;The horizontal borders and paddings are now added.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;So far this was the calculation of the &quot;preferred width.&quot; Now the minimum and maximum widths will be calculated. If the preferred width is higher then the maximum width - the maximum width is used. If it is lower then the minimum width (the smallest unbreakable unit) then the minimum width is used. The values are cached, in case a layout is needed but the width does not change.&lt;/p&gt;
&lt;h4 id=&quot;line-breaking&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#line-breaking&quot; aria-label=&quot;line breaking permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Line Breaking&lt;/h4&gt;
&lt;p&gt;When a renderer in the middle of layout decides it needs to break. It stops and propagates to its parent it needs to be broken. The parent will create the extra renderers and calls layout on them.&lt;/p&gt;
&lt;h3 id=&quot;painting&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#painting&quot; aria-label=&quot;painting permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Painting&lt;/h3&gt;
&lt;p&gt;In the painting stage, the render tree is traversed and the renderers &quot;paint&quot; method is called to display their content on the screen. Painting uses the UI infrastructure component.&lt;/p&gt;
&lt;h4 id=&quot;global-and-incremental&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#global-and-incremental&quot; aria-label=&quot;global and incremental permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Global and Incremental&lt;/h4&gt;
&lt;p&gt;Like layout, painting can also be global - the entire tree is painted - or incremental. In incremental painting, some of the renderers change in a way that does not affect the entire tree. The changed renderer invalidates it&apos;s rectangle on the screen. This causes the OS to see it as a &quot;dirty region&quot; and generate a &quot;paint&quot; event. The OS does it cleverly and coalesces several regions into one.&lt;/p&gt;
&lt;p&gt;In Chrome it is more complicated because the renderer is in a different process then the main process. Chrome simulates the OS behavior to some extent. The presentation listens to these events and delegates the message to the render root. The tree is traversed until the relevant renderer is reached. It will repaint itself (and usually its children).&lt;/p&gt;
&lt;h4 id=&quot;the-painting-order&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#the-painting-order&quot; aria-label=&quot;the painting order permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;The Painting Order&lt;/h4&gt;
&lt;p&gt;CSS2 defines the order of the painting process - &lt;a href=&quot;https://www.w3.org/TR/CSS21/zindex.html&quot;&gt;https://www.w3.org/TR/CSS21/zindex.html&lt;/a&gt;. This is actually the order in which the elements are stacked in the &lt;a href=&quot;#stacking_contexts&quot;&gt;stacking contexts&lt;/a&gt;. This order affects painting since the stacks are painted from back to front. The stacking order of a block renderer is:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;background color&lt;/li&gt;
&lt;li&gt;background image&lt;/li&gt;
&lt;li&gt;border&lt;/li&gt;
&lt;li&gt;children&lt;/li&gt;
&lt;li&gt;outline&lt;/li&gt;
&lt;/ol&gt;
&lt;h4 id=&quot;firefox-display-list&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#firefox-display-list&quot; aria-label=&quot;firefox display list permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Firefox Display List&lt;/h4&gt;
&lt;p&gt;Firefox goes over the render tree and builds a display list for the painted rectangle. It contains the renderers relevant for the rectangle, in the right painting order (backgrounds of the renderers, then borders etc). That way the tree needs to be traversed only once for a repaint instead of several times - painting all backgrounds, then all images , then all borders etc. Firefox optimizes the process by not adding elements that will be hidden, like elements completely beneath other opaque elements.&lt;/p&gt;
&lt;h4 id=&quot;webkit-rectangle-storage&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#webkit-rectangle-storage&quot; aria-label=&quot;webkit rectangle storage permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;WebKit Rectangle Storage&lt;/h4&gt;
&lt;p&gt;Before repainting, WebKit saves the old rectangle as a bitmap. It then paints only the delta between the new and old rectangles.&lt;/p&gt;
&lt;h3 id=&quot;dynamic-changes&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#dynamic-changes&quot; aria-label=&quot;dynamic changes permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Dynamic Changes&lt;/h3&gt;
&lt;p&gt;The browsers try to do the minimal possible actions in response to a change. So changes to an elements color will cause only repaint of the element. Changes to the element position will cause layout and repaint of the element, its children and possibly siblings. Adding a DOM node will cause layout and repaint of the node. Major changes, like increasing font size of the &quot;html&quot; element, will cause invalidation of caches and repaint of the entire tree.&lt;/p&gt;
&lt;h3 id=&quot;the-rendering-engines-threads&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#the-rendering-engines-threads&quot; aria-label=&quot;the rendering engines threads permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;The Rendering Engine&apos;s Threads&lt;/h3&gt;
&lt;p&gt;The rendering engine is single threaded. Almost everything, except network operations, happens in a single thread. In Firefox and safari this is the main thread of the browser. In Chrome it&apos;s the tab process main thread&lt;sup id=&quot;fnref-13&quot;&gt;&lt;a href=&quot;#fn-13&quot; class=&quot;footnote-ref&quot;&gt;13&lt;/a&gt;&lt;/sup&gt;. Network operations can be performed by several parallel threads. The number of parallel connections is limited (usually 2 - 6 connections. Firefox 3, for example, uses 6).&lt;/p&gt;
&lt;h4 id=&quot;event-loop&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#event-loop&quot; aria-label=&quot;event loop permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Event Loop&lt;/h4&gt;
&lt;p&gt;The browser main thread is an event loop. It&apos;s an infinite loop that keeps the process alive. It waits for events (like layout and paint events) and processes them. This is Firefox code for the main event loop:&lt;/p&gt;
&lt;figure&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;cpp&quot;&gt;&lt;pre class=&quot;language-cpp&quot;&gt;&lt;code class=&quot;language-cpp&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;while&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;!&lt;/span&gt;mExiting&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;token function&quot;&gt;NS_ProcessNextEvent&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;thread&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
  &lt;figcaption&gt;Firefox event loop&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;h3 id=&quot;css2-visual-model&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#css2-visual-model&quot; aria-label=&quot;css2 visual model permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;CSS2 Visual Model&lt;/h3&gt;
&lt;h4 id=&quot;the-canvas&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#the-canvas&quot; aria-label=&quot;the canvas permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;The Canvas&lt;/h4&gt;
&lt;p&gt;According to &lt;a href=&quot;https://www.w3.org/TR/CSS21/intro.html#processing-model&quot;&gt;CCS2 specification&lt;/a&gt;, the term canvas describes &quot;the space where the formatting structure is rendered.&quot; - where the browser paints the content. The canvas is infinite for each dimension of the space but browsers choose an initial width based on the dimensions of the viewport. According to &lt;a href=&quot;https://www.w3.org/TR/CSS2/zindex.html&quot;&gt;https://www.w3.org/TR/CSS2/zindex.html&lt;/a&gt;, the canvas is transparent if contained within another, and given a browser defined color if it is not.&lt;/p&gt;
&lt;h4 id=&quot;css-box-model&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#css-box-model&quot; aria-label=&quot;css box model permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;CSS Box Model&lt;/h4&gt;
&lt;p&gt;The &lt;a href=&quot;https://www.w3.org/TR/CSS2/box.html&quot;&gt;CSS box model&lt;/a&gt; describes the rectangular boxes that are generated for elements in the document tree and laid out according to the visual formatting model. Each box has a content area (e.g., text, an image, etc.) and optional surrounding padding, border, and margin areas.&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 509px; &quot;
    &gt;
      &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 68.20809248554913%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/jpeg;base64,/9j/2wBDABALDA4MChAODQ4SERATGCgaGBYWGDEjJR0oOjM9PDkzODdASFxOQERXRTc4UG1RV19iZ2hnPk1xeXBkeFxlZ2P/2wBDARESEhgVGC8aGi9jQjhCY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2P/wgARCAAOABQDASIAAhEBAxEB/8QAFwABAQEBAAAAAAAAAAAAAAAAAQACBf/EABQBAQAAAAAAAAAAAAAAAAAAAAD/2gAMAwEAAhADEAAAAe0oNuP/xAAZEAACAwEAAAAAAAAAAAAAAAAAAQISMSH/2gAIAQEAAQUCXSpHHEWn/8QAFBEBAAAAAAAAAAAAAAAAAAAAEP/aAAgBAwEBPwE//8QAFBEBAAAAAAAAAAAAAAAAAAAAEP/aAAgBAgEBPwE//8QAFBABAAAAAAAAAAAAAAAAAAAAIP/aAAgBAQAGPwJf/8QAGRABAQADAQAAAAAAAAAAAAAAAQARQVGR/9oACAEBAAE/IRt2MO+ydIIChgxf/9oADAMBAAIAAwAAABCjD//EABQRAQAAAAAAAAAAAAAAAAAAABD/2gAIAQMBAT8QP//EABQRAQAAAAAAAAAAAAAAAAAAABD/2gAIAQIBAT8QP//EABsQAQADAQEBAQAAAAAAAAAAAAEAESExUUGR/9oACAEBAAE/EBQ2Kxvcla1aOR0F+nkSX9NIIXPIZo5P/9k=&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;CSS2 box model&quot;
        title=&quot;&quot;
        src=&quot;/static/3df590c8c226fb5b5bbc5bf23a35ba91/05852/css2-box-model.jpg&quot;
        srcset=&quot;/static/3df590c8c226fb5b5bbc5bf23a35ba91/9ac50/css2-box-model.jpg 173w,
/static/3df590c8c226fb5b5bbc5bf23a35ba91/8d48c/css2-box-model.jpg 345w,
/static/3df590c8c226fb5b5bbc5bf23a35ba91/05852/css2-box-model.jpg 509w&quot;
        sizes=&quot;(max-width: 509px) 100vw, 509px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Figure 19: CSS2 Box Model&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;Each node generates 0..n such boxes. All elements have a &quot;display&quot; property that determines their type of box that will be generated. Examples:&lt;/p&gt;
&lt;figure&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;js&quot;&gt;&lt;pre class=&quot;language-js&quot;&gt;&lt;code class=&quot;language-js&quot;&gt;&lt;span class=&quot;token literal-property property&quot;&gt;block&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt;  generates a block box&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;
&lt;span class=&quot;token literal-property property&quot;&gt;inline&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; generates one or more inline boxes&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;
&lt;span class=&quot;token literal-property property&quot;&gt;none&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt;   no box is generated&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
  &lt;figcaption&gt;Display property possible values&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;The default is inline but the browser style sheet set other defaults. For example - the default display for &quot;div&quot; element is block. You can find a default style sheet example here &lt;a href=&quot;https://www.w3.org/TR/CSS2/sample.html&quot;&gt;https://www.w3.org/TR/CSS2/sample.html&lt;/a&gt;&lt;/p&gt;
&lt;h4 id=&quot;positioning-scheme&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#positioning-scheme&quot; aria-label=&quot;positioning scheme permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Positioning Scheme&lt;/h4&gt;
&lt;p&gt;There are three schemes:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Normal - the object is positioned according to its place in the document - this means its place in the render tree is like its place in the dom tree and layed out according to its box type and dimensions&lt;/li&gt;
&lt;li&gt;Float - the object is first layed out like normal flow, then moved as far left or right as possible&lt;/li&gt;
&lt;li&gt;Absolute - the object is put in the render tree differently than its place in the DOM tree&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The positioning scheme is set by the &quot;position&quot; property and the &quot;float&quot; attribute.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;static and relative cause a normal flow&lt;/li&gt;
&lt;li&gt;absolute and fixed cause an absolute positioning&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In static positioning no position is defined and the default positioning is used. In the other schemes, the author specifies the position - top, bottom, left, right. The way the box is layed out is determined by:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Box type&lt;/li&gt;
&lt;li&gt;Box dimensions&lt;/li&gt;
&lt;li&gt;Positioning scheme&lt;/li&gt;
&lt;li&gt;External information - like images size and the size of the screen&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 id=&quot;box-types&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#box-types&quot; aria-label=&quot;box types permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Box Types&lt;/h4&gt;
&lt;p&gt;Block box: forms a block - have their own rectangle on the browser window.&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 150px; &quot;
    &gt;
      &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 84.66666666666669%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAARCAYAAADdRIy+AAAACXBIWXMAAAsTAAALEwEAmpwYAAACVklEQVR42p2S30/aUBTH++dvb3PJHkz0YSbEiGXgyGADEfACllpa+VkLtIgFmVkmYOjEcnu/O/hgZoY+9OGT05z0fG7P91ZSuvPv1tjnHXd5R8zfZPT4GneXYz9QrFlSag0XpfkKuJ4K7s6Atxjdbcb9Lfg9B1pD70Sq2R6b0MuOPV05zkzY9lT0CduZPj3b1Fv3+85cdG8C0ZtgE6ufC6DW83KSaq+YO/Kx1HXO200EnQ5gmRAmVYK3WxDUn9Uu0BosYd0Al+OXmCPBx/eA2iVhpbtig6EPv6pwNOpwMz9Ql2Xc5k9wlU7DU86AuoG5osHoL9F2abVrQeCZ5lDw4RSomCQ8JWF/8IhlNsvBGJxoFJXtbei7u9B2djBNpYDTIma5Iq30iAYJ6sOXXFwJ7lCWrEPCgsmZ1f0DP7LHEd0HYodAIgZ8kYG4DCEfAAcRzA5jUCwf+oCycgSBZzRbcOsXkG+SMNdcstYVUE2dczWtrSuUf6hST02pULJNVHsB1D7+o9oTvHMLHDdImDU8VqegS3RKiU57jTJR6W6mbAneIEfGIGFa95jurvcPeMkUeAt2iY2cmoIbI4BcOSmpeUyllU9agufblEMI1rMqXU7ynIQJ1WPrdbINwSkmhCFDsxW6rLhKwsOKxwqUQ0oXPGVQDcE3mi32AHLlpP2Sx7KUw5Em+FGNahho9tgCyJWT9gpe/iudIleDB1kJ/JA8JC+Az/lFRoqceaUMfW7CEDxBzVDQbIb+x0h5kZfeHTifPh5NtK34uLiVuGFh+PA0O6m9j9pbfwET9acbjaPWVAAAAABJRU5ErkJggg==&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Block box&quot;
        title=&quot;&quot;
        src=&quot;/static/b4ebeebc1b883d92bef6ecf9746ae991/8a4e8/block-box.png&quot;
        srcset=&quot;/static/b4ebeebc1b883d92bef6ecf9746ae991/8a4e8/block-box.png 150w&quot;
        sizes=&quot;(max-width: 150px) 100vw, 150px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Figure 20: Block Box&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;Inline box: does not have its own block, but is inside a containing block.&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 300px; &quot;
    &gt;
      &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 77.45664739884393%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAPCAYAAADkmO9VAAAACXBIWXMAAAsTAAALEwEAmpwYAAACfElEQVR42p2Q21PaUBCH+f97m/LQl850OtMWcQCVCAh44aJWo4EIJBwiCRBCoIii1nohcfl18dL60ofy8M2e/Z05X3YTMPqeGF4B9inIPuP6n3RPuY5Ao2vguO+pAc32hDMGWs412c41nuk8Yf+TX7B6dzB/AM0ByL0EtK5fDhzZvmgNgauGSfeWhUlzhgnftB6YmI+999zz+Y6Zmk0MDQe6CwiXtzsHKjYLFcsXzT5wfqRT1xyhZfOXu9cY6RaGDQcm9y3nBq7homf0uL+Cxf1Jo4th1ULFAWpdIotXL7VYKJu+aPSAsaxS4dDFtw0Ti9su2koTWqmDr5tthAsO1LKLg4MOQrkOFgo9CJWFJYGyzZN1iIwT4NBk4Y7hC43DcX6PinkbieII8TxPmlehFw3ux5AKIyg5gznGauEUUvEMWk7DYK8Kuc2TWUT6ANgzWFgQvlA5/JnNk59YxW0ygUkyiRs+j5eWcLG8jNtEAl4q9cAdn2/4fpqU0CtWsGsBcpOowv9yW7BwS/cFb4fLyDIh/AXTxRAQCePi00cY717B+RDENMzZ4l+miwtA6DO6a7so8tvvDaLZ6jmNhdmaL/Y4LGcqVEvIqCYPH9BSCkS6BH1N+ZM9U0kq0BL7kAtt5BtAvk40Wz1bZWGq7IltFq7XQeuC6xPZOpCpP9aX+Us2+G5T41oD7ZrAmsrC+IEntvgirRJl1Cn+h/TRjJkIlONJJYWFsX1PZGrAagnEYB4kBZTVgSWZhaGdib7CYUwmj7mfh+g+eZIKhHc9JRBRvEZ6Nm4FJFW5zkGc32aOgWjJVwNvonYwGO9L71fcKBObh2B8EAlK/dW3Mfv1b1wUEr5P9GpIAAAAAElFTkSuQmCC&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Inline boxes&quot;
        title=&quot;&quot;
        src=&quot;/static/4ebcc8f249772dbf51f675ecefe79df8/5a46d/inline-boxes.png&quot;
        srcset=&quot;/static/4ebcc8f249772dbf51f675ecefe79df8/991de/inline-boxes.png 173w,
/static/4ebcc8f249772dbf51f675ecefe79df8/5a46d/inline-boxes.png 300w&quot;
        sizes=&quot;(max-width: 300px) 100vw, 300px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Figure 21: Inline Boxes&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;Blocks are formatted vertically one after the other. Inlines are formatted horizontally.&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 350px; &quot;
    &gt;
      &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 92.48554913294798%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAASCAYAAABb0P4QAAAACXBIWXMAAAsTAAALEwEAmpwYAAADXElEQVR42o3SWXPaSBQFYP/1eZnnVDLLQ8qpyQSPMfvmwizGLGZfJUDQYpXYZBB4wXYloObkirjsmXJcNQ9f0bcpne6+3QdstmHaAzBcgisr4P8aLV+oOrj+CHRn29pBR9bZSnvEZLjiU+UaU/UWU+UG+/G+vvnhqZ4RVb1DVwN6Vz/QmE/vAGlMgYuyyDCZYdtX+KY3hNHpYNvrwxio5hy2nS62XWLWAwUGjdesj/aE70M7RJ6Bj2+BhkqBg4zAJOUbiq0Vr3QfcC22wSQNBXaLoryG2hxhLI2Qb1NNc3J7jrXYQn20o1CgNTF3Bj6kNtSG5pEviixQWsNyPuaO3B3mORGp7Ahf4hosSR31/ABSYYDPF9p+7jKvYV0UUFMAWgsNUlfBezpQ7lGg4o8yOd6EEBG4GBFwH0uiHymgFhZRDQuYhNOYkirV5lwvmMFdqoDyEBApVFDMnYHLc6DYpUDd4WYIegG/i2ufP0I9/Ih72xHVTux8DsDnfuKg2gl4bLgOxVHoA9UBUCHlPjh1CVmZAvtHbvbg8mF54uKTLycY/nUE7R87Vicucw5Lq3NPP3FjYfNgRf+pvjiyXaDwJN8BF6mXly0KjIrfWLYHJCTOk22aZECytUPiX5ItjnTLeNHmtBs8yzDwKvUy0TQvpTJg98oCCzbmOhtjLk+fXRG9M8GQzpOiUHOxZ+0XqRZ4iXoZa5iXkquy+ewRyvCaK/Sg79u0pCxhJ7f20JGwqjPE6gbiVMal1y6a4DnqaVigQDlRZSHhFta4wr3lGywq9FW1DF6r7kGoQC82EBUMnDeB88Zr0Tp4mnoZrJpHDqZY+nKGSEzh0dgIS3oSyFxil0nvIZOCniohWDEQEoGQ8NpZDTxBbQiUKPDKd8ZwcY7t2Rl/DPjxNRgEj0SwI+YvIiEs6B0GSgZOacOnldcCdKAoHd1TMAMtVgavA4b9mPd/e4cBMawWwGHFzn4M2CyYu07hLhjwlOmj0o7gP9xF8CAd3Z6lwJgtL1U8ReScuU3elTdyJO/MPSs4MkbCKxr2rGE4cvyn7Fm+8dJOj1ObyoFN3LIAvUO3BO6m+/gZD/E33+ZrgIcpw1UzagfvPdNf//Rrf//u0w7/8Guf3vLev3ibb3H4wadb3rlnv3wHLJ7lDyvHMe8AAAAASUVORK5CYII=&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Block and Inline formatting&quot;
        title=&quot;&quot;
        src=&quot;/static/2732ebdc66ab6b23c0aadf20af53aac8/13ae7/block-and-inline-formatting.png&quot;
        srcset=&quot;/static/2732ebdc66ab6b23c0aadf20af53aac8/991de/block-and-inline-formatting.png 173w,
/static/2732ebdc66ab6b23c0aadf20af53aac8/e4d6b/block-and-inline-formatting.png 345w,
/static/2732ebdc66ab6b23c0aadf20af53aac8/13ae7/block-and-inline-formatting.png 350w&quot;
        sizes=&quot;(max-width: 350px) 100vw, 350px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Figure 22: Block and Inline formatting&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;Inline boxes are put inside lines or &quot;line boxes.&quot; The lines are at least as tall as the tallest box but can be taller, when the boxes are aligned &quot;baseline&quot; - meaning the bottom part of an element is aligned at a point of another box other then the bottom. In case the container width is not enough, the inlines will be put in several lines. This is usually what happens in a paragraph.&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 400px; &quot;
    &gt;
      &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 69.36416184971098%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAOCAYAAAAvxDzwAAAACXBIWXMAAAsTAAALEwEAmpwYAAAC7ElEQVR42pWRy24aZxiGaSq1+15GL6N3UCndN+0u6y66801UVVWnGCu17FLbUIIHY2zwQIoxZ5jBGWYYE87m6IA5FWZ4OiZplSyqNL/06P0Wo+d//29sNuso9XmwPgStbc4tlu+jZKG3Fkv9xliUm3N6amUXRXk8l+XP7302tWWKgzto14dGp3HHa0a8PXffmpuNMS/78LIH41SWyWXUpFJhWSgU18J8DfG2vcBQFWNW0piXihYqM01hrhWtLDJVFaaaCrrGSKugFAdcp7RVLaHQ8p9fjA72HTfOgy/XwmQFcWBVv8skjXyxRlIdkS82eFEeIOsdFL1BsTJAUcvM81le5RSyUgf5em5qt3BR+uvrew/w8VoYKyP2qlOG0YgRiiQRQjKBcBZftIoQVglESwjxIaHneWax5wyzlrBmItUwtTbECuNv16sThE/XQut7saXfsQyHjO7xET2fh47Py433kLbXRevoiLrnGTeCANEIt/E8Sd0gfW2ahRZECuNv3mkY0hDryitmp36jrpSoqTWaika9WKVuzS1r7pbKNK8Uun+4aAYviJVWxHXMXANC8uzdJwcUxJrUZ+Q5MEKZMr7cjFMrXfEOvvyYQLqKX54QzFTp7/9G2XPCcayKmO2ZCR3Okq3vN76yfbIBD+59H/muEK+TLRaOTUPa2eXcKSA93aVgtyNvOXix7UDa2rZyG/Opnb4nQCC34CycQjwPrnzHPiKRyNTtdj9cNzyWEBMFg5SQMaLhKtFgCdmfRwoUkE4K5E9kK2UrC6T8EtFQmVMZfMnxSog2+PUwaLfbf/xic3PzM5s7bv7kDA/MvXCfw7SxcqVMvBJ4/oNnFt48CJkVQhYzWIT9y9c7dN7v0BEafvfE37194muzI06Mg8ul6U6Y7yfJPcujHOyFx4/WQuebn/J7Yin6rZtc6ZXhTsP/JoUpXMHOn7NH/za0bWw8+PlktGcPTltbwalqD070D0D75WzS/EHoPfyn4d85nHGLHKSIggAAAABJRU5ErkJggg==&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Lines&quot;
        title=&quot;&quot;
        src=&quot;/static/87c30dad79f7107fc881c62609894ae5/e17e5/lines.png&quot;
        srcset=&quot;/static/87c30dad79f7107fc881c62609894ae5/991de/lines.png 173w,
/static/87c30dad79f7107fc881c62609894ae5/e4d6b/lines.png 345w,
/static/87c30dad79f7107fc881c62609894ae5/e17e5/lines.png 400w&quot;
        sizes=&quot;(max-width: 400px) 100vw, 400px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Figure 23: Lines&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;h4 id=&quot;positioning&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#positioning&quot; aria-label=&quot;positioning permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Positioning&lt;/h4&gt;
&lt;h5 id=&quot;relative&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#relative&quot; aria-label=&quot;relative permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Relative&lt;/h5&gt;
&lt;p&gt;Relative positioning - positioned like usual and then moved by the required delta.&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 500px; &quot;
    &gt;
      &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 52.02312138728323%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAYAAAC0VX7mAAAACXBIWXMAAAsTAAALEwEAmpwYAAACiUlEQVR42mWQzWsTQRiHV73rRQqlFpFaUS/+B+o/IV4VQe96Ego9iBepaL8OUZFgjdY0NYm2jQEDtc1XGzFptt22aXfX3U26n0mjYbNfM3mdjUYEX3h4Z5jf+zAzVCqVuiwIAkiShEVRRIqi4Fqt1kXTNGwYBtZ1/W8noEajAdVqtRkIBIYoUqOjo0epXq2srFxptVpAwKZpIiLHm5ubmKZpTIb+FeF6vd4VkhyQ3gwGg/8LC4XCVYwxeJ4Htm13EEJgWRY4juPvu/h7H9d1oW1ZHSDVbrdboVBo2HdcC4ePUQBHusTj4bPZbHqaYZgJnmXHybPHyS0nBYGfJN8wQdbTPM8/J/2ZJAlTv8/5qUpl51EgMHbSF4Iv6hVdbQ+WWtD34EXq9O37Y+fvjDwdDiSY/mRJ7pv/wvSHv7InetnrN+4O3rz38KKfuTXy5MLEq4+XaMEa2jmEMxXVGqpI5ilqp4YUScMgyA4mgCi7HUl2saAix7ABWBmHekJGsmcNE0A8sD0/+71mdTgFIVF23OohwJ6MS9QWa2qHQh1UVu8YnA4Kq4PKG6DuKZ70E6As4NBS3jieFc2BDc6eMVUbVE5HOqt0c1aFhxpXx2QUaAnKVKHc1Nh1DjYy+x0mU4FihoVvGR72c7toSwZYZlBkddstZva92SxtvjzY0kiWQ8zqNpSyPJjpHOQzAi6wALkKEX4utORGPAn6XNxjZ+ZQPbqEmvNxJC6s2mkO4FPJm3kcLA5MLmrnEkUvqC9vQDMSc/jXEaRGPqAfsUWkRhNuuuxBogwlKpxHWnwdQzTrdGI5D6I5t8t8zvGSuwDhNfym94fv8t7bJA0ka6PYn9z7rOODF8oAc2u4/Av8wVv2+ilfRgAAAABJRU5ErkJggg==&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Relative positioning&quot;
        title=&quot;&quot;
        src=&quot;/static/486e61626640f3c537cb4807170e3317/0b533/relative-positioning.png&quot;
        srcset=&quot;/static/486e61626640f3c537cb4807170e3317/991de/relative-positioning.png 173w,
/static/486e61626640f3c537cb4807170e3317/e4d6b/relative-positioning.png 345w,
/static/486e61626640f3c537cb4807170e3317/0b533/relative-positioning.png 500w&quot;
        sizes=&quot;(max-width: 500px) 100vw, 500px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Figure 24: Relative positioning&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;h5 id=&quot;floats&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#floats&quot; aria-label=&quot;floats permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Floats&lt;/h5&gt;
&lt;p&gt;A float box is shifted to the left or right of a line. The interesting feature is that the other boxes flow around it The HTML:&lt;/p&gt;
&lt;figure&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;html&quot;&gt;&lt;pre class=&quot;language-html&quot;&gt;&lt;code class=&quot;language-html&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;p&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;img&lt;/span&gt; &lt;span class=&quot;token special-attr&quot;&gt;&lt;span class=&quot;token attr-name&quot;&gt;style&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;token value css language-css&quot;&gt;&lt;span class=&quot;token property&quot;&gt;float&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; right&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;src&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;images/image.gif&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;width&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;100&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;height&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;100&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;/&gt;&lt;/span&gt;&lt;/span&gt;
  Lorem ipsum dolor sit amet, consectetuer...
&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;p&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
  &lt;figcaption&gt;An image floated to the right&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;Will look like:&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 444px; &quot;
    &gt;
      &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 45.664739884393065%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAJCAIAAAC9o5sfAAAACXBIWXMAAAsTAAALEwEAmpwYAAABX0lEQVR42l1RS07DMBD1QbgARaxB3AOJXVvUTYBLsCpsykVgwwkq0Qt0RX7Or20aiSqhafOx48S82ipCvMXozfi9mbFNGGNVVdUKRVEgLcsSFRBU9vs9olTouq5eB3XwWYf2ISYRCYLAdV3P8wKFxWKBFCSKIkTHccIwTNM0z7eik+xpKPunnXEh+71mYhCtgMf3fU8BBCmKOEIKMyp5nrdSsvEtbNK4lP0zMbkjy+XSsqw4jjEKUj0wPEKn63WMGzVtx59Hcngu768QxcsDwRCIbNvWHr0CxqIR+h7n081mw0XLH2/k9Ykc9BDFeED0VnqsJogorlYrSinuj6VADpvvdnz+waZvfPbOpq9sPiNQ4wwKmEGQYiAIzCCRgn7ILMu2VZ3VLC3K74oXvCHobZom1vYVIIJTq39fARo0Orwodalj+9R1LBOXIV8KSZLgS/VnCiHaP0ClaZp/FU1+AJ59047mZxowAAAAAElFTkSuQmCC&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Float&quot;
        title=&quot;&quot;
        src=&quot;/static/44f398158e9e4500a2fe33741e222ad5/9b7bd/float.png&quot;
        srcset=&quot;/static/44f398158e9e4500a2fe33741e222ad5/991de/float.png 173w,
/static/44f398158e9e4500a2fe33741e222ad5/e4d6b/float.png 345w,
/static/44f398158e9e4500a2fe33741e222ad5/9b7bd/float.png 444w&quot;
        sizes=&quot;(max-width: 444px) 100vw, 444px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Figure 25: Float&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;h5 id=&quot;absolute-and-fixed&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#absolute-and-fixed&quot; aria-label=&quot;absolute and fixed permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Absolute and Fixed&lt;/h5&gt;
&lt;p&gt;The layout is defined exactly regardless of the normal flow. The element does not participate in the normal flow. The dimensions are relative to the container. In fixed - the container is the view port.&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 254px; &quot;
    &gt;
      &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 89.59537572254335%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAASCAIAAADUsmlHAAAACXBIWXMAAAsTAAALEwEAmpwYAAABP0lEQVR42s2Uy0rDQBSGf+eY7IqILxMKiu/QrAxZiLarFryArfESY1RcdKsToX0AQQUr6KbgoqCCfQkXrU/g0hln0goJ2iBewOHjX52PMzDnDOQPDnS027JQkK4rHSdJeOLYl4575jjnGvfCtU9t/9YXQihJSBHLnEtAEukERJyKmTlgE7QGVDWsxrAM68gaymIgR5GuNk3tE4k4FbMLhEMyA6JdjREa2EK+mU/LozrPAwcgH9jRsIBhA1bD+lVZCeq2IjZf3/3pP+/80uC9MfQnqJ+Dohfncw7WIrAPli0377mxhKkaTVaRZHx7qGXJvMvVG9AeIUSK4CvyI4cHCihZ+pH/JkfdSM2wGZqDMRzF5+PJHzhWQB5hHRkwj2EV1nG6c+epU2wVKzeV8nU5A1VQuirV7+pqGRMr+d3P4A0BLBFuoAxgoAAAAABJRU5ErkJggg==&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Fixed positioning&quot;
        title=&quot;&quot;
        src=&quot;/static/22af0cbe246d399bab969d9ef699d1ea/6a91e/fixed-positioning.png&quot;
        srcset=&quot;/static/22af0cbe246d399bab969d9ef699d1ea/991de/fixed-positioning.png 173w,
/static/22af0cbe246d399bab969d9ef699d1ea/6a91e/fixed-positioning.png 254w&quot;
        sizes=&quot;(max-width: 254px) 100vw, 254px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Figure 26: Fixed positioning&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;Note - the fixed box will not move even when the document is scrolled!&lt;/p&gt;
&lt;h4 id=&quot;layered-representation&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#layered-representation&quot; aria-label=&quot;layered representation permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Layered Representation&lt;/h4&gt;
&lt;p&gt;It is specified by the z-index CSS property. It represents the 3rd dimension of the box, its position along the &quot;z axis&quot;. The boxes are divided into stacks (called &lt;a id=&quot;stacking_contexts&quot;&gt;stacking contexts&lt;/a&gt;). In each stack the back elements will be painted first and the forward elements on top, closer to the user. In case of overlap it will hide the former element. The stacks are ordered according to the z-index property. Boxes with &quot;z-index&quot; property form a local stack. The viewport has the outer stack. Example:&lt;/p&gt;
&lt;figure&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;html&quot;&gt;&lt;pre class=&quot;language-html&quot;&gt;&lt;code class=&quot;language-html&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;style&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;text/css&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token style&quot;&gt;&lt;span class=&quot;token language-css&quot;&gt;
  &lt;span class=&quot;token selector&quot;&gt;div&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;token property&quot;&gt;position&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; absolute&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;token property&quot;&gt;left&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 2in&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;token property&quot;&gt;top&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 2in&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;style&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;

&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;p&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;div&lt;/span&gt; &lt;span class=&quot;token special-attr&quot;&gt;&lt;span class=&quot;token attr-name&quot;&gt;style&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;token value css language-css&quot;&gt;&lt;span class=&quot;token property&quot;&gt;z-index&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 3&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;token property&quot;&gt;background-color&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;red&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;token property&quot;&gt;width&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 1in&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;token property&quot;&gt;height&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 1in&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;div&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;div&lt;/span&gt; &lt;span class=&quot;token special-attr&quot;&gt;&lt;span class=&quot;token attr-name&quot;&gt;style&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;token value css language-css&quot;&gt;&lt;span class=&quot;token property&quot;&gt;z-index&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 1&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;token property&quot;&gt;background-color&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;green&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;token property&quot;&gt;width&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 2in&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;token property&quot;&gt;height&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 2in&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;div&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
 &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;p&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
  &lt;figcaption&gt;Stacking nodes&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;The result will be this:&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 500px; &quot;
    &gt;
      &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 68.78612716763006%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAOCAYAAAAvxDzwAAAACXBIWXMAAAsTAAALEwEAmpwYAAACiUlEQVR42oWS7W4SQRSGsWr0OrwOf7eJd6DxAmxM+1+bSOJdaGKi9SOEtv7pHw2UrVAqH1sWCoWyu7BAW6AQvhZ2YZkZXmcoVE36McmTc+bMmXffs7uucDg8SKVSKBQKVFVVZhgGK5VK/yFqt0ArlQpyuVzfVa/X7dFohFarNalWqxgMBmi32+h0OpfRsqwb4XcmjuOg2WxarlqtZouiaZoT27bR6/WQyWQgXKfTaSiKIh42rXe73WnkvZe5iJzpXa5luc7Pz02+YdzJuNFoEN5MyuUy0XWdFItFwsch/HUQPvp0LxD7+dnZ2ZnIx1yMca3e1KFQt7htMeJkMsFVa14W5/MeESil4ONOC9yM5fJ6vctbW1sr0Wh09fAw+SISDj6N7oeeRfd3b0T0xWJ7z+Px+IogkUisBoPBZZdYbjcWRAzlu49SZfI2c0Jf5epY0xpYy8/Q/ue13sCb7Cl9Ob97uSRJusd/lwcijxu9J/kukDgltD2coE/4GGOgz+mRv3QI2JCP2LCpIUnGQ7jdC7Is3xdaU1EvcFfEnfRwUdYYtETJ6eondKAZtK+VqMlzWy3SkVqgo7xGdb03ztYAxaCaJOFCxIU7ly4xEwxoWCpXAePQoH4NUDN1pLJt+I8pWskckJS5fRnHR02W5H2/VVJ0XyU4d7idxlK2AJz4ozTmy6Hij0H1HUD2ZWEG9oDdABDYQfqgxiJlvs3cIvhdwWIsQ2F5N8fY8DDz6xdWef+OjTzfmOPdYCOO4/EwOVQhARX4qYz1GwU35eHSL52biPRpIDKAxAnMkP7hh0KYnwtuK/Qah94LwQ8+8/F60DldD7OjT2F2fB3rwXHuc8gpfty1/W737MvO1h8SAEPzt1K47wAAAABJRU5ErkJggg==&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Fixed positioning&quot;
        title=&quot;&quot;
        src=&quot;/static/b05dd35df5ed63b606f42fb18748b26d/0b533/position-fixed.png&quot;
        srcset=&quot;/static/b05dd35df5ed63b606f42fb18748b26d/991de/position-fixed.png 173w,
/static/b05dd35df5ed63b606f42fb18748b26d/e4d6b/position-fixed.png 345w,
/static/b05dd35df5ed63b606f42fb18748b26d/0b533/position-fixed.png 500w&quot;
        sizes=&quot;(max-width: 500px) 100vw, 500px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Figure 27: Fixed positioning&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;Although the green div comes before the red one, and would have been painted before in the regular flow, the z-index property is higher, so it is more forward in the stack held by the root box.&lt;/p&gt;
&lt;h3 id=&quot;resources&quot; style=&quot;position:relative;&quot;&gt;&lt;a href=&quot;#resources&quot; aria-label=&quot;resources permalink&quot; class=&quot;anchor before&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; focusable=&quot;false&quot; height=&quot;16&quot; version=&quot;1.1&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; d=&quot;M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;Resources&lt;/h3&gt;

      &lt;div class=&quot;footnotes&quot;&gt;
        &lt;hr/&gt;
        &lt;ol &gt;
    
    &lt;li class=&quot;footnote-list-item&quot; id=&quot;fn-1&quot; &gt;
          
        &lt;p class=&quot;footnote-paragraph&quot; style=&quot;display:inline; &quot;&gt;Grosskurth, Alan. &lt;a href=&quot;https://grosskurth.ca/papers/browser-refarch.pdf&quot;&gt;A Reference Architecture for Web Browsers.&lt;/a&gt;&lt;/p&gt;
      &lt;a href=&quot;#fnref-1&quot; class=&quot;footnote-backref&quot; style=&quot;display:inline;text-decoration: none;&quot;&gt;
        ↩
      &lt;/a&gt;
    
      &lt;/li&gt;
      
    

    &lt;li class=&quot;footnote-list-item&quot; id=&quot;fn-2&quot; &gt;
          
        &lt;p class=&quot;footnote-paragraph&quot; style=&quot;display:inline; &quot;&gt;Aho, Sethi, Ullman, &lt;a href=&quot;https://www.amazon.com/Compilers-Principles-Techniques-Tools-2nd/dp/0321486811/ref=sr_1_1?s=books&amp;#x26;ie=UTF8&amp;#x26;qid=1476980885&amp;#x26;sr=1-1&quot;&gt;Compilers: Principles, Techniques, and Tools (aka the &quot;Dragon book&quot;), Addison-Wesley, 1986&lt;/a&gt;&lt;/p&gt;
      &lt;a href=&quot;#fnref-2&quot; class=&quot;footnote-backref&quot; style=&quot;display:inline;text-decoration: none;&quot;&gt;
        ↩
      &lt;/a&gt;
    
      &lt;/li&gt;
      
    

    &lt;li class=&quot;footnote-list-item&quot; id=&quot;fn-3&quot; &gt;
          
        &lt;p class=&quot;footnote-paragraph&quot; style=&quot;display:inline; &quot;&gt;Rick Jelliffe. &lt;a href=&quot;https://broadcast.oreilly.com/2009/05/the-bold-and-the-beautiful-two.html&quot;&gt;The Bold and the Beautiful: two new drafts for HTML 5.&lt;/a&gt;&lt;/p&gt;
      &lt;a href=&quot;#fnref-3&quot; class=&quot;footnote-backref&quot; style=&quot;display:inline;text-decoration: none;&quot;&gt;
        ↩
      &lt;/a&gt;
    
      &lt;/li&gt;
      
    

    &lt;li class=&quot;footnote-list-item&quot; id=&quot;fn-4&quot; &gt;
          
        &lt;p class=&quot;footnote-paragraph&quot; style=&quot;display:inline; &quot;&gt;L. David Baron, &lt;a href=&quot;https://www.youtube.com/watch?v=a2_6bGNZ7bA&quot;&gt;Faster HTML and CSS: Layout Engine Internals for Web Developers (Google tech talk video).&lt;/a&gt;&lt;/p&gt;
      &lt;a href=&quot;#fnref-4&quot; class=&quot;footnote-backref&quot; style=&quot;display:inline;text-decoration: none;&quot;&gt;
        ↩
      &lt;/a&gt;
    
      &lt;/li&gt;
      
    

    &lt;li class=&quot;footnote-list-item&quot; id=&quot;fn-5&quot; &gt;
          
        &lt;p class=&quot;footnote-paragraph&quot; style=&quot;display:inline; &quot;&gt;L. David Baron, &lt;a href=&quot;https://dbaron.org/talks/2008-11-12-faster-html-and-css/slide-6.xhtml&quot;&gt;Faster HTML and CSS: Layout Engine Internals for Web Developers.&lt;/a&gt;&lt;/p&gt;
      &lt;a href=&quot;#fnref-5&quot; class=&quot;footnote-backref&quot; style=&quot;display:inline;text-decoration: none;&quot;&gt;
        ↩
      &lt;/a&gt;
    
      &lt;/li&gt;
      
    

    &lt;li class=&quot;footnote-list-item&quot; id=&quot;fn-6&quot; &gt;
          
        &lt;p class=&quot;footnote-paragraph&quot; style=&quot;display:inline; &quot;&gt;L. David Baron, &lt;a href=&quot;https://www.mozilla.org/newlayout/doc/layout-2006-07-12/slide-6.xhtml&quot;&gt;Mozilla&apos;s Layout Engine.&lt;/a&gt;&lt;/p&gt;
      &lt;a href=&quot;#fnref-6&quot; class=&quot;footnote-backref&quot; style=&quot;display:inline;text-decoration: none;&quot;&gt;
        ↩
      &lt;/a&gt;
    
      &lt;/li&gt;
      
    

    &lt;li class=&quot;footnote-list-item&quot; id=&quot;fn-7&quot; &gt;
          
        &lt;p class=&quot;footnote-paragraph&quot; style=&quot;display:inline; &quot;&gt;L. David Baron, &lt;a href=&quot;https://www.mozilla.org/newlayout/doc/style-system.html&quot;&gt;Mozilla Style System Documentation.&lt;/a&gt;&lt;/p&gt;
      &lt;a href=&quot;#fnref-7&quot; class=&quot;footnote-backref&quot; style=&quot;display:inline;text-decoration: none;&quot;&gt;
        ↩
      &lt;/a&gt;
    
      &lt;/li&gt;
      
    

    &lt;li class=&quot;footnote-list-item&quot; id=&quot;fn-8&quot; &gt;
          
        &lt;p class=&quot;footnote-paragraph&quot; style=&quot;display:inline; &quot;&gt;Chris Waterson, &lt;a href=&quot;https://www.mozilla.org/newlayout/doc/reflow.html&quot;&gt;Notes on HTML Reflow.&lt;/a&gt;&lt;/p&gt;
      &lt;a href=&quot;#fnref-8&quot; class=&quot;footnote-backref&quot; style=&quot;display:inline;text-decoration: none;&quot;&gt;
        ↩
      &lt;/a&gt;
    
      &lt;/li&gt;
      
    

    &lt;li class=&quot;footnote-list-item&quot; id=&quot;fn-9&quot; &gt;
          
        &lt;p class=&quot;footnote-paragraph&quot; style=&quot;display:inline; &quot;&gt;Chris Waterson, &lt;a href=&quot;https://www.mozilla.org/newlayout/doc/gecko-overview.htm&quot;&gt;Gecko Overview.&lt;/a&gt;&lt;/p&gt;
      &lt;a href=&quot;#fnref-9&quot; class=&quot;footnote-backref&quot; style=&quot;display:inline;text-decoration: none;&quot;&gt;
        ↩
      &lt;/a&gt;
    
      &lt;/li&gt;
      
    

    &lt;li class=&quot;footnote-list-item&quot; id=&quot;fn-10&quot; &gt;
          
        &lt;p class=&quot;footnote-paragraph&quot; style=&quot;display:inline; &quot;&gt;Alexander Larsson, &lt;a href=&quot;https://developer.mozilla.org/en/The_life_of_an_HTML_HTTP_request&quot;&gt;The life of an HTML HTTP request.&lt;/a&gt;&lt;/p&gt;
      &lt;a href=&quot;#fnref-10&quot; class=&quot;footnote-backref&quot; style=&quot;display:inline;text-decoration: none;&quot;&gt;
        ↩
      &lt;/a&gt;
    
      &lt;/li&gt;
      
    

    &lt;li class=&quot;footnote-list-item&quot; id=&quot;fn-11&quot; &gt;
          
        &lt;p class=&quot;footnote-paragraph&quot; style=&quot;display:inline; &quot;&gt;David Hyatt, &lt;a href=&quot;https://weblogs.mozillazine.org/hyatt/archives/cat_safari.html&quot;&gt;Implementing CSS (part 1)&lt;/a&gt;&lt;/p&gt;
      &lt;a href=&quot;#fnref-11&quot; class=&quot;footnote-backref&quot; style=&quot;display:inline;text-decoration: none;&quot;&gt;
        ↩
      &lt;/a&gt;
    
      &lt;/li&gt;
      
    

    &lt;li class=&quot;footnote-list-item&quot; id=&quot;fn-12&quot; &gt;
          
        &lt;p class=&quot;footnote-paragraph&quot; style=&quot;display:inline; &quot;&gt;David Hyatt, &lt;a href=&quot;https://weblogs.mozillazine.org/hyatt/WebCore/chapter2.html&quot;&gt;An Overview of WebCore&lt;/a&gt;&lt;/p&gt;
      &lt;a href=&quot;#fnref-12&quot; class=&quot;footnote-backref&quot; style=&quot;display:inline;text-decoration: none;&quot;&gt;
        ↩
      &lt;/a&gt;
    
      &lt;/li&gt;
      
    

    &lt;li class=&quot;footnote-list-item&quot; id=&quot;fn-13&quot; &gt;
          
        &lt;p class=&quot;footnote-paragraph&quot; style=&quot;display:inline; &quot;&gt;David Hyatt, &lt;a href=&quot;https://webkit.org/blog/114/&quot;&gt;WebCore Rendering&lt;/a&gt;&lt;/p&gt;
      &lt;a href=&quot;#fnref-13&quot; class=&quot;footnote-backref&quot; style=&quot;display:inline;text-decoration: none;&quot;&gt;
        ↩
      &lt;/a&gt;
    
      &lt;/li&gt;
      
    

    &lt;li class=&quot;footnote-list-item&quot; id=&quot;fn-14&quot; &gt;
          
        &lt;p class=&quot;footnote-paragraph&quot; style=&quot;display:inline; &quot;&gt;David Hyatt, &lt;a href=&quot;https://webkit.org/blog/66/the-fouc-problem/&quot;&gt;The FOUC Problem&lt;/a&gt;&lt;/p&gt;
      &lt;a href=&quot;#fnref-14&quot; class=&quot;footnote-backref&quot; style=&quot;display:inline;text-decoration: none;&quot;&gt;
        ↩
      &lt;/a&gt;
    
      &lt;/li&gt;
      
    

    &lt;li class=&quot;footnote-list-item&quot; id=&quot;fn-15&quot; &gt;
          
        &lt;p class=&quot;footnote-paragraph&quot; style=&quot;display:inline; &quot;&gt;&lt;a href=&quot;https://www.w3.org/TR/html4/&quot;&gt;HTML 4.01 Specification.&lt;/a&gt;&lt;/p&gt;
      &lt;a href=&quot;#fnref-15&quot; class=&quot;footnote-backref&quot; style=&quot;display:inline;text-decoration: none;&quot;&gt;
        ↩
      &lt;/a&gt;
    
      &lt;/li&gt;
      
    

    &lt;li class=&quot;footnote-list-item&quot; id=&quot;fn-16&quot; &gt;
          
        &lt;p class=&quot;footnote-paragraph&quot; style=&quot;display:inline; &quot;&gt;&lt;a href=&quot;https://dev.w3.org/html5/spec/Overview.html&quot;&gt;W3C HTML5 Specification.&lt;/a&gt;&lt;/p&gt;
      &lt;a href=&quot;#fnref-16&quot; class=&quot;footnote-backref&quot; style=&quot;display:inline;text-decoration: none;&quot;&gt;
        ↩
      &lt;/a&gt;
    
      &lt;/li&gt;
      
    

    &lt;li class=&quot;footnote-list-item&quot; id=&quot;fn-17&quot; &gt;
          
        &lt;p class=&quot;footnote-paragraph&quot; style=&quot;display:inline; &quot;&gt;&lt;a href=&quot;https://www.w3.org/TR/CSS2/&quot;&gt;Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification.&lt;/a&gt;&lt;/p&gt;
      &lt;a href=&quot;#fnref-17&quot; class=&quot;footnote-backref&quot; style=&quot;display:inline;text-decoration: none;&quot;&gt;
        ↩
      &lt;/a&gt;
    
      &lt;/li&gt;
      
    

    &lt;li class=&quot;footnote-list-item&quot; id=&quot;fn-18&quot; &gt;
          
        &lt;p class=&quot;footnote-paragraph&quot; style=&quot;display:inline; &quot;&gt;&lt;a href=&quot;https://developer.mozilla.org/Build_Documentation&quot;&gt;How to build Firefox.&lt;/a&gt;&lt;/p&gt;
      &lt;a href=&quot;#fnref-18&quot; class=&quot;footnote-backref&quot; style=&quot;display:inline;text-decoration: none;&quot;&gt;
        ↩
      &lt;/a&gt;
    
      &lt;/li&gt;
      
    

    &lt;li class=&quot;footnote-list-item&quot; id=&quot;fn-19&quot; &gt;
          
        &lt;p class=&quot;footnote-paragraph&quot; style=&quot;display:inline; &quot;&gt;&lt;a href=&quot;https://webkit.org/building/build.html&quot;&gt;How to build WebKit.&lt;/a&gt;&lt;/p&gt;
      &lt;a href=&quot;#fnref-19&quot; class=&quot;footnote-backref&quot; style=&quot;display:inline;text-decoration: none;&quot;&gt;
        ↩
      &lt;/a&gt;
    
      &lt;/li&gt;
      
    &lt;/ol&gt;&lt;/div&gt;</content:encoded><author>michael@ratcliffefamily.org</author></item><item><title><![CDATA[New job at Mozilla]]></title><description><![CDATA[Okay, I have had the job now for over 3 months but I have really been neglecting my blog... after all, you all deserve to know about what we…]]></description><link>https://flailingmonkey.com/new-job-at-mozilla/</link><guid isPermaLink="false">https://flailingmonkey.com/new-job-at-mozilla/</guid><category><![CDATA[Mozilla]]></category><dc:creator><![CDATA[Mike Ratcliffe]]></dc:creator><pubDate>Tue, 26 Jul 2011 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Okay, I have had the job now for over 3 months but I have really been neglecting my blog... after all, you all deserve to know about what we Mozillians are up to and we are doing some awesome things at the moment.&lt;/p&gt;
&lt;p&gt;I have been contributing to Firebug and Firebug Lite under various guises now since about 2006 and, I may be biased but, in my opinion it is still the best web development tool ever created. I contribute mainly to the highlighter that outlines nodes on a page but all contributers fix code pretty much anywhere in the source. I remember seeing some interesting code early in 1998 concerning a special built in page triggered by typing &lt;code class=&quot;language-text&quot;&gt;about:mozilla&lt;/code&gt; in the address bar... this is around the time that I learned about open source software and decided that I wanted to work for Mozilla.&lt;/p&gt;
&lt;p&gt;A couple of years after that, I started contributing to OSCommerce and around 2006 I started contributing to Joe Hewitt&apos;s &lt;a href=&quot;https://www.getfirebug.com&quot;&gt;Firebug&lt;/a&gt;. I have seen Firebug grow from being a simple logging tool to being the fantastic web development tool that it is today. In the past couple of years &lt;a href=&quot;https://robcee.net/about/&quot;&gt;Rob Campbell&lt;/a&gt; contacted me a few times and told me that I should apply for a position with Mozilla. At the time I thought that all of the Firefox source code was heavy duty C++ code and that makes my eyes bleed, probably something to do with me not coming equipped with a UNIX beard.&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 417px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/49288c4fb095dc1734d4f34b2778ab04/6eca5/style-inspector.jpg&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 158.38150289017344%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/jpeg;base64,/9j/2wBDABALDA4MChAODQ4SERATGCgaGBYWGDEjJR0oOjM9PDkzODdASFxOQERXRTc4UG1RV19iZ2hnPk1xeXBkeFxlZ2P/2wBDARESEhgVGC8aGi9jQjhCY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2P/wgARCAAgABQDASIAAhEBAxEB/8QAGQABAQADAQAAAAAAAAAAAAAAAwABAgQF/8QAFAEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEAMQAAAB9VNWOaWMKSh1H//EABwQAAICAgMAAAAAAAAAAAAAAAECADEDQRARE//aAAgBAQABBQIYxPJI2JO9mm401iCNf//EABQRAQAAAAAAAAAAAAAAAAAAACD/2gAIAQMBAT8BH//EABQRAQAAAAAAAAAAAAAAAAAAACD/2gAIAQIBAT8BH//EABkQAAMAAwAAAAAAAAAAAAAAAAABMhAwMf/aAAgBAQAGPwKSEStHcf/EABwQAAICAwEBAAAAAAAAAAAAAAABESExQXHRgf/aAAgBAQABPyGvQlVh5UKBQZLhFjvBmLgm7+EF6Y62P//aAAwDAQACAAMAAAAQUMM8/8QAFBEBAAAAAAAAAAAAAAAAAAAAIP/aAAgBAwEBPxAf/8QAFBEBAAAAAAAAAAAAAAAAAAAAIP/aAAgBAgEBPxAf/8QAHBABAAIDAQEBAAAAAAAAAAAAAQARITFBcVFh/9oACAEBAAE/EKKFDYgc8gBRelQAocQAGq1qWxrjqx21j+IWOFGteR3AFVsmUFNI0KsfPYMlm+WSpw19n//Z&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Style Inspector&quot;
        title=&quot;&quot;
        src=&quot;/static/49288c4fb095dc1734d4f34b2778ab04/6eca5/style-inspector.jpg&quot;
        srcset=&quot;/static/49288c4fb095dc1734d4f34b2778ab04/9ac50/style-inspector.jpg 173w,
/static/49288c4fb095dc1734d4f34b2778ab04/8d48c/style-inspector.jpg 345w,
/static/49288c4fb095dc1734d4f34b2778ab04/6eca5/style-inspector.jpg 417w&quot;
        sizes=&quot;(max-width: 417px) 100vw, 417px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Style Inspector&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;Rob invited me again in January 2011 and I had a strong gut feeling that I should go for it no matter what, I could not let this fantastic opportunity pass me by after waiting for almost 14 years. I waited 4 months for Mozilla to contact me and turned down numerous permanent positions with other companies. The wait was worth it even though this position was only a 3 month contract. I would be a member of the Firefox team working on a new set of builtin &lt;a href=&quot;https://wiki.mozilla.org/DevTools/Roadmap&quot;&gt;Developer Tools&lt;/a&gt;. The range of tools that we are building really is amazing, you will hear about them in future blog posts.&lt;/p&gt;
&lt;p&gt;The developer tool that I have been assigned to work on is called the &lt;a href=&quot;https://wiki.mozilla.org/DevTools/Features/StyleInspector&quot;&gt;style inspector&lt;/a&gt;. It basically displays a node&apos;s calculated styles along with displaying the CSS selectors that are responsible for that style. It also displays a list of selectors that match or do not match your node. I will blog about the tools under development, including my own so that you can have an idea what is in the pipeline.&lt;/p&gt;
&lt;p&gt;I should point out that the DevTools project does not aim to replace Firebug. Firebug is a fantastic tool that has taken years to develop and will have a bright and shiny future... our DevTools will simply add more functionality.&lt;/p&gt;
&lt;p&gt;We all know that to build the world&apos;s best developer toolset we need feedback from the whole range of web developers and designers. There are thousands of people around the world that are cursing browser vendors because they have not created a tool to do a particular thing. If this is you then post a comment and let us know, we can&apos;t do anything without you asking until we create the mind reading DevTool and that may be a long time in coming ;)&lt;/p&gt;
&lt;p&gt;Does this news excite you? Have an idea for a new developer tool? Let us know by adding a comment.&lt;/p&gt;</content:encoded><author>michael@ratcliffefamily.org</author></item><item><title><![CDATA[Firefox 4, Not Just Another Version Number!]]></title><description><![CDATA[So, it has been a long time coming, but I am sure that once you have experienced the awesome that the Mozilla developers have produced you…]]></description><link>https://flailingmonkey.com/firefox-4-not-just-another-version-number/</link><guid isPermaLink="false">https://flailingmonkey.com/firefox-4-not-just-another-version-number/</guid><category><![CDATA[Mozilla]]></category><dc:creator><![CDATA[Mike Ratcliffe]]></dc:creator><pubDate>Wed, 23 Mar 2011 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;So, it has been a long time coming, but I am sure that once you have experienced the awesome that the Mozilla developers have produced you will agree…. this is a download worth getting!&lt;/p&gt;
&lt;p&gt;We have come a long way since I started using Mozilla products. Way back in 2005 when I was a younger boy (what… I’m only 18. I downloaded and rediscovered the web. What did I download? Why I downloaded &lt;a href=&quot;https://www.mozilla.com/en-US/firefox/releases/1.5.html&quot;&gt;Firefox 1.5&lt;/a&gt;. What a difference and turn that put in the path that is my life.&lt;/p&gt;
&lt;p&gt;Since then I have seen the release of the wonderful &lt;a href=&quot;https://www.mozilla.com/firefox/2.0/releasenotes/&quot;&gt;Firefox 2.0&lt;/a&gt;, &lt;a href=&quot;https://www.mozilla.com/firefox/3.0/releasenotes/&quot;&gt;Firefox 3.0&lt;/a&gt;, &lt;a href=&quot;https://www.mozilla.com/firefox/3.5/releasenotes/&quot;&gt;Firefox 3.5&lt;/a&gt;, and until recently &lt;a href=&quot;https://www.mozilla.com/firefox/3.6/releasenotes/&quot;&gt;Firefox 3.6&lt;/a&gt;. With each new iteration there have been new features, new websites taking advantage of the packed in technologies, and more importantly a better, safer, and more open web.&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;gatsby-resp-iframe-wrapper&quot; style=&quot;padding-bottom: 56.49999999999999%; position: relative; height: 0; overflow: hidden; &quot; &gt; &lt;div class=&quot;embedVideo-container&quot;&gt; &lt;iframe title=&quot;&quot; src=&quot;https://www.youtube.com/embed/tP_i5j74rXo?rel=0&quot; class=&quot;embedVideo-iframe&quot; style=&quot;border:0; position: absolute; top: 0; left: 0; width: 100%; height: 100%; &quot; loading=&quot;lazy&quot; allowfullscreen=&quot;&quot; sandbox=&quot;allow-same-origin allow-scripts allow-popups&quot;&gt;&lt;/iframe&gt; &lt;/div&gt; &lt;/div&gt;&lt;/p&gt;
&lt;p&gt;So why the wait for &lt;a href=&quot;https://www.mozilla.org/firefox/4.0/releasenotes/&quot;&gt;Firefox 4&lt;/a&gt;? Does the web not need the love and care it once got from Mozilla? I think that if you respond to that one with a yes then you are misinformed. The wait has not been through lack of caring, quite the opposite! There are now so many new features and capabilities that have been added since 3.6 that it just took a little longer to package them all up for you.&lt;/p&gt;
&lt;p&gt;There is more it it than just the new features though... since the beginning Mozilla Firefox has helped grow a global community of dedicated volunteers who are all working towards a common goal. That goal is a better web… it is a never ending mission and as such if you should ever meet one of these people, even if you are one yourself, don’t forget to thank them for their time, effort and dedication, because with out them…. well I hate to think what the web would be like.&lt;/p&gt;
&lt;p&gt;Anyhow, that is my boring ramblings... want a full list of features? Visit &lt;a href=&quot;https://www.mozilla.org/firefox&quot;&gt;www.mozilla.org/firefox&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;See &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/Demos_of_open_web_technologies&quot;&gt;some of the awesome new technology&lt;/a&gt; packed into the desktop release:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;gatsby-resp-iframe-wrapper&quot; style=&quot;padding-bottom: 56.49999999999999%; position: relative; height: 0; overflow: hidden; &quot; &gt; &lt;div class=&quot;embedVideo-container&quot;&gt; &lt;iframe title=&quot;&quot; src=&quot;https://www.youtube.com/embed/fdM1SZidPvE?rel=0&quot; class=&quot;embedVideo-iframe&quot; style=&quot;border:0; position: absolute; top: 0; left: 0; width: 100%; height: 100%; &quot; loading=&quot;lazy&quot; allowfullscreen=&quot;&quot; sandbox=&quot;allow-same-origin allow-scripts allow-popups&quot;&gt;&lt;/iframe&gt; &lt;/div&gt; &lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Oh and don’t forget... Firefox is not only for the desktop! Take the web with you with Firefox 4 Mobile!&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;gatsby-resp-iframe-wrapper&quot; style=&quot;padding-bottom: 56.49999999999999%; position: relative; height: 0; overflow: hidden; &quot; &gt; &lt;div class=&quot;embedVideo-container&quot;&gt; &lt;iframe title=&quot;&quot; src=&quot;https://www.youtube.com/embed/5LewqstgWaE?rel=0&quot; class=&quot;embedVideo-iframe&quot; style=&quot;border:0; position: absolute; top: 0; left: 0; width: 100%; height: 100%; &quot; loading=&quot;lazy&quot; allowfullscreen=&quot;&quot; sandbox=&quot;allow-same-origin allow-scripts allow-popups&quot;&gt;&lt;/iframe&gt; &lt;/div&gt; &lt;/div&gt;&lt;/p&gt;</content:encoded><author>michael@ratcliffefamily.org</author></item><item><title><![CDATA[Firebug Inspector Improvements]]></title><description><![CDATA[Almost a year since I last posted, I can't believe it. I am no longer spending time working on Firebug Lite, but am spending my spare time…]]></description><link>https://flailingmonkey.com/firebug-inspector-improvements/</link><guid isPermaLink="false">https://flailingmonkey.com/firebug-inspector-improvements/</guid><category><![CDATA[Mozilla]]></category><dc:creator><![CDATA[Mike Ratcliffe]]></dc:creator><pubDate>Sat, 10 Jul 2010 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Almost a year since I last posted, I can&apos;t believe it. I am no longer spending time working on Firebug Lite, but am spending my spare time these days working on Firebug&apos;s inspector.&lt;/p&gt;
&lt;p&gt;There are three versions of the inspector&apos;s highlighter:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The frame highlighter is the blue frame that appears around elements when you click the inspect button and move the mouse cursor around the screen.&lt;/li&gt;
&lt;li&gt;The box highlighter appears when you mouse over HTML nodes in the HTML panel... this highlighter covers the element with a blue box, the element&apos;s margin with a yellow box etc. this is similar to the inspector used in the layout side panel except that the layout panel version can also display rulers in the elements parent.&lt;/li&gt;
&lt;li&gt;The image map highlighter appears when you inspect an image that has a related image map.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;There have been a whole host of bugs that we have worked on when it comes to the inspector. These bugs can be neatly divided into 4:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Inspector not playing nicely with framesets... because calculating the position of elements within framesets is much more difficult there are naturally a lot of offset problems.&lt;/li&gt;
&lt;li&gt;People sometimes do some whacky things with web pages like setting the HTML tag to position absolute etc. This can affects the position of every element on a page, so we needed to make changes to get this working properly.&lt;/li&gt;
&lt;li&gt;Disabled elements could not be inspected. Because inspected elements block all events, not only click events, no mouseover events are triggered, because the inspector needs this event to inspect an element this was not possible.&lt;/li&gt;
&lt;li&gt;Because the inspector consists of a set of divs injected into a page the CSS styles from the page were often inherited by the inspector&apos;s divs.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Finding solutions for these problems took time and sanity. The solution to points 1 &amp;#x26; 2 were simple enough... simply calculate offsets and apply them to the highlighter. The fix for point 3 was to add proxy elements to the page to enable disabled elements to be inspected, these proxies are transparent divs that are positioned directly over disabled elements. Inspecting these proxy divs simply passed the disabled element to the inspector so that it could be highlighted. The solution to point 4 was to add styles to the highlighters divs with !important to set margins, padding etc. to zero to cancel out any CSS that the inspector would inherit.&lt;/p&gt;
&lt;p&gt;Since fixing these problems there have only been small issues with the inspector, so there has really not been very much for me to do but one thing has become very apparent... these fixes are not good enough! Apart from the fact that we should never be injecting elements into web pages there are many shortcomings to these fixes. The proxy elements are injected into a page when you click inspect, if a disabled element is moved after you begin inspecting then the proxy and highlighter will be in the wrong position. We could change this to monitor the disabled elements and update the proxies as appropriate but that would cause big performance issues on lots of pages. The biggest problem is with fix number 4...&lt;/p&gt;
&lt;p&gt;By choosing CSS styles and setting them to 0 !important we effectively stop the elements from inheriting CSS styles, but the list of elements that we need to do this with is becoming much larger. One of the first styles that we blocked was &lt;code class=&quot;language-text&quot;&gt;-moz-opacity&lt;/code&gt; but then Firefox chose to support &lt;code class=&quot;language-text&quot;&gt;opacity&lt;/code&gt;. Then CSS transforms came along and whichever new CSS attributes come along all of the time. This is what Ryan Wolf discusses &lt;a href=&quot;https://web.archive.org/web/20111001031820/https://borderstylo.com/posts/177-adding-nodes-to-the-dom-with-style&quot;&gt;here&lt;/a&gt;... he is currently working on the Glass extension (now defunkt) and has had a similar set of experiences in making that extension inspector work.&lt;/p&gt;
&lt;p&gt;I have known for a long time that we would ultimately need to stop injecting the highlighters into the target page and move them into the browsers chrome. It made sense to use a transparent panel and draw shapes on the panel as somebody inspects the page. To do this I created a prototype that used a canvas in a transparent panel to render the shapes and this appeared to work well minus a couple of performance problems. I hit another brick wall with canvas... it is not possible to use transforms on canvas. I had a discussion with a Firefox developer recently who said that it would make sense to use SVG instead because the canvas was just used for displaying geometric shapes. I have since discovered that SVG will also allow transforms to be applied to the shapes that are drawn on it, this is the direction that I am planning on taking the inspector. Here is how I would like it to work:&lt;/p&gt;
&lt;p&gt;When a user clicks on inspect the web page is overlayed by a transparent panel that contains SVG content. This overlay will listen for mousemove events and use getElementFromPoint to get the element to be inspected. There will be three methods that the inspector calls and these will highlight the element using the SVG versions of the frame highlighter, the box highlighter or the image map highlighter. Using this transparent overlay has some great advantages that I had not really considered very much. One thing that people often request is the ability to inspect dynamic elements. As an example click inspect, go to a dropdown menu and select a dropdown menu item... when you inspect the item the menu detects the mouse leaving the menu area and the menu collapses. As as a result of the menu collapsing the highlighter highlights where the element was and not where it now is.&lt;/p&gt;
&lt;p&gt;I am planning on making the inspector modular so that custom highlighters can be added. This will allow extensions to do some cool things like displaying lines when inspecting to show offsets etc.&lt;/p&gt;
&lt;p&gt;With the transparent overlay we could optionally cancel events sent to the page and send events using an inspector specific context menu instead. The dynamic menu could now be highlighted by right-clicking the parent element, choosing mouseover then inspecting the child node that is now visible.&lt;/p&gt;
&lt;p&gt;I think that using this technique will make Firebug&apos;s inspector much more powerful... I am also interested in your feedback about the idea would be much appreciated as you may be able to think about things that I have not considered.&lt;/p&gt;</content:encoded><author>michael@ratcliffefamily.org</author></item><item><title><![CDATA[Firebug Lite - Changes Q4 2008 - Q1 2009]]></title><description><![CDATA[We have made a bunch of changes to Firebug Lite over the last few months and it is about time we shared them with you. For those that don't…]]></description><link>https://flailingmonkey.com/firebug-lite-changes-q4-2008-q1-2009/</link><guid isPermaLink="false">https://flailingmonkey.com/firebug-lite-changes-q4-2008-q1-2009/</guid><category><![CDATA[Mozilla]]></category><category><![CDATA[Firebug]]></category><dc:creator><![CDATA[Mike Ratcliffe]]></dc:creator><pubDate>Tue, 05 May 2009 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;We have made a bunch of changes to &lt;a href=&quot;https://getfirebug.com/lite.html&quot;&gt;Firebug Lite&lt;/a&gt; over the last few months and it is about time we shared them with you. For those that don&apos;t know what Firebug Lite is, it is basically a cross browser version of Firebug. It does not have the JavaScript debugging capabilities of Firebug but is excellent for viewing the HTML and DOM structure of web pages.&lt;/p&gt;
&lt;p&gt;We have corrected a lot of bugs and added the following enhancements:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Open in Popup - this feature has been requested by lots of people and really improves Firebug Lite:&lt;/p&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 500px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/6b2938906ed9d8a0d864b5d100da2f13/41099/firebug-lite-in-popup.jpg&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 52.02312138728323%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/jpeg;base64,/9j/2wBDABALDA4MChAODQ4SERATGCgaGBYWGDEjJR0oOjM9PDkzODdASFxOQERXRTc4UG1RV19iZ2hnPk1xeXBkeFxlZ2P/2wBDARESEhgVGC8aGi9jQjhCY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2P/wgARCAAKABQDASIAAhEBAxEB/8QAFwABAQEBAAAAAAAAAAAAAAAAAAECBf/EABUBAQEAAAAAAAAAAAAAAAAAAAAB/9oADAMBAAIQAxAAAAHrtRKF/8QAGRAAAgMBAAAAAAAAAAAAAAAAAAEREiAh/9oACAEBAAEFAmoOFcf/xAAUEQEAAAAAAAAAAAAAAAAAAAAQ/9oACAEDAQE/AT//xAAUEQEAAAAAAAAAAAAAAAAAAAAQ/9oACAECAQE/AT//xAAZEAABBQAAAAAAAAAAAAAAAAAxAAERIJH/2gAIAQEABj8CEoPlf//EABsQAQEAAgMBAAAAAAAAAAAAAAEAEXEhQVFh/9oACAEBAAE/IcU5aF8BuIcXRC+2W//aAAwDAQACAAMAAAAQ3B//xAAVEQEBAAAAAAAAAAAAAAAAAAAQEf/aAAgBAwEBPxCH/8QAFhEAAwAAAAAAAAAAAAAAAAAAEBEh/9oACAECAQE/EHB//8QAGxABAAIDAQEAAAAAAAAAAAAAAQARITFBUZH/2gAIAQEAAT8QFIB5akFCP70EASGTwgrcriKUUl+yzr9n/9k=&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Firebug Lite in Popup&quot;
        title=&quot;&quot;
        src=&quot;/static/6b2938906ed9d8a0d864b5d100da2f13/41099/firebug-lite-in-popup.jpg&quot;
        srcset=&quot;/static/6b2938906ed9d8a0d864b5d100da2f13/9ac50/firebug-lite-in-popup.jpg 173w,
/static/6b2938906ed9d8a0d864b5d100da2f13/8d48c/firebug-lite-in-popup.jpg 345w,
/static/6b2938906ed9d8a0d864b5d100da2f13/41099/firebug-lite-in-popup.jpg 500w&quot;
        sizes=&quot;(max-width: 500px) 100vw, 500px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Firebug lite in popup&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;You used to be able to run the latest dev version by using a bookmarklet that worked like this:&lt;/p&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;js&quot;&gt;&lt;pre class=&quot;language-js&quot;&gt;&lt;code class=&quot;language-js&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;var&lt;/span&gt; firebug &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; document&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;createElement&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&quot;script&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;

firebug&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;setAttribute&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;
  &lt;span class=&quot;token string&quot;&gt;&quot;src&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;token string&quot;&gt;&quot;https://fbug.googlecode.com/svn/lite/branches/firebug1.2/firebug-lite.js&quot;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
document&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;body&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;appendChild&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;firebug&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;

&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token keyword&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;window&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;firebug&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;version&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
    firebug&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;init&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;else&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;token function&quot;&gt;setTimeout&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;arguments&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;callee&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;

&lt;span class=&quot;token keyword&quot;&gt;void&lt;/span&gt; firebug&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Firebug Lite icon now appears at the bottom right of the page when Lite is hidden - the icon is a visual indicator that Lite is running. You can click the icon to show Lite, look at the tooltip to see hotkeys or &lt;kbd&gt;ctrl | ⌘&lt;/kbd&gt; + &lt;kbd&gt;click&lt;/kbd&gt; to hide the icon.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 48px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/c397e4f2a856bb6618dc369f5d3c3bc4/0ab7e/firebug-lite-icon.jpg&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 104.16666666666667%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/jpeg;base64,/9j/2wBDABALDA4MChAODQ4SERATGCgaGBYWGDEjJR0oOjM9PDkzODdASFxOQERXRTc4UG1RV19iZ2hnPk1xeXBkeFxlZ2P/2wBDARESEhgVGC8aGi9jQjhCY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2P/wgARCAAVABQDASIAAhEBAxEB/8QAGAABAQEBAQAAAAAAAAAAAAAAAAEDAgX/xAAWAQEBAQAAAAAAAAAAAAAAAAAAAQL/2gAMAwEAAhADEAAAAfYzszdlakB0D//EABsQAAMAAgMAAAAAAAAAAAAAAAABAhESAyEi/9oACAEBAAEFAl2U/PGPOsJkGrNaJWD/xAAUEQEAAAAAAAAAAAAAAAAAAAAg/9oACAEDAQE/AR//xAAUEQEAAAAAAAAAAAAAAAAAAAAg/9oACAECAQE/AR//xAAdEAACAQQDAAAAAAAAAAAAAAAAARECMTJxEFGh/9oACAEBAAY/ApdTuSnUx7HHb4q2ZGXheT//xAAeEAEAAgIBBQAAAAAAAAAAAAABABEhMUFhcZGx8P/aAAgBAQABPyEUQ8jfWIWJfDEpdWuUR8S7zGXBNvjRKrpAq1UAK9Uy7sW5/9oADAMBAAIAAwAAABAfDzz/xAAWEQEBAQAAAAAAAAAAAAAAAAABESD/2gAIAQMBAT8QAlcf/8QAFhEBAQEAAAAAAAAAAAAAAAAAAREg/9oACAECAQE/EFbDH//EAB0QAQACAwADAQAAAAAAAAAAAAEAESExQVFhcZH/2gAIAQEAAT8QXBDqAFIOeomFK0Di96gBig7MGP25z6lhbtGqFF9uPMCGtu75gVuMAtW2wQHQUQQXLIoHA58n/9k=&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Firebug Lite Icon&quot;
        title=&quot;&quot;
        src=&quot;/static/c397e4f2a856bb6618dc369f5d3c3bc4/0ab7e/firebug-lite-icon.jpg&quot;
        srcset=&quot;/static/c397e4f2a856bb6618dc369f5d3c3bc4/0ab7e/firebug-lite-icon.jpg 48w&quot;
        sizes=&quot;(max-width: 48px) 100vw, 48px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Firebug lite icon&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;No more bleedthrough - there have been numerous issues with Firebug Lite being rendered behind dropdowns, Flash animations, iframes etc. This made it &lt;strong&gt;very&lt;/strong&gt; difficult to use for some sites... we now use an iframe shield to prevent this bleedthrough.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Added a new preference &lt;code class=&quot;language-text&quot;&gt;firebug.env.detectFirebug&lt;/code&gt; to prevent Lite appearing when Firebug is running - this is now the new default behavior.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;It is useful when reporting bugs to be able to let us know which version of Firebug Lite you are running. We have added the console.firebug command which displays the full version number.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Extra Firebug Lite hotkeys - Lite can be used on a variety of platforms in a variety of browsers. Unfortunately this means that keyboard conflicts are inevitable. To work around this issue we have increased the number of hotkeys that can be used in Lite:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Show Firebug Lite - &lt;kbd&gt;F12&lt;/kbd&gt;, &lt;kbd&gt;ctrl | ⌘&lt;/kbd&gt; + &lt;kbd&gt;⇧&lt;/kbd&gt; + &lt;kbd&gt;L&lt;/kbd&gt; or &lt;kbd&gt;⇧&lt;/kbd&gt; + &lt;kbd&gt;⏎&lt;/kbd&gt;&lt;/li&gt;
&lt;li&gt;Open in new Window - &lt;kbd&gt;ctrl | ⌘&lt;/kbd&gt; + &lt;kbd&gt;F12&lt;/kbd&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Options Dropdown - up until now it has been necessary for Lite users to set Lite options in their code in order to control Lite behavior. This is fine if you have full access to a website but it is not possible if you do not have access. To overcome this problem we have added an options dropdown to Firebug Lite. All the old &lt;code class=&quot;language-text&quot;&gt;firebug.env&lt;/code&gt; settings can still be set in your code but these now just set the default behavior. These settings can now also be changed from the options dropdown and are stored in cookies for each domain.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;figure&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 198px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/0e0461a82e5a0a6bf582b98fc697dc2d/1c62d/firebug-lite-options-dropdown.jpg&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 146.242774566474%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/jpeg;base64,/9j/2wBDABALDA4MChAODQ4SERATGCgaGBYWGDEjJR0oOjM9PDkzODdASFxOQERXRTc4UG1RV19iZ2hnPk1xeXBkeFxlZ2P/2wBDARESEhgVGC8aGi9jQjhCY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2P/wgARCAAdABQDASIAAhEBAxEB/8QAGQAAAgMBAAAAAAAAAAAAAAAAAAMBAgQF/8QAFQEBAQAAAAAAAAAAAAAAAAAAAAH/2gAMAwEAAhADEAAAAexRlhJqIRMlMFB//8QAGRAAAwEBAQAAAAAAAAAAAAAAAAEREBIg/9oACAEBAAEFAqNnOXwtrP/EABYRAAMAAAAAAAAAAAAAAAAAAAAQEf/aAAgBAwEBPwEr/8QAFBEBAAAAAAAAAAAAAAAAAAAAIP/aAAgBAgEBPwEf/8QAFhAAAwAAAAAAAAAAAAAAAAAAEDBB/9oACAEBAAY/AhFf/8QAHhABAAIBBAMAAAAAAAAAAAAAAQARITFBUYEQ4fD/2gAIAQEAAT8haasBKU7leIybsHpV+FOT7uGdw69ylYgo5zFtxiUbz//aAAwDAQACAAMAAAAQcD8w/8QAFhEAAwAAAAAAAAAAAAAAAAAAABAR/9oACAEDAQE/ECn/AP/EABcRAAMBAAAAAAAAAAAAAAAAAAABEBH/2gAIAQIBAT8QMV//xAAfEAEBAAIBBAMAAAAAAAAAAAABEQAhQTFRYaFxkdH/2gAIAQEAAT8QjGI+TL8q8KYR36f3KRA1w+fjGwBTqqX1ga2A5oD0MEKhLysaNCdzNwRIEMak9+hxZL+jP//Z&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Firebug Lite Options Dropdown&quot;
        title=&quot;&quot;
        src=&quot;/static/0e0461a82e5a0a6bf582b98fc697dc2d/1c62d/firebug-lite-options-dropdown.jpg&quot;
        srcset=&quot;/static/0e0461a82e5a0a6bf582b98fc697dc2d/9ac50/firebug-lite-options-dropdown.jpg 173w,
/static/0e0461a82e5a0a6bf582b98fc697dc2d/1c62d/firebug-lite-options-dropdown.jpg 198w&quot;
        sizes=&quot;(max-width: 198px) 100vw, 198px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
  &lt;figcaption&gt;Firebug lite options dropdown&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Text content is no longer trimmed - it was often frustrating that the text content in the HTML tree was trimmed to around 50 characters. This setting is now off by default and can be changed using either &lt;code class=&quot;language-text&quot;&gt;firebug.env.textNodeChars&lt;/code&gt; or the settings dialog.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Hide DOM functions - another recurring issue has been that the DOM tree is slow... especially when using libraries that add a bunch of methods to the DOM. We have added an option to disable the display of DOM functions in the DOM tree. This option can be set using either &lt;code class=&quot;language-text&quot;&gt;firebug.env.hideDOMFunctions&lt;/code&gt; or the settings dialog.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Handling of the same domain policy in XHR, CSS and Script tabs - in the past we always assumed that the same domain policy was active on every site. We have now changed this handling and will always attempt AJAX request (this is how we get the CSS and script text) letting you know only when there is a problem. This means that more scripts and stylesheets will be available for sites that do not use the same domain policy.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Text nodes can now be reached via the inspect method. Unfortunately there are limitations to the inspect method in Firebug Lite. This is because of the way that browsers work... as an example imagine that you have a text node inside of a span tag, the span tag contains an onclick handler. If the text is clicked then you probably want the span element to receive the onclick event. For this reason browsers have a tendency to send the onclick event of a text node to the containing element. Because of this issue highlighting or clicking text nodes usually results in highlighting their parent elements. Nevertheless, if a text node is not contained it can now be selected.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Lite can now be used locally over HTTPS - unfortunately Lite throws a bunch of insecure content errors when used for HTTPS pages. The only workaround is to copy the files to the domain that you wish to debug and to set &lt;code class=&quot;language-text&quot;&gt;firebug.env.css&lt;/code&gt; to point to the copy of the CSS file stored on that domain. Otherwise you just need to click through the warnings when they pop up.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;We have added these enhancements to Firebug Lite but would like to add more. If you have any ideas of which enhancements we should add or if you find any errors in Lite then please &lt;a href=&quot;https://code.google.com/p/fbug/issues/list&quot;&gt;log an enhancement request or issue&lt;/a&gt;... just don&apos;t forget to mention Firebug Lite in the subject line.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;</content:encoded><author>michael@ratcliffefamily.org</author></item></channel></rss>