W3C validation refuse "datatable" attribute

W3C validation refuse "datatable" attribute

TrellaTrella Posts: 1Questions: 1Answers: 0

Link to test case:
Debugger code (debug.datatables.net):

<

table datatable="dt1" [dtOptions]="dtOptions" [dtTrigger]="dtTrigger" class="border pb-2" id="dt1">

Error messages shown:
Error: Attribute datatable not allowed on element table at this point.

Description of problem:
Hi, i m using yours datatable plug-in inside an angular application
In order to pass next development step, we need to validate our html code on W3C as our client requested.

The problem is that W3C seems not accept the attribute "datatable" and i wasn t able to find a workaround for this.
Is there anyway to do this?

Many thanks

Mattia

Answers

  • allanallan Posts: 63,213Questions: 1Answers: 10,415 Site admin

    That’s not an attribute that DataTables uses. Are you using the Angular integration for DataTables perhaps (guessing from the dtOptions which also something that DataTables core does not use)? If so, you’d need to contact the author of that integration.

    Allan

This discussion has been closed.