Where were you working? That's definitely not how US ip-law operates.
Where were you working? That's definitely not how US ip-law operates.
The rule initially was made to own rights to images and articles from photographers and journalists, so they couldn't sell to third parties, but was extended to also include code.
Every employment contract I've been asked to sign has had some level of owning stuff I do off-hours (up to everything you do any time on your own computers, everything you've done in the past, etc...).
I've always pushed back and gotten it changed to meet my needs.
It is a good signal that they will attempt to prove infringement on your outside work though, and you can't ever guarantee a win in that kind of court case; the case-law is too messy and depends heavily on unproveables like 'intent' and 'reasonability'.
No, it literally can't. It can be somewhat similar with contracts that promise a transfer of IP, but you'd get sued for breach of contract, not for copyright infringement.
That doesn't stop companies from putting draconian claims in their contracts and manuals, and it doesn't stop them from trying to prove infringement anyway (no copyright case ever is a 'sure thing'), which is enough to scare most employees into toeing the line. But they can't actually make unrelated work you do on your own time automatically 'work for hire'.
Here's a solid discussion of that topic: http://www.copyright.gov/circs/circ09.pdf
The pivotal words are "within the scope of his or her employment" - these words can get a little fuzzy, but http://www.wisegeek.com/what-is-scope-of-employment.htm is a reasonable (though not authoritative) discussion of the topic.