I submitted a Firefox addon to the mozilla directory and it was rejected because of this:
item.innerHTML = '<table style="border-collapse: collapse; width: 100%;">'
+ '<tr><td style="line-height: inherit; padding: 0pt; width: 100%;">'
+ word.title
+ '</td></tr>'
+ '</table>';
I spoke to the editor and he tells me to “use a text node and then insert it using appendChild, textContent, etc“
That sounds like total gibberish to me, i have never used TextContent, appendChild etc and am a bit lost. Can you show me how to do the above and I’ll edit the other 13 instances i have of something like the above in my script?
Thanks!
You probably need to do something along these lines:
Note: There are caveats to creating a table this way as things work differently between browsers. I would suggest consulting MDN to be sure about FF.