title: data-* attributes do not work with Html::a() in Yii 2
body: <p>I have the following:</p>
  
  <pre><code>Html::a('Link', ['some/route'], [
      'class' =&gt; 'btn btn-lg btn-primary',    // WORKS
      'style' =&gt; 'padding: 100px;',           // WORKS
      'data-id' =&gt; 123,                       // DOES NOT WORK
      'data' =&gt; [
          'id' =&gt; 123,                        // DOES NOT WORK
      ],
  ]);
  </code></pre>
  
  <p>As per <a href="https://www.yiiframework.com/doc/api/2.0/yii-helpers-basehtml#a()-detail" rel="nofollow noreferrer">docs</a>, both of the specified <code>data-*</code> attributes in <code>Html::a</code> helper should render their respective attributes in the HTML output, but they do not, and I do not understand why.</p>
  
  <p>Yii 2 documentation on <a href="https://www.yiiframework.com/doc/api/2.0/yii-helpers-basehtml#renderTagAttributes()-detail" rel="nofollow noreferrer">renderTagAttributes</a> also states the following:</p>
  
  <blockquote>
    <p><strong>Renders the HTML tag attributes.</strong></p>
    
    <p>Attributes whose values are of boolean type will be treated as boolean
    attributes.</p>
    
    <p>Attributes whose values are null will not be rendered.</p>
    
    <p>The values of attributes will be HTML-encoded using encode().</p>
    
    <p>The "data" attribute is specially handled when it is receiving an
    array value. In this case, the array will be "expanded" and a list
    data attributes will be rendered. For example, if 'data' => ['id' =>
    1, 'name' => 'yii'], then this will be rendered: data-id="1"
    data-name="yii". Additionally 'data' => ['params' => ['id' => 1,
    'name' => 'yii'], 'status' => 'ok'] will be rendered as:
    data-params='{"id":1,"name":"yii"}' data-status="ok".</p>
  </blockquote>
  
  <hr>
  
  <p><strong>EDIT:</strong> I am trying to do this inside <code>GridView</code> column.</p>