<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>10691</bug_id>
          
          <creation_ts>2010-09-22 22:47:59 +0000</creation_ts>
          <short_desc>[Selection] Specify extend method for Selection objects</short_desc>
          <delta_ts>2011-12-20 19:49:58 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>DOM</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>10798</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tim Down">timdown</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>annevk</cc>
    
    <cc>ayg</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>public-webapps</cc>
    
    <cc>www-dom</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>39189</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Down">timdown</who>
    <bug_when>2010-09-22 22:47:59 +0000</bug_when>
    <thetext>Recent versions of Mozilla, WebKit and Opera all include an extend() method of their Selection objects, implemented (as far as I can tell) identically. I suggest HTML5 should specify this method, for two reasons:

1. It is a de facto standard among the more standards-compliant browsers
2. Vitally, it provides a mechanism for programmatically creating a backwards (i.e. where the focus point comes before the anchor point within the document) selection, which otherwise can be created by the user by dragging &quot;backwards&quot; but not programmatically.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44312</commentid>
    <comment_count>1</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-01-13 00:04:56 +0000</bug_when>
    <thetext>I&apos;m doing this next.  Apparently it&apos;s more complicated than it looks, but we&apos;ll see.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44853</commentid>
    <comment_count>2</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-01-28 18:28:57 +0000</bug_when>
    <thetext>Spec: http://html5.org/specs/dom-range.html#dom-selection-extend
Tests: http://aryeh.name/spec/dom-range/test/selection-extend.html

This spec isn&apos;t currently in W3C space, but that&apos;s a detail, so I&apos;ll call it FIXED.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>