moovweb/gokogiri — Issue #1: Inject HTML into a node
Author: hcatlin
Created: 2011-11-16 01:00:56+00:00
State: open

There should be a way to inject HTML into a node. For instance,

node.String() // ""
node.Inject("

")
node.String() // "

"

And, furthermore, this new div has to be properly doc'd.

node.FirstElement().Doc() == node.Doc()
// and ensure this happens in C-world too!