<?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>299375</bug_id>
          
          <creation_ts>2025-09-23 09:14:47 -0700</creation_ts>
          <short_desc>Implement OpaqueRange</short_desc>
          <delta_ts>2026-03-20 11:11:03 -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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</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>stephanie.zhang</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>akeerthi</cc>
    
    <cc>annevk</cc>
    
    <cc>cdumez</cc>
    
    <cc>lily_spiniolas</cc>
    
    <cc>rniwa</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2145254</commentid>
    <comment_count>0</comment_count>
    <who name="">stephanie.zhang</who>
    <bug_when>2025-09-23 09:14:47 -0700</bug_when>
    <thetext>Implement FormControlRange -- a specialized, live AbstractRange subclass for &lt;input&gt;/&lt;textarea&gt; value space. It enables range-based operations in native controls while restricting standard Range mutations to preserve encapsulation. It integrates cleanly with existing selection/editing behavior and closes a long-standing gap.

Explainer: https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/FormControlRange/explainer.md

Ongoing WHATWG discussion thread: https://github.com/whatwg/html/issues/11478

WebKit Standards Link: https://github.com/WebKit/standards-positions/issues/541</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2147172</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-09-30 09:15:42 -0700</bug_when>
    <thetext>&lt;rdar://problem/161658720&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2147173</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-09-30 09:15:42 -0700</bug_when>
    <thetext>&lt;rdar://problem/161658759&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2192114</commentid>
    <comment_count>3</comment_count>
    <who name="">stephanie.zhang</who>
    <bug_when>2026-03-20 11:11:03 -0700</bug_when>
    <thetext>(In reply to stephanie.zhang from comment #0)

Updating this bug to reflect the current proposal.

The proposal has evolved from FormControlRange into OpaqueRange. OpaqueRange is a specialized, live AbstractRange subtype whose boundary points reference internal nodes within host-defined elements (for example, &lt;input&gt;/&lt;textarea&gt; today, with a path to custom elements in the future). It enables range-based operations over encapsulated content while avoiding exposure of internal DOM nodes.

The proposal also updates AbstractRange so startContainer/endContainer can be null, allowing OpaqueRange to return null for those getters while Range and StaticRange continue to return nodes.

Updated explainer:
https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/OpaqueRange/explainer.md

Current specification work:
https://github.com/whatwg/dom/pull/1404
https://github.com/whatwg/html/pull/11741

Relevant WHATWG discussion:
https://github.com/whatwg/html/issues/11478

WebKit standards position issue:
https://github.com/WebKit/standards-positions/issues/541</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>