I think it would be possible to fix bug #11080 (news spoiler feature)
by using mozTXTToHTMLConv to surround the text after the ^L with a
SPAN tag  with "display: none" set, and append a JavaScript link that
toggles the display style on that element. That brings me to my
question: would JavaScript in a message converted from plain text to
HTML by way of mozTXTToHTMLConv for display be subject to the same
restrictions as JavaScript in HTML mail? In other words, would the
inserted JavaScript be disabled if the "don't run JavaScript in HTML mail"
pref was checked?

If not, my idea might work (although it may be dependent on bug #20212). If
so, my solution would cause more problems than our current behavior
(ignoring the linefeed entirely), since there would be no way to undo the
"display: none" style on the spoiler text.

(sending to n.p.m.netlib as well as n.p.m.mail-news since
mozTXTToHTMLConv resides in netlib)

--
The horror, the funky horror! http://www.crfh.net
How would it feel if you were G-rated? http://framed.keenspace.com 100%
nipple-free!
Rocking out to the hits of the NES: http://www.minibosses.com/
Addicted to IRC and proud of it -- irc.nightstar.net



Reply via email to