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

activeViews with <col> fails without <colgroup> #47

Closed
jsgoupil opened this issue Dec 13, 2011 · 2 comments
Closed

activeViews with <col> fails without <colgroup> #47

jsgoupil opened this issue Dec 13, 2011 · 2 comments

Comments

@jsgoupil
Copy link

If creating a table template with <col> tags without <colgroup>, the browser will force to add a <colgroup> around <col>.

The active view comments get messed up causing a JavaScript error, not able to find the correct data for the template.


<table>
{{each columns tmpl=templateCol}}

</table>

templateCol is:
<col />

The output on the page is:
<!--tmpl() _0-->
<table>
<!--tmpl($data.columns) _1-->
<!--item-->
<colgroup>
<col>
<!--/item-->
<!--item-->
<col>
<!--/item-->
<!--/tmpl-->
</colgroup>
</table>
<!--/tmpl-->

@jsgoupil
Copy link
Author

same thing is happening when not adding

@BorisMoore
Copy link
Owner

This would be a JsViews issue. Closing here, and creating an issue: BorisMoore/jsviews#54, on JsViews pointing back to here.

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

2 participants