Skip to content

including full DOM access? #621

Answered by lukehaas
jinxiaoman asked this question in Q&A
Discussion options

You must be logged in to vote

It means you have access to the DOM similar to a browser environment.

You can get a DOM node via the DOM API methods such as getElementById(), you can also create elements via createElement().

You could write HTML by doing something like this:

document.body.innerHTML = `
  <div id="example">hello, world</div>
`;

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jinxiaoman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants