> What about another three methods on XENCCipher
> 
> DOMNode * encryptElementDetached(.....)
> DOMNode * encryptElementContentDetached(....)
> DOMNode * decryptElementDetached(......)
> 
> The result is passed back as a DOMNode because the result of a decrypt
> might be a Document Fragment or an element.

Either new methods or flags (with a default parameter) are fine by me. The
latter would be API compatible as well.

> The returned DOM structures would be owned by the original document, but
> detached from that document, and nothing in the original document will
> have been modified.

Right.

> How does that sound?

It sounds perfect, thanks.

-- Scott

Reply via email to