Bug 61983

Summary: [Meta] Elements with shadow DOM should produce viable clones
Product: WebKit Reporter: Dominic Cooney <dominicc>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: annevk, dglazkov, eric.carlson, morrita, rolandsteiner, tkent
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 61909, 61984, 61985, 61986, 61987, 61988, 61997, 62001    
Bug Blocks:    

Description Dominic Cooney 2011-06-02 19:49:12 PDT
Cloning an element with shadow DOM can produce broken clones when elements in the shadow are implemented with derived C++ types. That is because these elements are cloned based on their tag names, not their actual C++ types. This is a tracking bug for fixing elements that fall into this trap.
Comment 1 Dominic Cooney 2011-06-08 19:23:04 PDT
We need to go through the dependent bugs, including closed ones, and:

1. Where there's a landed patch that overrides cloneElementWithoutAttributesAndChildren, determine if that is needed since the rollout in r88137. If not, we should remove the override. Don't revert the whole patch, though, since they contain useful tests.

Sometimes the landed regression tests are just for crash/element doesn't appear type regressions. They don't verify the functionality of cloned elements. We need to add verify that cloned elements are functional too.

2. Where there's no landed patch on a bug we should write a regression test that covers cloning and the functionality of cloned elements. These may expose functionality bugs, which we should file and fix. Close the bug when the test is landed and happy on the bots.
Comment 2 Anne van Kesteren 2023-12-11 06:28:46 PST
All the dependent bugs were resolved, most of them as FIXED. Marking this as FIXED too therefore.