Try handle non-HTML documents