I'm not sure there is still a trend to give an employer 2-weeks notice. Typically once an employee decides that they are ready to leave and they give notice of any kind, it is simply just a professional courtesy for that duration to be 2-weeks. I have noted over the decades that few employers require it and more employers are find with an employee leaving before those 2-weeks are up. Key employees are often offered a position where their knowledge can be 'retained through a consulting engagement', but otherwise nobody really cares.
I give 2-week notices as a courtesy for my coworkers who will be adversely impacted by my departure so that it is possible for me soften the blow for them. A professional courtesy for my friends that I'm leaving behind. I extend this courtesy to not poaching folks from my employer for some period of time as well. But for me, that falls under professional ethics more than it does any real necessity as I have had coworkers leave within a week and go to another company and then try to poach me or other members of my team.
What I *do* want to see become ILLEGAL is this trend of employers to believe that everything that an employee does on their free time belongs to their employer. THAT is a far greater evil than 2-week notice will ever be and, to be honest, has encouraged me to leave more an a couple employers in the past because of the threat to my intellectual curiosity and growth.