Merge pull request #18485 from eileenmcnaughton/ref2
[civicrm-core.git] / ext / afform / auditor / backlog.md
1 # Afform Auditor Backlog
2
3 The general design of validation mechanism is being discussed in https://github.com/totten/afform/issues/20
4
5 For the moment, it's good to keep some notes on specific issues for the
6 validator to catch. Loosely/informally:
7
8 * HTML partials should be well-formed/parseable XML
9 * Warnings about any unrecognized tags/attributes/classes.
10 * `<af-form>`, `<af-entity>`, `<af-fieldset>`, `<af-field>` should have suitable relationships.
11 * `<af-entity>` should reference legit entities.
12 * `<af-field>` should reference legit fields.
13 * Future consideration: how to validate when it's part of a subform?
14 * `<af-fieldset>` should reference a declared model.
15 * `<af-field defn="...">` should contain an object.
16 * `<a>` should have `href` or `ng-click` or `af-api4-action`
17 * Accept a restricted subset of HTML (e.g. `p h1 h2 h3` but not `script` or `[onclick]`)
18 * Accept a restricted subset of BootstrapCSS
19 * Accept a restricted subset of Angular HTML
20 * Accept directives created via Afform