3 ms·
Maybe we should go back to XHTML and get serious about syntax enforcement. Suggested XHTML 3 rules: - Everything is UTF-8. - All tags must balance and nest p
by Animats 10y ago
Maybe we should go back to XHTML and get serious about syntax enforcement. Suggested XHTML 3 rules:
- Everything is UTF-8.
- All tags must balance and nest properly.
- Any syntax errors or JavaScript errors generate a visible error message for the user telling them the site is broken. Then everything renders in the default font with default formatting.
- When something goes wrong, the site gets a HTTP PUT request with an error report, so sites can tell this happened.
That last feature would make it possible to fix things.
- euyyn 10y ago> Any syntax errors or JavaScript errors generate a visible error message for the user telling them the site is broken. This would make users not use the browser that implemented it. > When something goes wrong, the site gets a HTTP PUT request with an error report, so sites can tell this happened. If I bother to implement a handler just to get error reports from browsers, I surely took first the easier step to open my website in such a browser to check how it looks.
- Animats 10y agoThe parent article says that users leave the site, not the browser, when there's a problem. If some ad code or third-party Javascript library blows up, your site may never know.
- JBiserkov 10y ago>> Any syntax errors or JavaScript errors generate a visible error message for the user telling them the site is broken. >This would make users not use the browser that implemented it. I think the idea behind this is that 1) the web developer will now the site is broken and 2) the client who is paying the web developer will know the site is broken so 3) the site will be fixed before it even gets to the end user.
- rimantas 10y agoMaybe you should go back and lesrn why XHTML was never a good idea. You will discover a lot of interesting things, like MIME types, rendering modes, etc. Browsers did show errors when illegal XHTML was served with proper MIME type, made no one happy.
- spriggan3 10y agoThe web is popular because HTML is sloppy. Your XHTML3 stuff is never going to work. It failed before it will fail again.