html-chain icon indicating copy to clipboard operation
html-chain copied to clipboard

Add ability to do interrupted chaining

Open maael opened this issue 9 years ago • 0 comments

Basic Example

var body = html.add('div'),
    content = body.add('p')
console.log(content.build())

Loop Example

var table = html.add('table')
for (var i = 0; i < 3; i++) {
  table.add('tr')
}
console.log(table.build())

Current Error

TypeError: Cannot read property 'parentNode' of undefined
  at appendToLastAtLevel (html.js:69:33)

:exclamation: Requires new test :exclamation:

maael avatar Feb 25 '16 00:02 maael