@@ -592,7 +592,8 @@ private function dataToHtml ($r, $options, $caption = '') {
592
592
$ id = ( 0 === $ this ->invocations )
593
593
? 'igsv- ' . $ this ->getDocId ( $ options ['key ' ] )
594
594
: "igsv- {$ this ->invocations }- " . $ this ->getDocId ( $ options ['key ' ] );
595
- $ html = '<table id=" ' . esc_attr ( $ id ) . '" ' ;
595
+ $ id = esc_attr ( $ id );
596
+ $ html = '<table id="$id" ' ;
596
597
// Prepend a space character onto the 'class' value, if one exists.
597
598
if ( ! empty ( $ options ['class ' ] ) ) {
598
599
$ options ['class ' ] = " {$ options ['class ' ]}" ;
@@ -613,7 +614,7 @@ private function dataToHtml ($r, $options, $caption = '') {
613
614
614
615
$ html .= "<thead> \n" ;
615
616
foreach ( $ thead as $ v ) {
616
- $ html .= "<tr class= \"row- $ ir " . $ this ->evenOrOdd ( $ ir ) . "\"> " ;
617
+ $ html .= "<tr id= \" $ id -row- $ ir \" class= \"row- $ ir " . $ this ->evenOrOdd ( $ ir ) . "\"> " ;
617
618
$ ir ++;
618
619
$ ic = 1 ; // reset column counting
619
620
foreach ( $ v as $ th ) {
@@ -628,7 +629,7 @@ private function dataToHtml ($r, $options, $caption = '') {
628
629
if ( $ tfoot ) {
629
630
$ html .= "<tfoot> \n" ;
630
631
foreach ( $ tfoot as $ v ) {
631
- $ html .= "<tr class= \"row- $ ir " . $ this ->evenOrOdd ( $ ir ) . "\"> " ;
632
+ $ html .= "<tr id= \" $ id -row- $ ir \" class= \"row- $ ir " . $ this ->evenOrOdd ( $ ir ) . "\"> " ;
632
633
$ ir ++;
633
634
$ ic = 1 ; // reset column counting
634
635
foreach ( $ v as $ td ) {
@@ -644,7 +645,7 @@ private function dataToHtml ($r, $options, $caption = '') {
644
645
645
646
$ html .= "<tbody> \n" ;
646
647
foreach ( $ tbody as $ v ) {
647
- $ html .= "<tr class= \"row- $ ir " . $ this ->evenOrOdd ( $ ir ) . "\"> " ;
648
+ $ html .= "<tr id= \" $ id -row- $ ir \" class= \"row- $ ir " . $ this ->evenOrOdd ( $ ir ) . "\"> " ;
648
649
$ ir ++;
649
650
$ ic = 1 ; // reset column counting
650
651
foreach ( $ v as $ td ) {
0 commit comments