What is the purpose of scripting_enabled
and iframe_srcdoc
in swc_html_parser::parser::ParserConfig
?
#7982
Answered
by
alexander-akait
phoenix-ru
asked this question in
Q&A
-
I am working on a native Vue compiler (unofficial), and so far experience with Could you please advise, what is the point of pub struct ParserConfig {
pub scripting_enabled: bool,
pub iframe_srcdoc: bool,
} There unfortunately is no documentation for these two fields, and I am not sure of their impact. Does this have anything to do with how |
Beta Was this translation helpful? Give feedback.
Answered by
alexander-akait
Dec 6, 2023
Replies: 1 comment 1 reply
-
I think it's for parity with the specification, but let's check again. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@phoenix-ru Sorry for delay, it is for parsing the
srcdoc
attribute of theiframe
tag https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/srcdoc, yeah it is a part of HTML spec