Skip to content

createContextualFragment: implementations preload images, spec doesn't. #12010

@noamr

Description

@noamr

What is the issue with the HTML Standard?

The following line has a different behaviour in the spec vs. implementation:

new Range().createContextualFragment('<img src="something.png">');

Based on the current spec, something.png should not be fetched, because the image is created in a separate document.
However, both Gecko, WebKit and chromium don't implement the inert document thing, making it so that there is a fetch call to something.png.

Should we:
a. Update the spec to reflect reality
b. Update reality to reflect the spec
c. Do (a) first and (b) after

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions