Documentation inconsistencies: textView does not escape HTML
The documentation of textView
says that 'html is automatically escaped'. However, viewInformation "textView" [ViewUsing id textView] "<strong>strong text</strong>"
shows 'strong text' rather than '<strong>strong text</strong>', which is what I would expect. The textField
and textArea
editors do work properly, because HTML is not rendered in input fields.
Also in the documentation of iTasks.UI.Editor.Controls, many functions have 'Supported attributes:' in their documentation without any attributes listed. Does this have any use?
There are more documentation inconsistencies. For example assign
in iTasks.Extensions.User has three @param
fields but only two parameters, and it's unclear to me how the first two @param
fields relate to the first parameter. It would be relatively easy to find functions where the number of @param
fields and the arity don't agree, but then you still miss functions of which the type has changed but not the arity. Perhaps it's possible to use the git history to find commits where a type changed but the documentation didn't, to find all inconsistencies.
MWE for the textView:
import iTasks
Start w = startEngine (allTasks [textv, textf, texta]) w
where
textv = viewInformation "textView" [ViewUsing id textView] "<strong>strong text</strong>"
textf = viewInformation "textField" [ViewUsing id textField] "<strong>strong text</strong>"
texta = viewInformation "textArea" [ViewUsing id textArea] "<strong>strong text</strong>"