Closed Bug 245632 Opened 21 years ago Closed 18 years ago

Compose html email with a smiley, can enter text within the smiley's <span>

Categories

(MailNews Core :: Composition, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: mozilla06b, Assigned: sspitzer)

References

Details

(Keywords: regression)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a2) Gecko/20040601 MultiZilla/1.6.4.0b Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a2) Gecko/20040601 MultiZilla/1.6.4.0b An email composed in Mozilla with a smile in it and some text typed after the smile. Send it. Then display the sent email. The smile and all the text after the smile does not display. The source for the inserted smile looks like this. Notice that the span for the smile encompasses all the text following the insertion point of the smile. Also there is an extra span inserted. regrets about Becky. <span class="moz-smiley-s6"><span> :-[ <br> <br> God bless and keep you.<br> John<br> </span></span> </body> </html> Reproducible: Always Steps to Reproduce: 1.Compose email 2.Insert a smile 3.Type more text in email 4. send email 5. Display sent email in Sent folder. Actual Results: With the message display set to "Original HTML" the smile and none of the text following the smile displays. regrets about Becky. With the message display set to "Simple HTML" the smile and text display but the smile is the character representation. regrets about Becky. :-[ God bless and keep you. John With the message display set to "Plain Text" the smile does not display but the text does display. regrets about Becky. God bless and keep you. John Expected Results: With the message display set to "Original HTML" the smile and all of the text following the smile should display.
Reproduced with: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a2) Gecko/20040604 In order for the text to disappear when viewed As Original, I have to reposition the cursor while typing, back between the "mouth" character (parenthesis or whatever) and the space that trails it. That puts the newly typed text inside the smiley's <span>, which causes it to not be displayed when viewed As Original HTML. This behavior is new relative to 1.6; in that version, it is simply not possible to position the cursor such that typing enters text within the range of the <span>. I don't have a 1.7RC build installed to compare... Viewing a broken message (from 1.8) As Original, in 1.6, displays the smiley but not the text that's included in the <span>. (The nested <span>, by the way, is also there in 1.6-composed mail but doesn't seem to cause a problem.) The *other* bug is that smileys don't display at all when viewed As Original, even if the message is well formed (i.e. composed with 1.6). I've opened bug 245730 for this xref bug 244799, bug 182941. Could this have anything to do with the problem under discussion at bug 235223?
Status: UNCONFIRMED → NEW
Component: Mail Window Front End → Composition
Ever confirmed: true
Keywords: regression
Summary: Display of html email with a smilie (smile) inserted does not display when viewed in sent folder. → Compose html email with a smiley, can enter text within the smiley's <span>
Just discovered part of the problem: smileys are now part of the theme, so if the theme doesn't have them, they won't be displayed -- see bug 238208. It turns out that during composition with an incomplete theme, entering the smiley displays as the smiley text, rather than the graphic. (I should have caught that while testing for this bug...) Because the graphic isn't displayed, you can still end up in this situation where text is being typed within the span. Because this can be easily fixed by using an updated theme, I'm dropping the severity of this bug -- but it's still a bit of a problem, since message text can be inadvertantly hidden if the recipient supports the smiley-spans. Perhaps some sort of style could be applied to the smiley-spans to set them apart, so you can tell when you're typing inside them?
Severity: normal → minor
OS: Linux → All
Changed the theme to Mozilla Classic (I was using Sky Pilot). Now the smilie displays, but the text after the smilie still does not display. Since the work around only works for the smilie but not the text which is the more important of the issues, I think the severity should be normal and not minor.
Severity: minor → normal
The workaround works for composing the message; that is why this is minor. If you've got a complete theme, it's not possible to create a message where text is entered within the smiley-span. The workaround for message display of a broken message is to View | Body | As Simple.
Product: MailNews → Core
*** Bug 302234 has been marked as a duplicate of this bug. ***
Changing to FIXED. I use Firefox and Thunderbird and do not have mozilla or seamonkey installed. Works properly in Thunderbird 1.5.0.9.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Resolution: FIXED → WORKSFORME
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.