Skip to content

toString() emits DocumentFragments as <undefined> tags #48

@seangenabe

Description

@seangenabe

When I add DocumentFragments to a node, the node gets rendered with <undefined> tags.

Sample code:

var document = require('min-document')
var fragment = document.createDocumentFragment()
fragment.appendChild(document.createTextNode('hello'))
var span = document.createElement('span')
span.appendChild(fragment)
span.toString()

Output:

"<span><undefined>hello</undefined></span>"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions