| Summary: | DOM::Node::GetCursor() gives weird results in some cases | ||
|---|---|---|---|
| Product: | [Applications] konqueror | Reporter: | Nicolas Deschildre <ndeschildre> |
| Component: | khtml | Assignee: | Konqueror Bugs <konqueror-bugs-null> |
| Status: | RESOLVED INTENTIONAL | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | SVN | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Nicolas Deschildre
2003-03-24 20:01:11 UTC
I've just found out the cause of the second bug listed here: <tag>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). <tag> 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<tag> blah</tag>) but when it isn't needed, the offset 0 correspond to the end of the Node. getCursor will become invalid, and kafka use now the khtml caret mode, so let's close the bug. |