ember-fastboot / simple-dom

208 stars 33 forks source link

documentService.body.firstChild not respecting other element in index.html #70

Closed snewcomer closed 5 years ago

snewcomer commented 6 years ago

In FastBoot, it seems documentService.body.firstChild == .ember-view and not the expected #ember-header. Lmk if I am missing something!

app/index.html

<body>
<div id="ember-header"></div>
{{content-for "body"}}

1.3.0 version

screen shot 2018-08-28 at 7 16 45 pm

snewcomer commented 6 years ago

Just realized that the scope for the documentService.body might just be the application.hbs and not the index.html. Is this expected?

krisselden commented 5 years ago

While I know it’s confusing that doesn’t have to do with this library but how fastboot uses it. The app is rendered into an empty documented then pieces are serialized and placed into the index html