[Webkit-unassigned] [Bug 32865] [Qt] QWebElement::attribute always returns empty result for input's values

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed May 25 18:15:25 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=32865


Simon Hausmann <hausmann at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hausmann at webkit.org




--- Comment #46 from Simon Hausmann <hausmann at webkit.org>  2011-05-25 18:15:25 PST ---
(In reply to comment #11)
> I would actually change ::attribute() and ::setAttribute() to work on the input value and not the original value.
> 
> Doing otherwise would give unexpected result from what one would expect. See #53319 for example.

Ok, so we have to distinguish between HTML attributes and DOM property attributes ( http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-642250288 )

The current implementation of setAttribute() and attribute() corresponds to HTML attributes, and the namespace "overloads" of these functions stress this. So the current behaviour is very well defined and I don't think we can change it without breaking the *NS() overloads or introducing inconsistencies.

Consequently I think what we need here are functions to change the DOM property attributes. 

The most logical way I think to implement this would be to add this when we change to V8 and introduce QtScript as dependency in the API. Then we can have property setters/getters that correspond to properties in JavaScript, which are a 1:1 mapping to DOM property attributes.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list