protected function makeAttribute($name, array $values)
    {
        $attr = $name . '="';

        switch (true)
        {
            case $values === [true]:
                $attr = $name;
                return $attr;
                break;
            case $name === 'style':
            case strpos($name, 'on') === 0:
                $attr .= htmlspecialchars(join(';', $values));
                break;
            default:
                $attr .= htmlspecialchars(join(' ', $values));
                break;
        }

        $attr .= '"';
        return $attr;
    }