Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Directive produces duplicate ID in DOM - Invalid HTML #53

Open
massimocode opened this issue Sep 23, 2016 · 0 comments
Open

Directive produces duplicate ID in DOM - Invalid HTML #53

massimocode opened this issue Sep 23, 2016 · 0 comments

Comments

@massimocode
Copy link

Please see the following:
https://code.angularjs.org/1.4.8/docs/api/ng/service/$compile

It says:

The replacement process migrates all of the attributes / classes from the old element to the new one. See the Directives Guide for an example.

Angular applies ID to the outermost span whilst the code explicitly applies ID manually to the hidden input checkbox. That results in duplicate unnecessary IDs which is invalid HTML.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant