Skip to content

Commit

Permalink
Fix rootElement.getAttribute error (emberjs#812)
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbieTheWagner authored and cyril-sf committed Mar 30, 2022
1 parent 711fab0 commit 6943e85
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ember_debug/libs/glimmer-tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ export default class {

// set root element's id
let rootElement = this.elementForRoot();
outletTree.value.elementId = rootElement.getAttribute('id');
if (rootElement instanceof HTMLElement) {
outletTree.value.elementId = rootElement.getAttribute('id');
}
outletTree.value.tagName = 'div';

return outletTree;
Expand Down

0 comments on commit 6943e85

Please sign in to comment.