What is the purpose of scripting_enabled
and iframe_srcdoc
in swc_html_parser::parser::ParserConfig
?
#7982
-
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.
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.
@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