Separated HTML and XML modes for markup selectors.