diff options
Diffstat (limited to 'testing/web-platform/tests/navigation-api/navigate-event/navigate-form-get.html')
-rw-r--r-- | testing/web-platform/tests/navigation-api/navigate-event/navigate-form-get.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/testing/web-platform/tests/navigation-api/navigate-event/navigate-form-get.html b/testing/web-platform/tests/navigation-api/navigate-event/navigate-form-get.html index 7a71a1c305..59661a1caf 100644 --- a/testing/web-platform/tests/navigation-api/navigate-event/navigate-form-get.html +++ b/testing/web-platform/tests/navigation-api/navigate-event/navigate-form-get.html @@ -21,7 +21,8 @@ async_test(t => { // Because it's a GET, not a POST assert_equals(e.formData, null); - assert_equals(e.sourceElement, form); + // NavigateEvent sourceElement is still in development, so test whether it is available. + if ("sourceElement" in e) assert_equals(e.sourceElement, form); }); window.onload = t.step_func(() => form.submit()); }, "<form> submission with GET method fires navigate event but with formData null"); |