I'm trying to solve an odd problem, and thought I could work around it by manually adding some items to a directive's element: http://jsbin.com/quxusu/2/edit?html,js,output Which causes this error in a replace method: ``` Uncaught TypeError: Cannot read property 'parentNode' of undefined ``` Is this a bug, or expected behavior?