I would like to read and write the placeholder property of input fields (assuming this property becomes part of HTML5, etc...)
This is now part of HTML 5…
Confirmed :-)
I'm working on this.
Created attachment 30215 [details] Path adding the DOM bindings.
Comment on attachment 30215 [details] Path adding the DOM bindings. Missing your email address in your second ChangeLog. Tab here: + virtual void setPlaceholder(const String&); which will make the commit fail (pre-commit hook which checks for Tabs in files). The test case could have been writen using our js testing framework instead, but it's fine as is. I can land this for you and make the tiny fixes when I do.
Created attachment 30218 [details] Style nits fixed
I changed your test to be a fast/js style test when landing. Committing to http://svn.webkit.org/repository/webkit/trunk ... M LayoutTests/ChangeLog A LayoutTests/fast/forms/placeholder-dom-property-expected.txt A LayoutTests/fast/forms/placeholder-dom-property.html A LayoutTests/fast/forms/resources/placeholder-dom-property.js M WebCore/ChangeLog M WebCore/dom/InputElement.cpp M WebCore/dom/InputElement.h M WebCore/html/HTMLInputElement.cpp M WebCore/html/HTMLInputElement.h M WebCore/html/HTMLInputElement.idl M WebCore/rendering/RenderTextControlSingleLine.cpp M WebCore/wml/WMLInputElement.h Committed r43605 If you'd like to see how I changed it, see: http://trac.webkit.org/changeset/43605
The changed test: http://trac.webkit.org/browser/trunk/LayoutTests/fast/forms/resources/placeholder-dom-property.js?rev=43605 You'll see that I removed the "can the HTML parser correctly parse an attribute value" part of the test, as it's covered by other cases.
Thanks Eric. Much cleaner. Next time I'll use the webkit js testing framework.