• File: Dialog.php
  • Full Path: /var/www/crm_set/application/vendor/xemlock/htmlpurifier-html5/library/HTMLPurifier/AttrTransform/HTML5/Dialog.php
  • Date Modified: 09/21/2026 4:20 AM
  • File size: 531 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php

class HTMLPurifier_AttrTransform_HTML5_Dialog extends HTMLPurifier_AttrTransform
{
    /**
     * @param array $attr
     * @param HTMLPurifier_Config $config
     * @param HTMLPurifier_Context $context
     * @return array
     */
    public function transform($attr, $config, $context)
    {
        // The tabindex attribute must not be specified on dialog elements.
        // https://html.spec.whatwg.org/dev/interactive-elements.html#the-dialog-element
        unset($attr['tabindex']);

        return $attr;
    }
}