3 ms·
>> If the web were designed this way, you'd have a world where only correct html is written. You'd also potentially be looking at a web that is far more unstab
by lostgame 8y ago
>> If the web were designed this way, you'd have a world where only correct html is written.
You'd also potentially be looking at a web that is far more unstable and crash-prone if you essentially treated a browser like a compiler or the like.
- saagarjha 8y agoI believe the point was that if we had made stricter browsers, the web would be much more correct and standards-compliant.
- crimsonalucard 8y agoThe creator of the html page will typically look at the website before he publishes it, so unlikely that someone will publish incorrect html code. It's not like html has branching logic so there's no hidden crashes, everything is explicit similar to the safety you get with type checking. javascript is actually bad for the same reasons. It tries to correct your mistakes by doing type coercion making a null + 1 + 'blah'= "null1blah"