You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
Once input had <summary> and <details> HTML5 tags I immediately got an error: "Element 'details' is not supported (for information on implementing this, see the support forums)"
As your docs say, I've fixed it in the following way:
class Html5Definition extends \Stevebauman\Purify\Definitions\Html5Definition
{
public static function apply(\HTMLPurifier_HTMLDefinition $definition)
{
parent::apply($definition);
$definition->addElement('summary', 'Block', 'Flow', 'Common', [
'open' => 'Bool',
]);
$definition->addElement('details', 'Block', 'Flow', 'Common');
}
}
Hi!
Once input had
<summary>
and<details>
HTML5 tags I immediately got an error: "Element 'details' is not supported (for information on implementing this, see the support forums)"As your docs say, I've fixed it in the following way:
Specifications:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/summary
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details
Would be rather cool to have this working out of box ;)
The text was updated successfully, but these errors were encountered: