-
Notifications
You must be signed in to change notification settings - Fork 65
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
$repeat does not play nice with HTML elements #42
Comments
My instinct is we will need to do some refactoring to address this in full. We have very basic support for targeting DOM elements directly with behaviors, but there many are cases like this one that will result in an error. The workaround for the time being would either be to: (a) wrap the element you want to
|
For posterity it's worth noting that that example will only work with
|
^ |
A major downside of this approach is that Framework does not register events to HTML inserted by content or inner-html. It's only really useful for inserting static content. |
It is not possible to $repeat a component that has a HTML element as an ancestor.
Example tree:
Results in error:
Uncaught Error: ParentNode with UID
nulldoes not exist. Unable to process $if/$repeat
Similarly, it is not possible to
$repeat
a HTML element.Will result in this error:
Uncaught Error: No dependencies found for
div (null)`The text was updated successfully, but these errors were encountered: