Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
I
iTasks-SDK
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 74
    • Issues 74
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 7
    • Merge Requests 7
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • clean-and-itasks
  • iTasks-SDK
  • Issues
  • #188

Closed
Open
Opened Nov 06, 2017 by Camil Staps@cstaps🚀Owner

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>"
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: clean-and-itasks/iTasks-SDK#188