change tableWrapper div to section

change tableWrapper div to section

lord xeonlord xeon Posts: 2Questions: 0Answers: 0
edited February 2011 in General
In my CSS I'm styling my tables like so:
section table { blah, blah, blah }

However, I want the DataTables tables to match those tables, is there a way to progromatically change the wrapper div to a section?

On line 3400 of version 1.7.5 I manually changed:
[code]
oSettings.nTableWrapper = document.createElement( 'div );
[/code]
to:
[code]
oSettings.nTableWrapper = document.createElement( 'section' );
[/code]
I couldn't find anything in my look through of the code/site/options, so I was wondering if I overlooked something.

Replies

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    There is no option for this at the moment - a change of the source code like you have done is the way to do it - hooray for open source :-)

    DataTables is designed to use HTML4 at this time. Perhaps when HTML5 implementations are more wide spread (and the specification finalised) then I'll incorporate it into the core.

    Regards,
    Allan
  • lord xeonlord xeon Posts: 2Questions: 0Answers: 0
    ok, glad to see I didn't miss something.
This discussion has been closed.