DOMString API (was: kdelibs/khtml)
Harri Porten
porten at froglogic.com
Tue Jan 18 11:05:40 CET 2005
On Tue, 18 Jan 2005, Stephan Binner wrote:
> - if (mev.url.string().startsWith("mailto:"))
> + if (mev.url.string().startsWith("mailto:") && mev.url.string().find('@')>0)
> mailtoCursor = true;
Just a general comment regarding khtml coding: DOMString has many useful
functions as well - one could even add more for performance critical
functions. In above case one could avoid calling string() by using
DOMString::find() for example.
Harri.
More information about the Khtml-devel
mailing list