Bug 219062

Summary: Spellcheck window displays HTML in preview window part
Product: [Unmaintained] kdelibs Reporter: Māris Nartišs <maris.kde>
Component: kspellAssignee: Zack Rusin <zack>
Status: RESOLVED FIXED    
Severity: normal CC: christoph, pano9000
Priority: NOR    
Version First Reported In: 4.3   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot with strange text preview
After pressing "ignore" things get broken in different way.
And another way how to display wrong HTML in text preview.

Description Māris Nartišs 2009-12-17 13:39:29 UTC
Version:            (using KDE 4.3.4)
OS:                Linux
Installed from:    Gentoo Packages

1) Start Kate;
2) Enter following text: <b> bbold <i> iitlic <u> nderline <br> <br> </u> text </i> bb </b>
3) Check it's spelling. Check all words. Text preview part will show mixture of broken tags and render parts of text according to tags provided in typed in text.

Spellcheck's text preview part should not be affected by contents of text passed for spellchecking. Any HTML tags should be escaped to dispaly 1:1 as in text passed for checking.
Comment 1 Māris Nartišs 2009-12-17 13:40:35 UTC
Created attachment 39116 [details]
Screenshot with strange text preview
Comment 2 Māris Nartišs 2009-12-17 13:41:41 UTC
Created attachment 39117 [details]
After pressing "ignore" things get broken in different way.
Comment 3 Māris Nartišs 2009-12-17 13:43:22 UTC
Created attachment 39118 [details]
And another way how to display wrong HTML in text preview.

It has also a bright side - it doesn't execute JavaScript (I was not able to figure out how to do this).
Comment 4 Panagiotis Papadopoulos 2010-03-06 15:09:39 UTC
I can confirm this. I've encountered this bug in several occassions, while using Sonnet in Lokalize
Comment 5 Christoph Cullmann 2024-05-10 21:53:58 UTC
We altered the ui, should work better now.