Skip to content

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

Open
peter-klaesson-stratsys wants to merge 1 commit intopadolsey:masterfrom
peter-klaesson-stratsys:ie8bug
Open

Fixes a bug when using IE8 where the dom tree gets extra block elements ...#9
peter-klaesson-stratsys wants to merge 1 commit intopadolsey:masterfrom
peter-klaesson-stratsys:ie8bug

Conversation

@peter-klaesson-stratsys
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown

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