[webkit-qt] QtWebKit QWebForm API extension

Dawit A adawit at kde.org
Thu Oct 25 15:08:59 PDT 2012


Very nice and if I read the code correctly this should resolve the problem
listed in http://webkit.org/b/63603. However, it still does not seem to
deal with the issue of form completion. The ability to provide a list of
completion items when filling out forms is the last remaining issues that I
personally have with forms in QtWebKit. But perhaps that is out of the
scope of this particular solution ?

Dawit A.

On Thu, Oct 25, 2012 at 8:48 AM, Allan Sandfeld Jensen <kde at carewolf.com>wrote:

> Hello everybody
> I took a look at how some of the other platforms solved similar problems
> with
> form-elements, and chromium turned out to have two specialized WebElement
> classes called WebFormElement and WebFormControlElement. This seemed like a
> viable solution so I have implemented a similar API for QWebElement, and
> attached the result below.
> The API is a bit special though, because it avoids virtual methods and
> adding
> data to QWebElement. So the way to use the extra method is create a new
> QFormElement based on the QWebElement.
> if (element.isFormElement()) {
>   QWebFormElement formElemnt(element);
> }
> This makes it possible to make this extension without changing neither API
> nor
> ABI of the existing classes.
> Any comments?
> Best regards
> `Allan
> _______________________________________________
> webkit-qt mailing list
> webkit-qt at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo/webkit-qt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-qt/attachments/20121025/70161731/attachment.html>

More information about the webkit-qt mailing list