<?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>17491</bug_id>
          
          <creation_ts>2008-02-22 12:40:32 -0800</creation_ts>
          <short_desc>ER: Implement XPointer Support</short_desc>
          <delta_ts>2025-10-01 03:51:06 -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>XML</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>http://www.w3.org/TR/xptr-framework/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P4</priority>
          <bug_severity>Enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jeff Schiller">jeffschiller</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>annevk</cc>
    
    <cc>ap</cc>
    
    <cc>ie2kl43y</cc>
    
    <cc>kennyluck</cc>
    
    <cc>mike</cc>
    
    <cc>waters.boyd</cc>
    
    <cc>webkit</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>71511</commentid>
    <comment_count>0</comment_count>
    <who name="Jeff Schiller">jeffschiller</who>
    <bug_when>2008-02-22 12:40:32 -0800</bug_when>
    <thetext>I would love to be able to use XPointer in my URLs.  Ideally it would also be made to work in text/html documents too.

Please see http://www.w3.org/TR/xptr-framework/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72484</commentid>
    <comment_count>1</comment_count>
    <who name="Robert Blaut">webkit</who>
    <bug_when>2008-03-02 03:40:16 -0800</bug_when>
    <thetext>Confirmed as an enhancement request.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123812</commentid>
    <comment_count>2</comment_count>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2009-06-01 01:41:38 -0700</bug_when>
    <thetext>Chromium team was recently asked for this feature in the form of enabling scrolling cross-domain iframed content into view.

See the whatwg thread starting here: http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-April/019145.html

My summary of that thread: Gecko added support for XPointer on XML documents in 2003 and removed it due to lack of adoption from web developers. It&apos;s unclear why web developers didn&apos;t use XPointer in Firefox, but it&apos;s at least partially because it was never implemented for HTML/XHTML pages. XPointer is XPath based, but it&apos;s conceivable that once we have XPath support, we could reasonably add other schemes like &quot;css&quot; if we wanted selector-based matching.

There was some concern that this somehow increases the ability to do clickjacking, but I really don&apos;t buy the argument that this makes clickjacking attacks more effective.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>269094</commentid>
    <comment_count>3</comment_count>
    <who name="Boyd Waters">waters.boyd</who>
    <bug_when>2010-08-25 01:43:31 -0700</bug_when>
    <thetext>Here is a simple use-case that I wanted to use this evening: linking to the 24th paragraph tag of the 23rd blockquote tag of an HTML document on the Web:

http://garote.bdmonkeys.net/commandline/index.html#xpointer(/blockquote[23]/p[24])

I wasn&apos;t interested in using this from JavaScript, I was quoting a particular passage of an essay and wanted to link to it. Since the author of the original HTML did not include ID attributes on the p tags, I don&apos;t have any way to link to the passage with traditional the HTML URL fragment identifier. I wish I could add some simple XPath/XPointer to URLs on (well-formed) HTML documents.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1958396</commentid>
    <comment_count>4</comment_count>
    <who name="Anne van Kesteren">annevk</who>
    <bug_when>2023-05-27 06:05:57 -0700</bug_when>
    <thetext>WebKit has an implementation of https://wicg.github.io/scroll-to-text-fragment/ for this purpose.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2147486</commentid>
    <comment_count>5</comment_count>
    <who name="Mr. Beedell, Roke Julian Lockhart (RJLB)">ie2kl43y</who>
    <bug_when>2025-10-01 03:51:06 -0700</bug_when>
    <thetext>(In reply to Anne van Kesteren from comment #4)

&gt; WebKit has an implementation of
&gt; https://wicg.github.io/scroll-to-text-fragment/ for this purpose.

That&apos;s not equivalent, as https://bugs.webkit.org/show_bug.cgi?id=100841#c3 well explains. XPaths are usable where no text exists.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>