A bit of a long overdue refactoring.
TagFactory is very helpful in creating HTML strings depending on the needs of the developer. Several shortcomings appeared after the initial implementation:
- Registration of new services is difficult. One has to extend the factory and register the new services or supply them on construction. The latter is not very intuitive. Also there are a few if/else statements in the
newInstance to handle dependencies that each component requires
- Too many input classes only setting a type.
Checkbox and Radio are problematic. They do not work as expected, making calls for them difficult
- Positional series are not supported. If developers want to reorganize their assets for instance in a particular way, there is no provision for this
- Escaping
Select
Scripts
Attributes - Forms
Resolves: #16416 #15957
A bit of a long overdue refactoring.
TagFactoryis very helpful in creating HTML strings depending on the needs of the developer. Several shortcomings appeared after the initial implementation:newInstanceto handle dependencies that each component requiresDoctypein all services that need itGenericclass that will remove replication and shrink the code base without losing functionalityCheckboxandRadioare problematic. They do not work as expected, making calls for them difficultAbstractSeriesSelectScriptsAttributes-FormsWire forms with thedeferred - new issueTagFactoryand thus remove duplicated code inAttributesResolves: #16416 #15957