| Index: third_party/WebKit/LayoutTests/editing/assert_selection.js
|
| diff --git a/third_party/WebKit/LayoutTests/editing/assert_selection.js b/third_party/WebKit/LayoutTests/editing/assert_selection.js
|
| index 2f5764aa71b2cd3b5bf7be648f6a7ad5a09a54cf..9d26d1fcc2baa79ab62ea384a08088c5ff163fd9 100644
|
| --- a/third_party/WebKit/LayoutTests/editing/assert_selection.js
|
| +++ b/third_party/WebKit/LayoutTests/editing/assert_selection.js
|
| @@ -466,7 +466,10 @@ class Serializer {
|
| * @param {!HTMLDocument} document
|
| */
|
| serialize(document) {
|
| - this.serializeChildren(document.body);
|
| + if (document.body)
|
| + this.serializeChildren(document.body);
|
| + else
|
| + this.serializeInternal(document.documentElement);
|
| return this.strings_.join('');
|
| }
|
|
|
|
|