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

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>56339</bug_id>
          
          <creation_ts>2003-03-24 20:01:11 +0000</creation_ts>
          <short_desc>DOM::Node::GetCursor() gives weird results in some cases</short_desc>
          <delta_ts>2003-09-14 20:26:18 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>konqueror</product>
          <component>khtml</component>
          <version>SVN</version>
          <rep_platform>Compiled Sources</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Nicolas Deschildre">ndeschildre</reporter>
          <assigned_to name="Konqueror Bugs">konqueror-bugs-null</assigned_to>
          
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>21</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>124896</commentid>
    <comment_count>0</comment_count>
    <who name="Nicolas Deschildre">ndeschildre</who>
    <bug_when>2003-03-24 20:01:11 +0000</bug_when>
    <thetext>Version:            (using KDE 3.1.9)
Compiler:          gcc version 3.2 (Mandrake Linux 9.0 3.2-1mdk)
OS:          Linux (i686) release 2.4.19-16mdk

I&apos;m using KDE CVS 20030316.
The function DOM::Node::getCursor() gives some weird results in two specific case : 
- the cursor position at  offset x just before a whitespace and at offset x+1 are always almost the same or totally the same.
- the cursor position at offset x just at the beginning of a line (wih or without text before) sometimes give the position of the cursor of the end of the line.
This could easily be reproduced by taking any HTML page with a quite long text taking more than one line, and by compiling quanta with kafkapart support ( --with-kafkapart ont the configure script ) and using the WYSIWYG editor.
Good luck</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>132954</commentid>
    <comment_count>1</comment_count>
    <who name="Nicolas Deschildre">ndeschildre</who>
    <bug_when>2003-05-10 20:12:13 +0000</bug_when>
    <thetext>I&apos;ve just found out the cause of the second bug listed here: 
&lt;tag&gt;text blah blah : in this case, the cursor position (given by DOM::Node::getCursor(), i 
have forgot to mention) given at the offset 0 is OK (it gives the position before the first 
letter). 
&lt;tag&gt; text blah blah : whenever whitespaces (including end of line, and tab) are inserted 
between the tag and the begin of the text, offset 1 now correspond to the position 
before the first letter and offset 0 correspond to the position at the end of the string. I 
believe the offset 0 normally correspond to the beginning of the whitespace added 
before the first letter when this whitespace is needed (e.g. blah&lt;tag&gt; blah&lt;/tag&gt;) but 
when it isn&apos;t needed, the offset 0 correspond to the end of the Node. </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>158322</commentid>
    <comment_count>2</comment_count>
    <who name="Nicolas Deschildre">ndeschildre</who>
    <bug_when>2003-09-14 20:26:18 +0000</bug_when>
    <thetext>getCursor will become invalid, and kafka use now the khtml caret mode, so let&apos;s close 
the bug. </thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>