3 ms·
Upvoted for wbr. I kinda wished for something like this. I wonder if it actually works in modern browsers.
by radu_floricica 18y ago
Upvoted for wbr. I kinda wished for something like this. I wonder if it actually works in modern browsers.
- bscofield 18y agoC'mon, any upvote for wbr should be more than equaled by downvotes for saying label is rare and/or obscure.
- nreece 18y agoWorks in IE and FF. Buggy in Safari. Does not work in Opera. Ref: http://www.quirksmode.org/oddsandends/wbr.html http://www.quirksmode.org/oddsandends/wbr.html
- tremendo 18y agoFrom the browser compatibility chart there, I find that ­ would be better for the purpose than <wbr> failing only for Firefox 2 which at this point should be negligible.
- derefr 18y agoDon't use <wbr>, use ­ (soft hyphen). Actually renders with a hyphen attached, letting you know you're reading one broken word, and not just two odd ones (I'm sure this happens, but I can't think of a good example.)
- samueladam 18y agoThere is also the "Zero Width Break" character ​ You could inject it every x characters in very long words when parsing user input. It is used in Thai where word breaks are not visible and line breaks are only allowed at word breaks.
- Hexstream 18y agowbr is not part of any standard.