Don't look for window attribute on document when resolving link rel
Don't look for window attribute on document when resolving link rel

Ported from https://github.com/asciidoctor/asciidoctor/commit/a70ce45fc201de6e674167558290e429e450ce41

jirutka/asciidoctor-html5,jirutka/asciidoctor-html5