<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>307920</bug_id>
          
          <creation_ts>2026-02-14 15:35:38 -0800</creation_ts>
          <short_desc>Incorrect customElementRegistry when using importNode to create elements</short_desc>
          <delta_ts>2026-03-10 22:49:00 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>Safari Technology Preview</version>
          <rep_platform>Mac (Apple Silicon)</rep_platform>
          <op_sys>iOS 26</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>154907</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Steve Orvell">steveorvell</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>mike</cc>
    
    <cc>rniwa</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2181797</commentid>
    <comment_count>0</comment_count>
    <who name="Steve Orvell">steveorvell</who>
    <bug_when>2026-02-14 15:35:38 -0800</bug_when>
    <thetext>When `document.importNode` is used to create elements that have a null registry, the resulting elements have an incorrect registry when importNode does not specify a registry. This should create elements with `customElementRegistry` set to the document default registry (e.g. window.customElements), but instead it is set to `undefined`, which incorrect and an invalid value.

See reproduction (asserts in console): https://codepen.io/Steve-Orvell/pen/MYeRmQM?editors=0010</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2183806</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-02-21 15:36:11 -0800</bug_when>
    <thetext>&lt;rdar://problem/170893131&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>