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

[#834] Fix radio button selection problem when used in IE browser. #845

Merged
merged 4 commits into from
Sep 12, 2017

Conversation

msamsel
Copy link
Contributor

@msamsel msamsel commented Aug 30, 2017

What is the purpose of this pull request?

Bug fix

Does your PR contain necessary tests?

All patches which change the editor code must include tests. You can always read more
on PR testing,
how to set the testing environment and
how to create tests
in the official CKEditor documentation.

This PR contains

  • Unit tests
  • Manual tests

What changes did you make?

  • include little hack designed for IE to properly check radio buttons, when those are added to editor.

Close #834

var bot = this.editorBot;

bot.setHtmlWithSelection( '[<input checked="checked" name="name" required="required" type="radio" value="value" />]' );
if ( CKEDITOR.env.ie ) {
bot.setHtmlWithSelection( '[<input checked="checked" name="name" required="required" type="radio" />]' );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why IE got different markup, without [value]? Can't it got the same markup and then just overwrite the attribute?

</div>

<script>
CKEDITOR.replace( 'editor' );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add ignore as it's only for IEs.

Mateusz Samsel and others added 4 commits September 12, 2017 20:28
- ignoring manual test on non-IE browsers
- changing tag of target version to 4.8.0
- rebase and change target branch from master to major
- little update to manual test description
- rearranging unit test - IE gets dedicated assertion instead of having dedicated markup
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.

Add/edit Radio button, enabled status is not saved under IE 9-11
2 participants