here you can see the code from the auto-generated PyWebkit.cpp showing
that placeholder exists, and is a string.
you can see also from this:
{ (char*)"placeholder",
(getter)WebKit::_wrap_corehtmltextareaelement__get_placeholder,
(setter)WebKit::_wrap_corehtmltextareaelement__set_placeholder, 0, 0
},
that it is a property, which can be accessed and set / got as
"elem.placeholder" i.e. "elem.placeholder = foo".
you need to properly track down what the heck is going on.
e.g. are you trying to set the element to an integer? that will,
obviously, fail, because placeholder is not an integer type, it's a
string.
l.
static PyObject *
_wrap_corehtmltextareaelement__get_placeholder(PyObject *self, void *closure)
{
char *_ret;
WTF::String ret;
ret =
coreHTMLTextAreaElement((PyDOMObject*)(self))->getAttribute(WebCore::HTMLNames::placeholderAttr);
_ret = cpUTF8(ret);
PyObject *py_ret = PyString_FromString(_ret);
free(_ret);
return py_ret;
}
static int
_wrap_corehtmltextareaelement__set_placeholder(PyObject *self,
PyObject *args, void *closure)
{
char *placeholder;
if (!PyArg_Parse(args,"s:_wrap_corehtmltextareaelement__set_placeholder",
&placeholder))
return -1;
WTF::String cvt_placeholder = WTF::String::fromUTF8((const
char*)placeholder);
coreHTMLTextAreaElement((PyDOMObject*)(self))->setAttribute(WebCore::HTMLNames::placeholderAttr,
cvt_placeholder);
return 0;
}