| Index: Source/core/html/HTMLElement.cpp
|
| diff --git a/Source/core/html/HTMLElement.cpp b/Source/core/html/HTMLElement.cpp
|
| index 79c7fa1955ea9e3cc27646c6989a28a0f7526df3..6bf6dd61e0f29ccb5193e0071441ec74bf6ef203 100644
|
| --- a/Source/core/html/HTMLElement.cpp
|
| +++ b/Source/core/html/HTMLElement.cpp
|
| @@ -340,12 +340,12 @@ PassRefPtr<DocumentFragment> HTMLElement::textToFragment(const String& text, Exc
|
|
|
| fragment->appendChild(Text::create(document(), text.substring(start, i - start)), exceptionState);
|
| if (exceptionState.hadException())
|
| - return 0;
|
| + return nullptr;
|
|
|
| if (c == '\r' || c == '\n') {
|
| fragment->appendChild(HTMLBRElement::create(document()), exceptionState);
|
| if (exceptionState.hadException())
|
| - return 0;
|
| + return nullptr;
|
| // Make sure \r\n doesn't result in two line breaks.
|
| if (c == '\r' && i + 1 < length && text[i + 1] == '\n')
|
| i++;
|
|
|