getAttributes(element) {
    return {
      id: element.getAttribute(L10NID_ATTR_NAME),
      args: JSON.parse(element.getAttribute(L10NARGS_ATTR_NAME) || null),
    };
  }
Get the `data-l10n-*` attributes from DOM elements.

```javascript
localization.getAttributes(
  document.querySelector('#welcome')
);
// -> { id: 'hello', args: { who: 'world' } }
```

@param   {Element}  element - HTML element
@returns {{id: string, args: Object}}