Prerequisites:
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!?)
See: What does document.domain = document.domain do?
Question:
Is it possible to invoke the setter in a way that preserves the port or allows one to set it?