зеркало из https://github.com/mozilla/pjs.git
Fixing bug 140690. Patch by m.wargers@hccnet.nl. Making element.innerHTML not do newline conversion. r+sr=jst@mozilla.jstenback.com
This commit is contained in:
Родитель
9e2dcfe43d
Коммит
c7d1242e4c
|
@ -859,7 +859,8 @@ nsGenericHTMLElement::GetInnerHTML(nsAString& aInnerHTML)
|
|||
NS_ENSURE_TRUE(docEncoder, NS_ERROR_FAILURE);
|
||||
|
||||
docEncoder->Init(doc, NS_LITERAL_STRING("text/html"),
|
||||
nsIDocumentEncoder::OutputEncodeBasicEntities);
|
||||
nsIDocumentEncoder::OutputEncodeBasicEntities |
|
||||
nsIDocumentEncoder::OutputLFLineBreak);
|
||||
|
||||
nsCOMPtr<nsIDOMRange> range(new nsRange);
|
||||
NS_ENSURE_TRUE(range, NS_ERROR_OUT_OF_MEMORY);
|
||||
|
|
Загрузка…
Ссылка в новой задаче