Web Platform Atlas
EN⚡RUUA⚡DE⚡FR⚡ES⚡PL⚡PT⚡ZH⚡JA⚡
Каталог / HTML / Loading a document for inline content that doesn't have a DOM

7.5.7 Loading a document for inline content that doesn't have a DOM

Статический предпросмотр (RU): для MDN, WPT, глоссария и BYOK-перевода откройте интерактивный Атлас.
⚡ Открыть главу в Атласе

7.5.7 Loading a document for inline content that doesn't have a DOM

When the user agent is to create a document to display a user agent page or PDF viewer inline, provided a navigable navigable, a navigation ID navigationId, a NavigationTimingType navTimingType, and a user navigation involvement userInvolvement, the user agent should:

Let origin be a new opaque origin.

Пусть coop будет новой политикой открытия.

Пусть coopEnforcementResult будет новым результатом применения политики открытия с

url

URL response

орджин

origin

политика открытия

coop

Let navigationParams be a new navigation params with

идентификатор

navigationId

навигатор

navigable

запрос

null

ответ

a new response

орджин

origin

контроллер выборки

null

зафиксировать предварительные подсказки

null

результат применения COOP

coopEnforcementResult

зарезервированная среда

null

контейнер политик

a new policy container

набор итоговыхфлагов изолированной среды

an empty set

политика передачи источника элемента iframe

the empty string

политика открытия

coop

тип тайминга навигации

navTimingType

базовый URL для about

null

участие пользователя

userInvolvement

Let document be the result of creating and initializing a Document object given "html", "text/html", and navigationParams.

Either associate document with a custom rendering that is not rendered using the normal Document rendering rules, or mutate document until it represents the content the user agent wants to render.

Act as if the user agent had stopped parsing document.

This is done to avoid leaking information to the parent page about whether a navigation has been blocked by CSP, or if the response was a network error. In the case where the container is an iframe element, stopping parsing causes the iframe load event steps to run.

Return document.

Because we ensure the resulting Document's origin is opaque, and the resulting Document cannot run script with access to the DOM, the existence and properties of this Document are not observable to web developer code. This means that most of the above values, e.g., the text/html type, do not matter. Similarly, most of the items in navigationParams don't have any observable effect, besides preventing the Document-creation algorithm from getting confused, and so are set to default values.