-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix 'Need to clean up 'sandbox', 'target' and 'style' attributes'(close
#1448) (#1450) * fix 'Need to clean up 'sandbox', 'target', 'style' attributes'(close #1448) * fix tests
- Loading branch information
1 parent
2d30ccd
commit 293d5fa
Showing
6 changed files
with
43 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export const URL_ATTR_TAGS = { | ||
href: ['a', 'link', 'image', 'area', 'base'], | ||
src: ['img', 'embed', 'script', 'source', 'video', 'audio', 'input', 'frame', 'iframe'], | ||
action: ['form'], | ||
formaction: ['button', 'input'], | ||
manifest: ['html'], | ||
data: ['object'] | ||
}; | ||
|
||
export const URL_ATTRS = Object.keys(URL_ATTR_TAGS); | ||
|
||
export const ATTRS_WITH_SPECIAL_PROXYING_LOGIC = ['sandbox', 'autocomplete', 'target', 'style']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters