Closed Bug 595296 Opened 14 years ago Closed 14 years ago

Spellcheck incorrectly checks css code in <style> tag

Categories

(Thunderbird :: Message Compose Window, defect)

x86
Windows 7
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 222747

People

(Reporter: kuzbad, Unassigned)

Details

User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-us) AppleWebKit/533.17.8 (KHTML, like Gecko) Version/5.0.1 Safari/533.17.8 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.9) Gecko/20100825 Thunderbird/3.1.3 User is attaching an HTML signature. The HTML signature includes a <style> section. <style> <!-- a:link {color:blue; text-decoration:underline; text-underline:single;} a:visited {color:blue; text-decoration:underline; text-underline:single;} .signature { font-family: Arial; color: #3366FF; margin: 0; } --> </style> When running spellcheck on an outgoing message (even if no content is typed other than the signature, spellcheck flags "rgb" as a misspelled words. Thunderbird seems to be sanitizing (or trying to sanitize) the html in the signature file, as when I receive a message from the user the style section looks like: <style>a:link { color: blue; text-decoration: underline; }a:visited { color: blue; text-decoration: underline; }.signature { font-family: Arial; color: rgb(51, 102, 255); margin: 0pt; }</style> The spellchecker appears to be flagging the "rgb" in the .signature style definition as misspelled. I think this is a a new regression as user claims the problem started recently, and the signature file hasn't changed in years (signature file timestamp is at least 2 years old). Reproducible: Always Steps to Reproduce: 1. Add HTML signature with style section and color with #123456 rgb designator 2. Open compose window 3. Spellcheck Actual Results: On this system, "rgb" is flagged as misspelled Expected Results: Spellcheck should ignore contents of HTML <style> tags
Whiteboard: dupme
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
Whiteboard: dupme
You need to log in before you can comment on or make changes to this bug.