fixed alt-require rule, it used to process all elements, not just imgs