<?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>14140</bug_id>
          
          <creation_ts>2011-09-13 13:29:27 +0000</creation_ts>
          <short_desc>Use CaretPosition for range boundary points?</short_desc>
          <delta_ts>2012-05-15 10:49:13 +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>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Anne">annevk</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>ayg</cc>
    
    <cc>mike</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>56746</commentid>
    <comment_count>0</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2011-09-13 13:29:27 +0000</bug_when>
    <thetext>Should range boundary points have an object representation in the form of http://www.w3.org/TR/cssom-view/#caretposition and should that interface therefore carry a slightly different name?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56760</commentid>
    <comment_count>1</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-09-13 20:38:27 +0000</bug_when>
    <thetext>The semantics of CaretPosition are slightly but significantly different.  For &lt;input&gt; or &lt;textarea&gt; or such, the offset of a CaretPosition (at least as returned by caretPositionFromPoint()) is the offset into the element&apos;s value, not its children.

An object representation of a boundary point would have been great to have, because maybe it would have averted insanity like the first argument of Range.compareBoundaryPoints.  But I think it&apos;s too late now to usefully add such an interface.  What would we do with it?  There&apos;s too much redundancy in Range as it stands.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67719</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2012-05-15 10:49:13 +0000</bug_when>
    <thetext>Nobody seems to care much for this.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>