[webkit-qt] QtWebKit QWebForm API extension

Allan Sandfeld Jensen kde at carewolf.com
Mon Nov 12 11:07:07 PST 2012

On Saturday 03 November 2012, Lindsay Mathieson wrote:
> Dawit, please excuse me if I'm missing something obvious, but is there any
> reason why we can't walk the DOM using QWebElement to find and fill in the
> INPUT elements?
If the input HTML was mal-formed the result can be transformed in a way where 
it is no longer possible to establish which elements belongs to which form, 
because it was only possible in the invalid HTML, and with the HTML put on a 
valid tree-structure this information can be lost. This is why FormElements 
and FormControlElements have special relations to tell how they have been 
matched during parsing (form.elements and input.form).

Still you can catch most cases with code such as yours.


More information about the webkit-qt mailing list