Does the khtml rendering engine provide DOM2 Range support?

Leo Savernik l.savernik at aon.at
Thu May 27 15:06:42 BST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Donnerstag 27 Mai 2004 00:05 schrieb Ganesh Ramachandran:
> Hello,
>
> Does the khtml rendering engine provide DOM2 Range support?
Yes.

> http://www.w3.org/TR/2000/REC-DOM-Level-2-Traversal-Range-20001113/range
> s.html
> Is this something that is available now? Planned?
It should be feature complete (though I've never used it so far).

>
[...]
> Currently Safari provides no mechanism to determine what part of the DOM
> content is selected.  
WebCore supports it. I don't know whether there's a public interface.

[...]
> Does the khtml rendering engine provide DOM2 Range support needed to do
> this kind of component?
You can get the current selection as a DOM-Range in khtml by 
KHTMLPart::selection().

>
> There are 2 additional requirements that I need some guidance on:
> 1) Access to system clipboard for copy/paste functionality - Both IE and
> Mozilla provide mechanisms to access the system clipboard (HTML and text
> formats) in order to copy/paste text to/from another application.
> Without this support, the most we would be able to support on Safari
> would be copy/paste within the RTE window.
>
> 2)     Cursor emulation - Both IE and Mozilla provide mechanisms to
> display a blinking caret at the current cursor position.  Without this
> support, we would need to emulate this on Safari through an image or
> special character placed at the current cursor position.
>
As of khtml 3.2, you have the methods setCaretMode to display a caret, and 
setCaretPosition to place it (though there are restrictions on where you may 
actually place the caret).

Safari will provide its own means of placing a caret. However, you should 
contact Apple directly on current development efforts on Safari.

mfg
	Leo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQFAtfXzj5jssenUYTsRAhkmAJ9zqC/NqrXe2wu+1xYIShQgWTQQWgCfQVWX
qZ5kw39Q6l1YsGmg+dCsRB8=
=khT7
-----END PGP SIGNATURE-----




More information about the kfm-devel mailing list