blob: f0ace27180bd1b25f4752496331ceabaedf66186 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body>
<p id="description"></p>
<div id="console"></div>
<script>
description("Ensuring we continue to use strike tags for legacy strikethrough execCommands, not s tags. See https://bugs.webkit.org/show_bug.cgi?id=53475")
var testContainer = document.createElement("div");
testContainer.contentEditable = true;
document.body.appendChild(testContainer);
function test(initialContents, expectedContents)
{
testContainer.innerHTML = initialContents;
var selected = window.getSelection().selectAllChildren(testContainer);
document.execCommand("strikethrough", false, '');
action = 'Strikethrough of "' + initialContents + '" yields "' + testContainer.innerHTML + '"';
if (testContainer.innerHTML === expectedContents)
testPassed(action);
else
testFailed(action + ', expected "' + expectedContents + '"');
}
test("Don't change expected results for me!", "<strike>Don't change expected results for me!</strike>");
document.body.removeChild(testContainer);
var successfullyParsed = true;
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>