Skip to content

insertAdjacentHTML() doesn't work in FF #3534

@Sammeeey

Description

@Sammeeey

This part of the code in Popups and window methods doesn't work in Firefox:

newWindow.onload = function() {
  let html = `<div style="font-size:30px">Welcome!</div>`;
  newWindow.document.body.insertAdjacentHTML('afterbegin', html);
};

It doesn't insert html to the document.
In Chrome it works for me.

If other can confirm, then what would be a good way to edit the tutorial?
Maybe just add another caution box with a respective hint (saying that it doesn't work in FF?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions