Allan, 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 ?
Regards, Dawit A. On Thu, Oct 25, 2012 at 8:48 AM, Allan Sandfeld Jensen <[email protected]>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 > [email protected] > http://lists.webkit.org/mailman/listinfo/webkit-qt > >
_______________________________________________ webkit-qt mailing list [email protected] http://lists.webkit.org/mailman/listinfo/webkit-qt
