<?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>100841</bug_id>
          
          <creation_ts>2012-10-31 04:24:35 -0700</creation_ts>
          <short_desc>Allow CSS selectors as fragment identifiers</short_desc>
          <delta_ts>2025-10-01 06:11:42 -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>CSS</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>http://simonstl.com/articles/cssFragID.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P3</priority>
          <bug_severity>Enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="John Mellor">johnme</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>annevk</cc>
    
    <cc>bfulgham</cc>
    
    <cc>eoconnor</cc>
    
    <cc>ie2kl43y</cc>
    
    <cc>kenneth</cc>
    
    <cc>koivisto</cc>
    
    <cc>mjs</cc>
    
    <cc>peter</cc>
    
    <cc>sam</cc>
    
    <cc>tony</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>755142</commentid>
    <comment_count>0</comment_count>
    <who name="John Mellor">johnme</who>
    <bug_when>2012-10-31 04:24:35 -0700</bug_when>
    <thetext>It would be nice to allow using CSS selectors as fragment identifiers, so that you can link to things which don&apos;t have an id or name attribute. For example:

http://example.com/lorem.html#css(.content:nth-child(2))

There&apos;s an unofficial draft spec: http://simonstl.com/articles/cssFragID.html
And a community group: http://www.w3.org/community/cssselfrags/

The main downside I can see is that such fragments may be brittle and break if the structure of the page is changed, but this is often still preferable to not being able to use a fragment at all.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>756009</commentid>
    <comment_count>1</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2012-11-01 02:35:00 -0700</bug_when>
    <thetext>It&apos;s an interesting idea. Are there any other browser engines planning to implement this? Are there any plans to move this work into a full Working Group?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1883222</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-07-13 11:39:12 -0700</bug_when>
    <thetext>&lt;rdar://problem/96964473&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2144815</commentid>
    <comment_count>3</comment_count>
    <who name="Mr. Beedell, Roke Julian Lockhart (RJLB)">ie2kl43y</who>
    <bug_when>2025-09-22 04:01:13 -0700</bug_when>
    <thetext>(In reply to Maciej Stachowiak from comment #1)

&gt; Are there any other browser engines planning to implement this? Are there any
&gt; plans to move this work into a full Working Group?

https://github.com/karanlyons/pinpoint/blob/4b2ec192c0400f26d7ff80ec3a652e467d5ee563/README.mkd#not-using-safari appears to be the closest available. I don&apos;t see any bugs for other browsers, and https://github.com/WICG/scroll-to-text-fragment/blob/10e6348b200f973232e713838a5a57db0bf483fb/README.md#using-css-selectors-as-fragment-identifiers:~:text=Simon%20St.%20Laurent%20and%20Eric,on%20it%20in%20this%20proposal explicitly corroborates this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2147506</commentid>
    <comment_count>4</comment_count>
    <who name="Anne van Kesteren">annevk</who>
    <bug_when>2025-10-01 06:11:42 -0700</bug_when>
    <thetext>We&apos;ll consider this once there&apos;s a standardized solution. No need to keep a bug around for this.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>