File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
Ajax/semantic/html/content/table Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 1414 *
1515 */
1616class HtmlTableContent extends HtmlSemCollection {
17- protected $ _focusable =false ;
17+
18+ protected $ _focusable = false ;
1819
1920 protected $ _tdTagNames = [
2021 "thead " => "th " ,
@@ -70,7 +71,7 @@ protected function createItem($value) {
7071 $ count = $ this ->count ();
7172 $ tr = new HtmlTR ("" );
7273 $ tr ->setContainer ($ this , $ count );
73- if ($ this ->_focusable ) {
74+ if ($ this ->_focusable ) {
7475 $ tr ->setProperty ('tabindex ' , $ count );
7576 }
7677 $ tr ->setTdTagName ($ this ->_tdTagNames [$ this ->tagName ]);
@@ -256,8 +257,12 @@ private function colAlign($colIndex, $function) {
256257 $ count = $ this ->count ();
257258 for ($ i = 0 ; $ i < $ count ; $ i ++) {
258259 $ index = $ this ->content [$ i ]->getColPosition ($ colIndex );
259- if ($ index !== NULL )
260- $ this ->getCell ($ i , $ index )->$ function ();
260+ if ($ index !== NULL ) {
261+ $ cell = $ this ->getCell ($ i , $ index );
262+ if ($ cell != NULL ) {
263+ $ cell ->$ function ();
264+ }
265+ }
261266 }
262267 return $ this ;
263268 }
@@ -487,6 +492,7 @@ public function _setMerged($value) {
487492 }
488493
489494 /**
495+ *
490496 * @param bool $focusable
491497 */
492498 public function setFocusable (bool $ focusable ): void {
You can’t perform that action at this time.
0 commit comments