mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:30:27 +00:00
backout bug 1134280 for fixing yandex search "Read more" link
This commit is contained in:
@@ -2070,8 +2070,8 @@ nsresult nsHTMLEditor::CreateDOMFragmentFromPaste(const nsAString &aInputString,
|
||||
// create fragment for pasted html
|
||||
nsIAtom* contextAtom;
|
||||
if (contextLeafAsContent) {
|
||||
contextAtom = contextLeafAsContent->NodeInfo()->NameAtom();
|
||||
if (contextLeafAsContent->IsHTMLElement(nsGkAtoms::html)) {
|
||||
contextAtom = contextLeafAsContent->Tag();
|
||||
if (contextAtom == nsGkAtoms::html) {
|
||||
contextAtom = nsGkAtoms::body;
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user