You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe that script is intended for development only, as it seems that it's not requested if #development=1 isn't appended. But it would really help us with this issue on the AMP WordPress plugin:
Yeah this is done. I just confirmed by looking at https://cdn.ampproject.org/v0/validator.js and verifying that the whole thing is wrapped into a javascript scope with the usual pattern. Please reopen / complain if you see further issues.
Hi @powdercloud and @Gregable,
Thanks a lot for fixing this. As you mentioned, validator.js is wrapped in a function, and functions like wp aren't leaked.
What's the issue?
It seems that functions in validator.js are escaping into the global namespace.
How do we reproduce the issue?
#development=1
appended to the URL.wp
.wp
is not definedwp
is a function:It looks like this script leaks functions into the global namespace:
https://cdn.ampproject.org/v0/validator.js
There are other functions leaked, like
aa
.Maybe that script is intended for development only, as it seems that it's not requested if
#development=1
isn't appended. But it would really help us with this issue on the AMP WordPress plugin:ampproject/amp-wp#843
We're working on validating AMP in the WordPress editor.
What browsers are affected?
Chrome 63.0.3239.132
Which AMP version is affected?
1516337355291
Thanks a lot for your help 😄
/cc @amedina, @Gregable, @pbakaus
The text was updated successfully, but these errors were encountered: