PluginProbe
Elementor Website Builder – more than just a page builder / 3.1.3
Elementor Website Builder – more than just a page builder v3.1.3
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
← All changes | includes/widgets/toggle.php +5 -3 3.1.23.1.3 View file →
@@ -539,8 +539,9 @@
539 539 'class' => [ 'elementor-tab-title' ],
540 540 'data-tab' => $tab_count,
541 541 'role' => 'tab',
542 542 'aria-controls' => 'elementor-tab-content-' . $id_int . $tab_count,
543 + 'aria-expanded' => 'false',
543 544 ] );
544 545
545 546 $this->add_render_attribute( $tab_content_setting_key, [
546 547 'id' => 'elementor-tab-content-' . $id_int . $tab_count,
@@ -552,9 +553,9 @@
552 553
553 554 $this->add_inline_editing_attributes( $tab_content_setting_key, 'advanced' );
554 555 ?>
555 556 <div class="elementor-toggle-item">
556 - <<?php echo esc_html( $settings['title_html_tag'] ); ?> <?php echo $this->get_render_attribute_string( $tab_title_setting_key ); ?>>
557 + <<?php echo Utils::validate_html_tag( $settings['title_html_tag'] ); ?> <?php echo $this->get_render_attribute_string( $tab_title_setting_key ); ?>>
557 558 <?php if ( $has_icon ) : ?>
558 559 <span class="elementor-toggle-icon elementor-toggle-icon-<?php echo esc_attr( $settings['icon_align'] ); ?>" aria-hidden="true">
559 560 <?php
560 561 if ( $is_new || $migrated ) { ?>
@@ -566,9 +567,9 @@
566 567 <?php } ?>
567 568 </span>
568 569 <?php endif; ?>
569 570 <a href="" class="elementor-toggle-title"><?php echo $item['tab_title']; ?></a>
570 - </<?php echo esc_html( $settings['title_html_tag'] ); ?>>
571 + </<?php echo Utils::validate_html_tag( $settings['title_html_tag'] ); ?>>
571 572 <div <?php echo $this->get_render_attribute_string( $tab_content_setting_key ); ?>><?php echo $this->parse_text_editor( $item['tab_content'] ); ?></div>
572 573 </div>
573 574 <?php endforeach; ?>
574 575 </div>
@@ -602,9 +603,10 @@
602 603 'id': 'elementor-tab-title-' + tabindex + tabCount,
603 604 'class': [ 'elementor-tab-title' ],
604 605 'data-tab': tabCount,
605 606 'role': 'tab',
606 - 'aria-controls': 'elementor-tab-content-' + tabindex + tabCount
607 + 'aria-controls': 'elementor-tab-content-' + tabindex + tabCount,
608 + 'aria-expanded': 'false',
607 609 } );
608 610
609 611 view.addRenderAttribute( tabContentKey, {
610 612 'id': 'elementor-tab-content-' + tabindex + tabCount,