Add selector to widget getAttribute