-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add sandbox option #61
base: master
Are you sure you want to change the base?
Conversation
setClassNames = (classNames: string[] | undefined = []) => { | ||
updateClassNames(this.domContainer, classNames, this.classNames); | ||
|
||
// update this._classNames to the new classNames |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my opinion, these comments are redundant, lets delete it
setStyles = (styles: Record<string, string> | undefined = {}) => { | ||
updateStyles(this.domContainer, styles, this.styles); | ||
|
||
// update this._styles to the new styles |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my opinion, these comments are redundant, lets delete it
|
||
this.domContainer.replaceChildren(fragment); | ||
|
||
// TODO: should we reinitialize Observer? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment does not give an understanding of why, let's add more context.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All these comments are from the original class IFrameController, I can just delete them.
Adds the
sandbox
option for thesrcdoc
mode, which allows you to enable additional security levels (thesandbox
attribute on the iframe).Fixes #59