| Index: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/html/HtmlBuildParticipant.java
|
| ===================================================================
|
| --- editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/html/HtmlBuildParticipant.java (revision 16584)
|
| +++ editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/html/HtmlBuildParticipant.java (working copy)
|
| @@ -109,12 +109,17 @@
|
| if (!validAttributes.isEmpty()) {
|
| for (XmlAttribute attribute : node.getAttributes()) {
|
| String name = attribute.getName();
|
| -
|
| +
|
| // A common pattern with data-binding frameworks.
|
| if (name.startsWith("ng-")) {
|
| continue;
|
| }
|
|
|
| + // A data attribute.
|
| + if (name.startsWith("data-")) {
|
| + continue;
|
| + }
|
| +
|
| if (!validAttributes.contains(name)) {
|
| if (!HtmlKeywords.isValidEventAttribute(name)) {
|
| int charStart = attribute.getStartToken().getLocation();
|
|
|