7 ms·
Once the major browser engines support it, it's de-facto legal. This also explains why there are so few alternative browsers. Writing a new browser that suppor
by tlb 2y ago
Once the major browser engines support it, it's de-facto legal.
This also explains why there are so few alternative browsers. Writing a new browser that supports everything that happens to work in the major browsers is ridiculously hard.
- jitl 2y agoThe big innovation of the html5 spec was to specify how to handle all the “invalid” html states; recovery from user error is now part of the spec instead of wholly implementation specific.
- erik_seaberg 2y agoHTML 5's error recovery pseudocode replaced the formal grammar that HTML 4 had, and in authoring I find it harder to take guidance from.
- smrq 2y agoWell, what's the point of having a formal grammar if nobody follows it and things outside the grammar have defined behavior?
- rkwz 2y agoYes, html is one of the unique languages of our era. It's very forgiving and lenient. > This also explains why there are so few alternative browsers. Writing a new browser that supports everything that happens to work in the major browsers is ridiculously hard. IMO one of the reasons Chrome won was because they supported both Firefox and IE's interpretation of web standards.
- philo23 2y agoYep, the HTML5 spec has an agreed on way to parse and interpret invalid HTML, so all modern browsers should handle it pretty consistently. I was more interested in finding out where this style had come from really, because I've seen a lot of devs doing something similar and semantically it's just always struck me as a bit odd looking!
- 38 2y ago> Once the major browser engines support it, it's de-facto legal. thats madness. just because the browser allows it, doesn't mean you should do it.
- recursive 2y ago"Legal" is not the same as "recommended".