зеркало из https://github.com/mozilla/gecko-dev.git
bug 293162: Textarea's innerHTML shouldn't treat the HTML as text. r=peterv sr=jst a=shaver
This commit is contained in:
Родитель
4cb41ef640
Коммит
4ec259ce0c
|
@ -129,9 +129,6 @@ public:
|
|||
nsEventStatus* aEventStatus);
|
||||
virtual void SetFocus(nsPresContext* aPresContext);
|
||||
|
||||
virtual nsresult GetInnerHTML(nsAString& aInnerHTML);
|
||||
virtual nsresult SetInnerHTML(const nsAString& aInnerHTML);
|
||||
|
||||
virtual void DoneAddingChildren();
|
||||
virtual PRBool IsDoneAddingChildren();
|
||||
|
||||
|
@ -630,26 +627,6 @@ nsHTMLTextAreaElement::IsDoneAddingChildren()
|
|||
return mDoneAddingChildren;
|
||||
}
|
||||
|
||||
nsresult
|
||||
nsHTMLTextAreaElement::GetInnerHTML(nsAString& aInnerHTML)
|
||||
{
|
||||
GetContentsAsText(aInnerHTML);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult
|
||||
nsHTMLTextAreaElement::SetInnerHTML(const nsAString& aInnerHTML)
|
||||
{
|
||||
// XXXbz we can't use the normal SetInnerHTML because the parser
|
||||
// thinks we're a leaf, what with the whole CollectSkippedContent
|
||||
// mess.
|
||||
nsresult rv = ReplaceContentsWithText(aInnerHTML, PR_TRUE);
|
||||
if (NS_SUCCEEDED(rv) && !mValueChanged) {
|
||||
Reset();
|
||||
}
|
||||
return rv;
|
||||
}
|
||||
|
||||
// Controllers Methods
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
|
Загрузка…
Ссылка в новой задаче