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 ( ); + }; // --------------------------------------------------------------------------