Also implement it for DocumentFragment