<?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>304143</bug_id>
          
          <creation_ts>2025-12-14 08:14:36 -0800</creation_ts>
          <short_desc>Adding an empty span to an otherwise empty editable element, makes the element unselectable</short_desc>
          <delta_ts>2025-12-21 08:15:10 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>HTML Editing</component>
          <version>Safari 26</version>
          <rep_platform>Mac (Apple Silicon)</rep_platform>
          <op_sys>macOS 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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>michael</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>megan_gardner</cc>
    
    <cc>rniwa</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2165760</commentid>
    <comment_count>0</comment_count>
    <who name="">michael</who>
    <bug_when>2025-12-14 08:14:36 -0800</bug_when>
    <thetext>CONTEXT: As an editor developer I need a way to position popovers relative to a collapsed cursor. That&apos;s why I&apos;m rendering an additional span at the cursor position with an anchor-name, so I can use CSS anchor positioning to position a popover/prompt (e.g. for adding a new link).

BUG: With the extra span in place, in Safari the field(s) are no longer selectable.
In Chrome and Firefox it works just fine.

See Repro: https://w3c.github.io/editing/repros/516.html

Please read the original issue/discussion for context: https://github.com/w3c/editing/issues/516

W3C Editing TF Call 2025-12-11:

&gt; 08:24 johanneswilm: Michael will upload a video. we&apos;ll keep the Agenda+ and see if we have an idea for a cleaner solution
&gt; 08:24 Michael: ideally — would want to anchor to the selection
&gt; 08:24 (similar to how you want to anchor to a DOM node)
&gt; 08:25 johanneswilm: might take a while to develop exactly what CSS anchor positioning relative to selection would look like. seems interesting to pursue
&gt; 08:25 johanneswilm: let&apos;s see if opacity: 0 is a viable workaround</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2167668</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-12-21 08:15:10 -0800</bug_when>
    <thetext>&lt;rdar://problem/166975434&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>