Skip to content

Commit

Permalink
πŸ› <amp-script>: Clearer Error for Form Element Mutations (#27490)
Browse files Browse the repository at this point in the history
* Update amp-script.js

* Removed extra tag
  • Loading branch information
morsssss committed Mar 30, 2020
1 parent 703645c commit 66af7f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/amp-script/0.1/amp-script.js
Expand Up @@ -669,7 +669,7 @@ export class SanitizerImpl {
if (!this.allowForms_ && FORM_ELEMENTS.includes(tag)) {
user().warn(
TAG,
'Form elements (%s) are not allowed without sandbox="allow-forms".',
'Form elements (%s) cannot be mutated unless your <amp-script> includes the attribute sandbox="allow-forms".',
tag
);
return true;
Expand Down

0 comments on commit 66af7f9

Please sign in to comment.