[SOLVED] CodeIgniter DOMPDF problem with thead HTML element

I need to print out some report to PDF format so the customer can print it out, save it or just review it. I used CodeIgniter for framework, then I choose DOMPDF library to fulfill my goal. But I got a little bit problem with this, when I try to print out some data on HTML table format, and the table header need to print repeatedly in every page. Here is the message that I got :
Message: Call to undefined method DOMText::getAttribute()

This problem occurred after I added a <thead> tag into my HTML report source code. Continue reading