Bug 1712140 - Part 4: Add parseHTMLUnsafe and setHTMLUnsafe methods. r=dom-core,webidl,hsivonen

Differential Revision: https://phabricator.services.mozilla.com/D193676
This commit is contained in:
Adam Vandolder
2023-12-07 21:27:10 +00:00
parent b9bbd3c2cc
commit 9175984175
11 changed files with 63 additions and 0 deletions

View File

@@ -5045,4 +5045,8 @@ EditorBase* Element::GetEditorWithoutCreation() const {
return docShell ? docShell->GetHTMLEditorInternal() : nullptr;
}
void Element::SetHTMLUnsafe(const nsAString& aHTML) {
nsContentUtils::SetHTMLUnsafe(this, this, aHTML);
}
} // namespace mozilla::dom