[whatwg] Thoughts on HTML 5

Nils Dagsson Moskopp nils-dagsson-moskopp at dieweltistgarnichtso.net
Tue Dec 16 08:17:12 PST 2008


Am Dienstag, den 16.12.2008, 16:00 +0100 schrieb Giovanni Campagna:
> In a forum you usually write BBCode (or similar), that is server-side
> parsed with the same hacks as the HTML5 parser, while in other context
> it is definitely more powerful to write directly HTML
But people who choose to write HTML should know some basic rules, or
shouldn't they ⸮

> Secondly, this:
> <p>Click on my icon <a href=somewhere.html><img width=88 height=15
> src=myicon.png></p>
> 
> is valid HTML although not valid XHTML. Do you mean this with "messing
> up your code"?
Yes and yes. The WYSIWYG editor should know if it outputs XHTML or HTML.
Software usually has a switch for that.

> Have you got any ideas? 
Pointing out the smallest invalid subtree, along with a valid suggestion
for common errors (like not closing self-closing elements like <img/>,
<br/>) would be a start:

It appears that you have neglected to close an <a> element at line 1
('<a href="foo">bar'). How would you like Blogware to correct that ?

( ) Remove element.
( ) Self-close element.
(x) Close element immediately before parsing error (recommended).

[ Submit ]

> In any case, it is not allowable for companies to have their site down
> because of an user, even for just few minutes (if your lucky and find
> bug immediately)
I don't know why that should happen when using software that doesn't let
malformed (or otherwise unexpected) input slip through.

-- 
Nils Dagsson Moskopp
<http://dieweltistgarnichtso.net>




More information about the whatwg mailing list