Jukka said:
Nope. Correct wrapping is grossly more complex than browsers could
conceivably implement, especially since HTML specifications are silent
about the matter. We've seen enough of the wrong wrapping behavior that
tries to apply Unicode line breaking rules blindly (breaking e.g.
"-a" into "-" and "a" on separate lines).
Perhaps the question should be: How do I persuade the W3C to write a
specification for a mark-up language with a good range of semantic
mark-up [so something can be marked-up as maths for instance] and then
persuade the browser programmers to implement this new, better mark-up
language, and then persuade web authors to use it? Okay, so there's no
realistic chance of that happening, but we can dream...
Sensible wrapping would require recognizing the language and using
language-dependent hyphenation, to start with.
What we need are freely-available hyphenation dictionaries for a
variety of languages released under a licence with liberal terms
(something like the GNU FDL or Creative Commons). That's certainly more
plausible than my previous paragraph.
Browsers are _supposed_ to treat width settings as suggested minimum
widths.
Right you are, of course. I'm still dissatisfied with table layout
algorithms however.
It is. It is his or her responsibility to check data that goes to the page,
and handle problems suitably.
I'll concede that point as well. Could you suggest a good way to handle
this? I'm sure there are usability issues with a previous poster's
suggestion of displaying the first few characters of a name and putting
the rest in the 'title' attribute of a surrounding <div>. (And an
unfortunately-truncated version of someone's name could offend.)
If there's no satisfactory solution for the output, the only other
solution I can see is to limit the input, but an error message saying
'Your name is too long. Please enter a shortened form.' or similar may
also offend users. (I remember a few years ago various websites
refusing to let me set up an account because my e-mail address at the
time was too long, which was infuriating.)