зеркало из https://github.com/mozilla/gecko-dev.git
Bug 674212 - Modifying text of a contenteditable DOM Node removes spellcheck underlinings; r=ehsan
This commit is contained in:
Родитель
6bd747cf5d
Коммит
730fe59635
|
@ -9261,4 +9261,7 @@ nsHTMLEditRules::DocumentModifiedWorker()
|
|||
|
||||
// Try to recreate the bogus node if needed.
|
||||
CreateBogusNodeIfNeeded(selection);
|
||||
|
||||
// Reset the spell checker
|
||||
mEditor->SyncRealTimeSpell();
|
||||
}
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en-US" class="reftest-wait">
|
||||
<head>
|
||||
<script type="text/javascript">
|
||||
function init() {
|
||||
var editor = document.querySelector("div[contenteditable]");
|
||||
editor.addEventListener("focus", function() {
|
||||
setTimeout(function() {
|
||||
document.documentElement.className = "";
|
||||
}, 0);
|
||||
}, false);
|
||||
editor.focus();
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body onload="init()">
|
||||
<div contenteditable spellcheck>This is another misspellored word.</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en-US" class="reftest-wait">
|
||||
<head>
|
||||
<script type="text/javascript">
|
||||
function init() {
|
||||
var editor = document.querySelector("div[contenteditable]");
|
||||
editor.addEventListener("focus", function() {
|
||||
editor.textContent = "This is another misspellored word.";
|
||||
setTimeout(function() {
|
||||
document.documentElement.className = "";
|
||||
}, 0);
|
||||
}, false);
|
||||
editor.focus();
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body onload="init()">
|
||||
<div contenteditable spellcheck>This is a misspellored word.</div>
|
||||
</body>
|
||||
</html>
|
|
@ -65,5 +65,6 @@ fails-if(Android) != spellcheck-hyphen-multiple-invalid.html spellcheck-hyphen-m
|
|||
!= selection_visibility_after_reframe-3.html selection_visibility_after_reframe-ref.html
|
||||
== 672709.html 672709-ref.html
|
||||
== 338427-1.html 338427-1-ref.html
|
||||
== 674212-spellcheck.html 674212-spellcheck-ref.html
|
||||
skip-if(Android) == 338427-2.html 338427-2-ref.html
|
||||
skip-if(Android) == 338427-3.html 338427-3-ref.html
|
||||
|
|
Загрузка…
Ссылка в новой задаче