Goodreads Librarians Group discussion
Archived
>
Coding not carrying through?
date
newest »

message 1:
by
John
(new)
Feb 19, 2008 08:38AM

" and the string representing an apostrophe, for example) instead of the intended HTML end result (for lack of a better term). I've gone through and stripped it out in descriptions when I've run across it - is it something that's being worked on, or should we report coding as we encounter it? If so, how? Thanks!
reply
|
flag
A lot of the HTML does work now; that tag is one of the few that still doesn't.
I've just been stripping them out when I see them, but an Official Pronouncement would be good. ;)
I've just been stripping them out when I see them, but an Official Pronouncement would be good. ;)


Don't know how familiar you are with HTML, but all codes come in pairs, an opening tag to show where the effect of the code should begin and a closing tag to show where the effect of the code should stop (except for a few, such as for image placement, page breaks, and horizontal lines).
When the auto-breakpoint for the description insert separates the opening tag from the closing, it confuses the browser, which in this case decides that < b > is supposed to be part of the text, since it has no < / b > tag to tell it what the < b > is for. When you click "more" and see the full version of the description, the two halves of the code are reunited and the browser suddenly knows what to do with it.
The only thing that can be done to prevent it is to either place HTML tags in the beginning so that BOTH opening and closing portions will be before the auto-breakpoint OR so that both portions are after the auto-breakpoint. Otherwise the two halves of the code get orphaned from each other when the system creates the brief description insert and the browser gets confused.
It's actually not an unusual problem for database-driven sites, this confusion of the browser by features breaking HTML codes apart from their two halves.