@@ -74,7 +74,7 @@ public static function render_template( array $template ): void {
7474 */
7575 public static function sanitize_output (): array {
7676 return [
77- 'div ' => [ 'class ' => [], 'id ' => [] ],
77+ 'div ' => [ 'class ' => [], 'id ' => [], ' role ' => [], ' aria-label ' => [], ' aria-pressed ' => [] ],
7878 'table ' => [ 'class ' => [], 'id ' => [] ],
7979 'thead ' => [ 'class ' => [], 'id ' => [] ],
8080 'tr ' => [ 'class ' => [], 'id ' => [] ],
@@ -93,6 +93,8 @@ public static function sanitize_output(): array {
9393 'h3 ' => [ 'class ' => [], 'id ' => [] ],
9494 'h4 ' => [ 'class ' => [], 'id ' => [] ],
9595 'u ' => [],
96+ 'i ' => [ 'class ' => [], 'id ' => [] ],
97+ 'link ' => [ 'rel ' => [], 'href ' => [], 'id ' => [] ],
9698 'small ' => [],
9799 'pre ' => [],
98100 'br ' => [],
@@ -109,20 +111,24 @@ public static function sanitize_output(): array {
109111 'form ' => [ 'method ' => [], 'action ' => [], 'class ' => [], 'id ' => [] ],
110112 'label ' => [ 'for ' => [], 'class ' => [], 'id ' => [] ],
111113 'input ' => [
112- 'type ' => [],
113- 'name ' => [],
114- 'value ' => [],
115- 'id ' => [],
116- 'class ' => [],
117- 'required ' => [],
118- 'checked ' => [],
119- 'placeholder ' => [],
120- 'title ' => [],
114+ 'type ' => [],
115+ 'name ' => [],
116+ 'value ' => [],
117+ 'id ' => [],
118+ 'class ' => [],
119+ 'required ' => [],
120+ 'checked ' => [],
121+ 'placeholder ' => [],
122+ 'title ' => [],
123+ 'autocomplete ' => [],
124+ 'aria-expanded ' => [],
125+ 'aria-owns ' => [],
126+ 'style ' => [],
121127 ],
122128 'select ' => [ 'name ' => [], 'class ' => [], 'id ' => [], 'required ' => [], 'onchange ' => [], ],
123129 'textarea ' => [ 'name ' => [], 'class ' => [], 'id ' => [], 'rows ' => [], 'cols ' => [] ],
124130 'option ' => [ 'value ' => [], 'selected ' => [] ],
125- 'button ' => [ 'type ' => [], 'class ' => [], 'id ' => [] ],
131+ 'button ' => [ 'type ' => [], 'class ' => [], 'id ' => [], ' role ' => [], ' hidefocus ' => [] ],
126132 ];
127133 }
128134
0 commit comments