QA helper bugfix to allow img and anchor element attributes