Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INVALID_ATTR_VALUE src= #1258

Closed
palrakeshkumar opened this issue Dec 29, 2015 · 4 comments
Closed

INVALID_ATTR_VALUE src= #1258

palrakeshkumar opened this issue Dec 29, 2015 · 4 comments

Comments

@palrakeshkumar
Copy link

AMP validation had errors.

http://localhost:8000/#development=1:25:4 INVALID_ATTR_VALUE src=

How to resolve this.

@dvoytenko
Copy link
Contributor

@palrakeshkumar could you please send the fragment of the document that causes the error? It looks like line 25 is indicated in the error message.

@Gregable
Copy link
Member

Gregable commented Jan 4, 2016

@palrakeshkumar this error indicates that a tag on line 25, column 4 has a src attribute with an empty value. Something like <tag src> or <tag src=''>. The tag is likely a <script> tag, which must have very specific src attribute values. See the spec for more details.

Does that help?

@rsmything
Copy link

How can i fix it?

validator.js:208 http://192.168.1.198:3000/ru:2:8 INVALID_ATTR_VALUE src=/assets/application-859cd81611d82dccdc79ffa5680c19daa707658ea158de14ca49fd129bd7f44b.js (see https://github.com/ampproject/amphtml/blob/master/spec/amp-html-format.md#scrpt)

@Gregable
Copy link
Member

@rsmything , author javascript is not allowed on AMP documents. See https://github.com/ampproject/amphtml/blob/master/spec/amp-html-format.md#html-tags. You'll need to remove that tag to fix this error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants