w3c / w3c/DOM-Parsing

How should createContextualFragment interact with `<script>` inside `<template>`?

Open
#19 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
28
Forks
14
Avg merge
3h 10m
Merged PRs (30d)
1

Description

https://w3c.github.io/DOM-Parsing/#extensions-to-the-range-interface (why can't I link directly to the createContextualFragment method definition?) says in step 4:

Unmark all scripts in fragment node as "already started".

What does "in fragment node" mean? Does this mean descendants of the node or something else? Specifically, what happens if there is a <template> descendant which has a <script> inside its DocumentFragment? Will that <script> be unmarked or not?

// cc @annevk, @domenic

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the DOM-Parsing specification's Range Extensions section and the createContextualFragment method, then trace how template descendants and their DocumentFragments are defined. Done means reaching and recording an unambiguous resolution for whether the script is included by step 4.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
documentation, web-dev
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.