Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes a bug when using IE8 where the dom tree gets extra block elements ... #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

peter-klaesson-stratsys

The p-element got a child p-elements, which is not allowed, and the markup got corrupted.

To reproduce: (use native IE8, not IE9 in IE8 mode)

Go to http://jquery-spellchecker.badsyntax.co/ckeditor.html

Place the cursor between "great explorer" and "of the truth" in the paragraph. Hit enter.

Press spellchecker (ABC-button on the top of the editor).

Spellcheck the second paragraph (starting with 'of the truth'... Correct Noo, consequencses's and painful.

At either "consequencses's" or "painful", the normalize function will create an extra paragraph when normalizing the p-element.

…ts when normalizing a p-element. (The p-element got a child p-elements, which is not allowed, and the markup got corrupted.)
@padolsey
Copy link
Owner

I'm not able to test this atm as I don't have a VM at home but could you run me through what your proposed fix does exactly?

@peter-klaesson-stratsys
Copy link
Author

The fix defers the execution of the node text normalization. I think there are some timing issues with IE8, so the fix is a work around to run correctly in IE8. (This is not the first time where IE behaves strangely, and a setTimeout solves the problem.)

@brettz9
Copy link

brettz9 commented Feb 12, 2015

Has this been integrated already? Can this be closed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants