# Widget Helper stripping attributes?

**URL:** https://meta.discourse.org/t/widget-helper-stripping-attributes/68014
**Category:** Development
**Created:** [14 augustus 2017 om 14:06 UTC](https://meta.discourse.org/t/widget-helper-stripping-attributes/68014 "2017-08-14T14:06:56Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [14 augustus 2017 om 14:17 UTC](https://meta.discourse.org/t/widget-helper-stripping-attributes/68014/2 "2017-08-14T14:17:36Z")

</div>

[https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/widgets/header.js.es6#L93-L104](https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/widgets/header.js.es6#L93-L104)

As per above code, I guess it should be like below

```js
decorateWidget('header-icons:before', helper => {
    return h('li.header-dropdown-toggle', [
        h('a.icon.btn-flat', {
                'id': 'my id',
                'href': 'http://example.com',
                'title': 'my title',
                'attributes': {
                    'aria-label': 'my label',
                    'target': "_blank"
                }
            }, [
                h('i.fa.fa-info.d-icon', { 'attributes': {
                    'aria-hidden': 'true'
                }})
            ]
        ),
    ]);
});

```

Also `target` is not `_target`.

---

_[View the full topic](https://meta.discourse.org/t/widget-helper-stripping-attributes/68014)._
