Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /mimesniff/sniffing/html.window.html - WPT Dashboard Interop Dashboard
["atom", "rss"].forEach(item => {
async_test(t => {
const popup = window.open(`support/${item}.html`);
t.add_cleanup(() => popup.close());
popup.onload = t.step_func_done(() => {
assert_equals(popup.document.contentType, "text/html");
assert_equals(popup.document.documentElement.localName, "html");
});
}, `HTML is not sniffed for a "feed": ${item}`);
});