diff --git a/toolkit/content/tests/browser/browser_label_textlink.js b/toolkit/content/tests/browser/browser_label_textlink.js index ba52410f507e..fdbee449a299 100644 --- a/toolkit/content/tests/browser/browser_label_textlink.js +++ b/toolkit/content/tests/browser/browser_label_textlink.js @@ -9,7 +9,7 @@ add_task(async function() { label.href = newTabURL; label.id = "textlink-test"; label.textContent = "click me"; - doc.documentElement.append(label); + doc.body.append(label); }); // Test that click will open tab in foreground.