parseFragment

fnDomElement * parseFragment(DomDocument * doc, DomElement * context, scope const(char)[] html) @nogc nothrow pure @safe

Parse a fragment in the context of context (an element of doc). It returns a detached <html> element whose children are the result, or null if out of memory.