elegantthemes / Divi-Beta

8 stars 0 forks source link

HTMLUtility::render() And Role Attribute #48

Closed dtcblyth closed 1 month ago

dtcblyth commented 10 months ago

Related thread: https://discord.com/channels/1041765492907589683/1163686476236738590

Problem:

The HTMLUtility::render() function does not output role attribute. See example below:

$figure = HTMLUtility::render([
  'tag' => 'div',
  'attributes'. => [
    'role'      => 'figure',
    'class'     => 'my_class',
    ...
  ],
  'childrenSanitizer'  => 'et_core_esc_previously',
  'children'           => $image,
]);

In this example, the role attribute is not rendered on the front-end.

ayubadiputra commented 1 month ago

This issue is fixed in v5.0.0-public-alpha.1.1 and will be released soon.