Bug 254334 - document.write of template producing multiple text nodes
Summary: document.write of template producing multiple text nodes
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Ryosuke Niwa
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-03-23 08:00 PDT by Sam Sneddon [:gsnedders]
Modified: 2023-05-08 17:53 PDT (History)
4 users (show)

See Also:


Attachments
Reduction (428 bytes, text/html)
2023-05-08 11:37 PDT, Ryosuke Niwa
no flags Details
Reduction (420 bytes, text/html)
2023-05-08 11:42 PDT, Ryosuke Niwa
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sam Sneddon [:gsnedders] 2023-03-23 08:00:01 PDT
c.f. http://wpt.live/html/syntax/parsing/html5lib_template.html?run_type=write_single

writing `<body><template>Hello</template>` character-by-character is producing five text nodes ("H", "e", "l", "l", "o"), contrary to the spec
Comment 1 Radar WebKit Bug Importer 2023-03-30 08:00:15 PDT
<rdar://problem/107419942>
Comment 2 Anne van Kesteren 2023-05-08 07:45:37 PDT
Minimal test: https://software.hixie.ch/utilities/js/live-dom-viewer/?saved=11633.
Comment 3 Ryosuke Niwa 2023-05-08 11:37:08 PDT
Created attachment 466283 [details]
Reduction
Comment 4 Ryosuke Niwa 2023-05-08 11:42:50 PDT
Created attachment 466284 [details]
Reduction
Comment 5 Ryosuke Niwa 2023-05-08 12:40:03 PDT
Pull request: https://github.com/WebKit/WebKit/pull/13593
Comment 6 EWS 2023-05-08 17:53:19 PDT
Committed 263841@main (830fc5996373): <https://commits.webkit.org/263841@main>

Reviewed commits have been landed. Closing PR #13593 and removing active labels.