<?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>234716</bug_id>
          
          <creation_ts>2021-12-27 20:47:11 -0800</creation_ts>
          <short_desc>Draggable attribute on DOM node breaks On This Page highlighting</short_desc>
          <delta_ts>2023-05-23 18:23:30 -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 15</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 15</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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 name="Steve Dignam">steve</reporter>
          <assigned_to name="Patrick Griffis">pgriffis</assigned_to>
          <cc>megan_gardner</cc>
    
    <cc>thorton</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1827027</commentid>
    <comment_count>0</comment_count>
      <attachid>448031</attachid>
    <who name="Steve Dignam">steve</who>
    <bug_when>2021-12-27 20:47:11 -0800</bug_when>
    <thetext>Created attachment 448031
minimal reproducible example showing how draggable=true breaks the search feature

When adding the draggable=true attribute to a DOM node, the text of the node is no longer searchable using iOS Safari&apos;s On This Page feature.

On This Page will correctly count the results, but navigating between the results won&apos;t highlight any results nested inside a DOM node marked with draggable=true.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1827028</commentid>
    <comment_count>1</comment_count>
    <who name="Steve Dignam">steve</who>
    <bug_when>2021-12-27 20:50:45 -0800</bug_when>
    <thetext>Also On This Page has the option to navigate up or down the page, and navigating up finds the first element, but not the second, and navigating down finds neither element.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1827202</commentid>
    <comment_count>2</comment_count>
    <who name="Wenson Hsieh">wenson_hsieh</who>
    <bug_when>2021-12-29 14:43:18 -0800</bug_when>
    <thetext>This is likely due to how adding the `draggable` attribute additionally applies `-webkit-user-select: none;` as presentational CSS.

A workaround might be to apply `-webkit-user-select: text;` separately (e.g. as an inline style), which would override the presentational property.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1827860</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-01-03 20:48:22 -0800</bug_when>
    <thetext>&lt;rdar://problem/87076683&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1952479</commentid>
    <comment_count>4</comment_count>
    <who name="Patrick Griffis">pgriffis</who>
    <bug_when>2023-05-02 14:09:42 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/13374</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1957517</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-05-23 18:23:28 -0700</bug_when>
    <thetext>Committed 264448@main (1605f4df0c4b): &lt;https://commits.webkit.org/264448@main&gt;

Reviewed commits have been landed. Closing PR #13374 and removing active labels.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>448031</attachid>
            <date>2021-12-27 20:47:11 -0800</date>
            <delta_ts>2021-12-27 20:47:11 -0800</delta_ts>
            <desc>minimal reproducible example showing how draggable=true breaks the search feature</desc>
            <filename>example.html</filename>
            <type>text/html</type>
            <size>206</size>
            <attacher name="Steve Dignam">steve</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sIGxhbmc9ImVuIj4KICA8Ym9keT4KICAgIDxkaXY+CiAgICAg
IGZvbwogICAgPC9kaXY+CiAgICA8IS0tIGhpZGRlbiBmcm9tICJPbiBUaGlzIFBhZ2UiIGhpZ2hs
aWdodGluZyBpbiBpb3Mgc2FmYXJpIC0tPgogICAgPGRpdiBkcmFnZ2FibGU9InRydWUiPgogICAg
ICBmb28KICAgIDwvZGl2PgogIDwvYm9keT4KPC9odG1sPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>