Even if w3schools have fixed all these instances since then, that all those errors were ever produced is a bad sign, especially when there were better alternatives even then.
If you keep punishing someone for past mistakes there is no reason to improve.
On the other hand MDN is a mozilla resource and had good stuff from day 1 so they deserve the traffic.