Word division problem:
IE 8 may split before a hyphen

Internet Explorer 8 may divide text into lines so that a line break occurs before a hyphen (technically, HYPHEN-MINUS, U+002D). It is difficult to see any justification for this.

The following box should demonstrate this behavior, when viewed on IE 8. It contains the simple string “foo-ba” and has style sheet settings that (try to) impose a particular font and width of the box.

foo-ba

The U+2010 HYPHEN character has the same problem:

foo‐ba

You can also use the following test text, viewing it with different browser window widths. On IE 8, depending on the width, a line break may appear either before or after a hyphen.

Test text with lots of hyphens: foo-bar foo-bar foo-bar foo-bar foo-bar foo-bar foo-bar foo-bar foo-bar foo-bar foo-bar foo-bar foo-bar foo-bar foo-bar foo-bar foo-bar foo-bar foo-bar foo-bar foo-bar foo-bar foo-bar foo-bar.