title: javascript document.domain and port number
body: <p><strong>Prerequisites:</strong></p>
  
  <p>The browser keeps the domain as a pair ('domain','port') and setting document.domain to its own value (or any other correct one) causes the setter to overwrite port number with null (ok, WTF!?)</p>
  
  <p>See: <a href="https://stackoverflow.com/questions/1481251/what-does-document-domain-document-domain-do">What does document.domain = document.domain do?</a></p>
  
  <p><strong>Question:</strong></p>
  
  <p>Is it possible to invoke the setter in a way that preserves the port or allows one to set it?</p>