fix(compiler): detect and strip data- prefix#2719
fix(compiler): detect and strip data- prefix#2719pkozlowski-opensource wants to merge 1 commit intoangular:masterfrom
Conversation
There was a problem hiding this comment.
I'm unsure we want this for [], () and [()] ?
|
As far I understand the original issue, the pb is I don't think this PR solves the issue, does it ? Note: I don't think |
|
right, the original issue was for |
Shouldn't we special case this to bind to |
|
As @pkozlowski-opensource said:
I'm not sure if this fixes the valdiation problem. When validating this example with the W3C Validator: <!DOCTYPE html>
<html>
<head>
<title>demo</title>
</head>
<body>
<div data-[abc]="abc"></div>
</body>
</html>The HTML5 Spec for data-* attributes:
|
|
@SebastianM what you are saying is true, but:
@vicb I'm not sure we should have any special casing for |
|
Agree with @pkozlowski-opensource that we should only strip out |
|
Reviewed 2 of 2 files at r1. modules/angular2/test/render/dom/compiler/property_binding_parser_spec.ts, line 38 [r1] (raw file): Comments from the review on Reviewable.io |
|
I don't agree and I've removed the merge flag. I can't understand why
Needs more discussion before merging. |
|
Other than (outdated) validators, is there any other reason for stripping |
|
@vicb would you suggest removing it only before For me the system is simple - we strip But I don't mind really - I don't use HTML validators myself. Seems like it is a big deal for some people, tough. |
|
I suggested #2719 (comment) & #2719 (comment) Out of angular context IMO the only thing we need to support (hence special case) is |
I'm sorry but I disagree here... This is just my opinion of course, don't have more arguments so I suggest that you and @mhevery reach an agreement here and proceed accordingly. |
|
@pkozlowski-opensource let's have a chat to discuss about this |
|
We have clarified this with @pkozlowski-opensource, LGTM. There will be a new syntax |
|
@pkozlowski-opensource could you please create a separate issue for |
50f663d to
2d8a0c4
Compare
|
In my opinion the |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |

Fixes #2687