For those of you using Civicspace, please note the following issue relating to the
auto-generation of the "<wbr />" tag:
http://civicspacelabs.org/home/node/16021
My sister and I recently tried to re-modify the URLFILTER module to obfuscate EMAIL addresses to prevent (or at least cut down on!) harvesting of EMAIL addresses from postings.
In the process, we ran across the "civicspace_word_split" function, which inexplicitly
adds "<wbr />" after 30 characters for URL-related code generation (specifically
in the existing URLFILTER module).
Does anyone have a clue as to why this (the function call) is in the Civicspace themes AT ALL?
When we set the (seemingly arbitrary) 30-character limit to 500, things seemed to work OK.
Puzzled as to who to call/consult on this .. I'm willing to help work on it and track it down, but don't know who's interested.
Charlie (aka cyberchucktx)
Comments
I'm interested
Very interested in working out the bugs on the Civicspace themes for 4.7. Nothing useful to add at this point however. I just want to keep track of this thread and hopefully can contribute something later.
WBR should go away
WBR is non-valid and should be discouraged BUT there is good reason for wanting to ensure long URLs and stuff wrap nicely in displays and stuff.
Trying to fit an URL into a sidebox for example can shred your design, and seeing as that space is often dynamic, user content (like a shoutbox) you gotta allow for it.
Try
http://gojomo.blogspot.com/2005/03/cross-browser-invisible-word-break-in...
- I like the zero-width-space
&8203
dan
http://www.coders.co.nz/
.dan. is the New Zealand Drupal Developer working on Government Web Standards
Suggestion: use CSS for this
I would heavily advocate the use of CSS on the left-hand menu to limit the size on the screen.
Using this approach (filtering ALL URLs) is an atom-bomb-to-kill-a-rabbit solution.
For example, we discovered that this particular scheme (injecting WBRs) affects:
1) URLFILTER
2) The Gallery module (s)
3) ANY module that manipulates URLs
And that can't be good ... lots of overhead for little output.
Charlie
So...
and the CSS way of breaking up long words in arbitrary content is ...?
I wanna see it!
.dan.
http://www.coders.co.nz/
.dan. is the New Zealand Drupal Developer working on Government Web Standards