<!DOCTYPE html>
<html>
<head>
<style>
object, nothtmlelement {
    display: table-cell;
}
</style>
<script>
if (window.testRunner)
    testRunner.dumpAsText();

onload = function() {
    var element = document.createElementNS('http://foo', 'nothtmlelement');
    document.body.appendChild(element);
    document.execCommand('SelectAll');
    document.execCommand('RemoveFormat');
    document.documentElement.textContent = 'PASS if Blink doesn\'t crash.';
};
</script>
</head>
<html>
<body contenteditable="true">
<object>a</object>
</body>
</html>
