DomDocument.createComment

DomCharacterData * createComment(scope const(char)[] data) @nogc nothrow pure @safe

A new comment (not attached), with a copy of data