Bug 1443664 - Form control might not have non-chrome only content. r=smaug

This commit is contained in:
Makoto Kato 2018-03-20 16:22:39 +09:00
parent 837dc7eaaa
commit 06aaef4673
3 changed files with 15 additions and 0 deletions

View File

@ -376,6 +376,10 @@ HTMLEditor::UpdateRootElement()
already_AddRefed<nsIContent>
HTMLEditor::FindSelectionRoot(nsINode* aNode)
{
if (NS_WARN_IF(!aNode)) {
return nullptr;
}
NS_PRECONDITION(aNode->IsNodeOfType(nsINode::eDOCUMENT) ||
aNode->IsContent(),
"aNode must be content or document node");

View File

@ -0,0 +1,10 @@
<style>
input:focus { counter-increment: c; }
</style>
<script>
function go() {
a.select();
}
</script>
<body onload=go()>
<input id="a" type="number" contenteditable="true">

View File

@ -97,4 +97,5 @@ load 1408170.html
load 1414581.html
load 1415231.html
load 1425091.html
load 1443664.html
load 1446451.html