From kde-commits Thu Mar 15 19:56:56 2007 From: Maks Orlovich Date: Thu, 15 Mar 2007 19:56:56 +0000 To: kde-commits Subject: branches/KDE/3.5/kdelibs/khtml/dom Message-Id: <1173988616.686039.5247.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=117398861625912 SVN commit 642906 by orlovich: This seems to be somewhat often asked-for, and we support it internally, so bind it in the C++ API as well. M +6 -0 html_inline.cpp M +9 -1 html_inline.h --- branches/KDE/3.5/kdelibs/khtml/dom/html_inline.cpp #642905:642906 @@ -207,6 +207,12 @@ impl->getDocument()->setFocusNode(static_cast(impl)); } +void HTMLAnchorElement::click( ) +{ + if(impl) ((HTMLAnchorElement *)impl)->click(); +} + + // -------------------------------------------------------------------------- HTMLBRElement::HTMLBRElement() : HTMLElement() --- branches/KDE/3.5/kdelibs/khtml/dom/html_inline.h #642905:642906 @@ -21,7 +21,7 @@ * This file includes excerpts from the Document Object Model (DOM) * Level 1 Specification (Recommendation) * http://www.w3.org/TR/REC-DOM-Level-1/ - * Copyright © World Wide Web Consortium , (Massachusetts Institute of + * Copyright World Wide Web Consortium , (Massachusetts Institute of * Technology , Institut National de Recherche en Informatique et en * Automatique , Keio University ). All Rights Reserved. * @@ -236,6 +236,14 @@ * */ void focus ( ); + + /** + * Simulate a mouse-click. + * NOTE: this method is not part of the DOM + * @since 3.5.7 + */ + void click ( ); + }; // --------------------------------------------------------------------------