Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Attribute normalization broken #519

Open
@caitp

Description

@caitp

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions