Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Fix: made startsWithFiller to use safe isText check instead of instanceof #1502

Merged
merged 6 commits into from
Aug 20, 2018

Conversation

dimaip
Copy link
Contributor

@dimaip dimaip commented Aug 16, 2018

Fix: startsWithFiller should correctly work with DOM Text nodes that are inside of an iframe.

…nstanceof`

Using `domNode instanceof Text` is not safe and may cause issues e.g. across iframes.
@ma2ciek
Copy link
Contributor

ma2ciek commented Aug 16, 2018

Hi, @dimaip :)

Thanks for the PR!

I have only one doubt - the iframe will persist in the DOM after your test. Could you detach the iframe after the test, so the testing environment will stay clean?

@dimaip
Copy link
Contributor Author

dimaip commented Aug 16, 2018

@ma2ciek sure, wasn't aware it's not somehow destroyed between the tests.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 98.616% when pulling 99747a8 on dimaip:patch-1 into ef5960e on ckeditor:master.

@dimaip
Copy link
Contributor Author

dimaip commented Aug 17, 2018

@ma2ciek ok, looks like the tests are green

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

Successfully merging this pull request may close these issues.

4 participants