You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Should <head><template> set frameset-ok flag to "not ok"? #3178
AFAICT from the spec, the <template> start tag in "in head" sets frameset-ok to "not ok", then <p> in "after head" will insert a body element and switch to "in body" and reprocess the <p>, then the <frameset> in "in body" should be ignored because frameset-ok is "not ok".
Right?
Gecko/Chromium/WebKit/Edge end up with a frameset element in the DOM for the above, so maybe template-in-head shouldn't flip the flag.
With such a change if we encounter a<frameset> in a <template> it will implicitly close the <template> and detach all nodes from the document up to the <html> element which doesn't feels right. It will be surprising and even concerning from the security perspective that <template> content can modify ambient AST in such a manner.
BTW, how we determine which elements modify frameset-ok flag? From quick search in W3C mail archive it seems like it was just back-ported from IE.
Activity
inikulin commentedon Oct 31, 2017
With such a change if we encounter a
<frameset>in a<template>it will implicitly close the<template>and detach all nodes from the document up to the<html>element which doesn't feels right. It will be surprising and even concerning from the security perspective that<template>content can modify ambient AST in such a manner.BTW, how we determine which elements modify
frameset-okflag? From quick search in W3C mail archive it seems like it was just back-ported from IE.zcorpan commentedon Oct 31, 2017
Right, frameset in template needs to be ignored.
http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=5471
How do browsers do this? Do they reset the flag for
</template>"in head"? Or use more insertion modes instead of a flag?IIRC,
frameset-okwas indeed modeled after mostly IE's behavior.Add parser tests for template and the frameset-ok flag
Reset frameset-ok when the body element is inserted implicitly
Bug 2070303 [wpt PR 62485] - Add parser tests for template and the fr…
Bug 2070303 [wpt PR 62485] - Add parser tests for template and the fr…