Issue 3104: Form\Element "x-..." attributes#5424
Conversation
Issue 3104: Form\Element "x-..." attributes
|
So far we've never accepted any PRs that would make it possible to render invalid HTML. Should we really start doing that now? We've already said no to the ng- prefix (sure, data-ng works aswell so it doesn't mater). ping @weierophinney |
|
@grizzm0 The problem is that different JS libraries have standardized on different prefixes. I honestly would like to add |
|
@weierophinney Well, ng-* and other PRs were declined in the past as they would be generate invalid HTML. In the AngularJS case it wasn't a problem as they internally translate all data-ng-* to ng-*. The x- prefix is for experimental attributes. Imho we shouldn't promote the use of non-standard or experimental attributes. If a developer would like to use any of them they should extend the base class to allow the rendering of invalid HTML if you ask me. |
|
@grizzm0 i think we definetly do The only thing what came up in my mind is, that we could make an option for "strict standard" rendering or render just every attribute? |
Treat
x-attributes likedata-attributes#3104