Attribute normalization broken #519
Description
In AngularJS, attributes are normalized in such a way that the x-
and data-
prefixes are ignored, allowing authors to write valid HTML documents, without breaking the applications.
I was just testing a quick demo app (based on the angular.dart.tutorial), and to my surprise, the ng-model
attribute works, while the data-ng-model
attribute does not. (This is using the essentially the same pubspec and dart code from chapter 1 of the tutorial).
Curiously, data-ng-app
works as expected, so maybe ngBootstrap() is clever about this.
...
TIL angular.dart is not normalizing attributes at all, and doing so would mean changing the way the NodeAttrs
class works, hmm.
Down the line I think this would be a worthwhile thing to do, but changing this now would mean changing a lot of stuff and I'm not sure I'm acquainted with dart enough to do that.