title: Is the HTML <base> tag also honored by scripting and CSS?
body: <p>The <a href="http://www.w3.org/TR/REC-html40/struct/links.html#h-12.4" rel="noreferrer"><strong>base</strong></a> HTML element provides a base for relative URIs in the HTML. Must JavaScript and CSS also honor it for relative URIs issued in them: </p>
  
  <p>E.g. </p>
  
  <p>JavaScript:</p>
  
  <pre><code>location.href = "mypage.htm"` 
  </code></pre>
  
  <p>CSS:</p>
  
  <pre><code>h4 { 
      background-image: url(myimage.gif) 
  }
  </code></pre>
  
  <p>(in any browser?)</p>