1
0
mirror of https://github.com/roytam1/UXP.git synced 2026-06-19 06:48:48 +00:00
Files
UXP/editor/libeditor/crashtests/1158651.html
T

19 lines
494 B
HTML

<script>
onload = function() {
var testContainer = document.createElement("span");
testContainer.contentEditable = true;
document.body.appendChild(testContainer);
function queryFormatBlock(content)
{
testContainer.innerHTML = content;
while (testContainer.firstChild)
testContainer = testContainer.firstChild;
window.getSelection().collapse(testContainer, 0);
document.queryCommandValue('formatBlock');
}
queryFormatBlock('<ol>hello</ol>');
};
</script>