Avoid seeing end of self-closing tag as filepath