Skip to content

Commit

Permalink
replace strike tag
Browse files Browse the repository at this point in the history
unsupported in html5 
yabwe#1415
  • Loading branch information
stefanpejcic authored Jul 23, 2019
1 parent d64da9a commit c5d455d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/buttons.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ describe('Buttons TestCase', function () {
}),
toolbar = editor.getExtensionByName('toolbar'),
button = toolbar.getToolbarElement().querySelector('[data-action="strikethrough"]');
this.el.innerHTML = '<strike>lorem ipsum</strike>';
this.el.innerHTML = '<s>lorem ipsum</s>';

selectElementContentsAndFire(editor.elements[0]);
expect(button.classList.contains('medium-editor-button-active')).toBe(true);
Expand All @@ -611,7 +611,7 @@ describe('Buttons TestCase', function () {
button = toolbar.getToolbarElement().querySelector('[data-action="strikethrough"]');

spyOn(document, 'queryCommandState').and.throwError('DOM ERROR');
this.el.innerHTML = '<strike><b><i>lorem ipsum</i></b></strike>';
this.el.innerHTML = '<s><b><i>lorem ipsum</i></b></s>';

selectElementContentsAndFire(editor.elements[0].querySelector('i'));
expect(button.classList.contains('medium-editor-button-active')).toBe(true);
Expand Down

0 comments on commit c5d455d

Please sign in to comment.