---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/39242528-layouttemplate-not-working-with-table?utm_campaign=plugin&utm_content=tracker%2F310131&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F310131&utm_medium=issues&utm_source=github).
currently it is impossible, i think :(
because jquery create a different objects structure from 'table' tag.
compare its on browser console:
$('<ul><entries></entries></ul>') and $('<table><entries></entries></table>')
second object has two array members, moreover its .outerHTML not hold a <entries></entries>!
its made as first member of array.
but you can make output rss entries in table by another way ;)
add in your JSFiddle example next code -
html:
<h2>Rss entries in table</h2>
<table id="rss2table"></table>
@myrises , It is interesting that you think tables are not possible for the time being (I have just tried, myself, with no success) but one of the examples in the readme goes like this:
Hi,
When I do a
layoutTemplate: '<table>{entries}</table>'
it never adds the start nor the end of the table tag, it only produces theI tried your examples in JSFiddle and I get the same results, so there is no interference from any other lib I am using in my project.
JSFIddle here; https://jsfiddle.net/AFHfn/2551/
currently it is impossible, i think :( because jquery create a different objects structure from 'table' tag. compare its on browser console:
$('<ul><entries></entries></ul>')
and$('<table><entries></entries></table>')
second object has two array members, moreover its .outerHTML not hold a<entries></entries>
! its made as first member of array.but you can make output rss entries in table by another way ;) add in your JSFiddle example next code - html:
javascript:
I will try that, thanks for the reply
@myrises , It is interesting that you think tables are not possible for the time being (I have just tried, myself, with no success) but one of the examples in the readme goes like this:
$('#foo').rss(url, { layoutTemplate: "<table><tr><th>Title</th></tr>{entries}</table>", entryTemplate: "<tr><td>{title}</td></tr>" })
I now wonder if it should/did work, but does not anymore.