Bug 188544

Summary: Synchronously defined custom elements don't get foster-parented
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ahmad.saleem792, annevk, ap, bfulgham, cdumez, eoconnor, fred.wang, rniwa, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 154907    

Description Ryosuke Niwa 2018-08-14 00:08:57 PDT
Apparently, I unintentionally disabled foster parenting for synchronously defined custom elements.

On one hand, this doesn't match the spec. On the other hand, being able to define custom elements anywhere seems useful
especially given there doesn't seem to be any compact issues (given WebKit has been shipping this behavior for two years).
Comment 1 Ahmad Saleem 2022-08-09 13:42:43 PDT
rniwa@webkit.org - Safari is passing foster parenting test on WPT:

https://wpt.fyi/results/html/syntax/parsing/template/additions-to-foster-parenting?label=master&label=experimental&aligned&view=subtest&q=foster%20parent

Is this required or it is different issue and WPT does not have coverage for this?
Comment 2 Ryosuke Niwa 2022-08-09 23:59:26 PDT
This is still broken with respect to custom elements.
Comment 3 Radar WebKit Bug Importer 2022-08-10 10:54:55 PDT
<rdar://problem/98460010>