Forum OpenACS Development: How to change an HTML attribute value in an Xowiki includelet.

I am working on an Xowiki includelet that requires an html form element to have the attribute 'contenteditable=true'.

By default the <div> block has this attribute set to false.

I know that this attribute can be read using the get_attributes method.  Is there an equivalent method for setting attributes?  (I searched for a 'set_attribute' method but did not find one).

What is the correct way to change this attribute value from false to true, either within my includelet or within the render_richtext_as_div method of the ::xowiki::formfield::richtext object?

Regards
Richard

Ok found by trial and error!

::html::div contenteditable true

...does the job.