зеркало из https://github.com/mozilla/gecko-dev.git
ba6d410ac6
Without this patch, the following test newly fails: ``` /editing/other/insertparagraph-with-white-space-style.tentative.html?white-space=nowrap&command=insertText FAIL <div contenteditable style="white-space:nowrap; display:inline">abc[]</div> (defaultparagraphseparator: div) - assert_equals: A <br> should be inserted at end expected "abc<br><br>" but got "abc<br>" FAIL <div contenteditable style="white-space:nowrap; display:inline">abc[]</div> (defaultparagraphseparator: p) - assert_equals: A <br> should be inserted at end expected "abc<br><br>" but got "abc<br>" ``` The reasons is, the inlined editing host is at end of the `<body>`, therefore, even though the editing host itself is `inline`, it needs a padding `<br>` to make it the new line visible. However, `HTMLEditUtils::GetElementOfImmediateBlockBoundary` does not return `<body>` because the editing host is followed by `<script>` which has a text node which is not white-spaces only. Therefore, `HTMLEditUtils::IsVisibleBRElement` considers the `<br>` element at end of the editing host is "visible". Differential Revision: https://phabricator.services.mozilla.com/D188599 |
||
---|---|---|
.. | ||
composer | ||
docs | ||
libeditor | ||
reftests | ||
spellchecker | ||
txmgr | ||
AsyncSpellCheckTestHelper.sys.mjs | ||
moz.build | ||
nsIDocumentStateListener.idl | ||
nsIEditActionListener.idl | ||
nsIEditor.idl | ||
nsIEditorMailSupport.idl | ||
nsIEditorSpellCheck.idl | ||
nsIHTMLAbsPosEditor.idl | ||
nsIHTMLEditor.idl | ||
nsIHTMLInlineTableEditor.idl | ||
nsIHTMLObjectResizer.idl | ||
nsITableEditor.idl |