-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Clarify the documentation for allowed attributes #994
Comments
I think what I'd like to do is generate some code which will take the validator's spec file and produce some markdown from it that is more human readable. For example, the section regarding the
And could be converted to markdown to look something like:
This is currently just an example done by hand. The Tag addendum was an attempt to do the same (also by hand) before folks had access to the validator spec file. I think we should write some code to generate this automatically from the spec file, however. |
FYI, I've added quite a bit of validation documentation. The main new doc is here: https://www.ampproject.org/docs/reference/validation_errors.html. As well, each spec has a validation errors table. Check out a couple of examples to see what they look like: https://www.ampproject.org/docs/reference/amp-img.html, https://www.ampproject.org/docs/reference/extended/amp-iframe.html. |
@Gregable i can take on that work, im currently in the process of writing down some scripts for the docs site to pull the data from the protoascii. |
@erwinmombay , sync up with @honeybadgerdontcare as I think he had started on this as well. |
Yeah, let's chat. I am in the process of markdown generation from the protoascii. |
Is this still relevant? |
I think this ticket can be closed. IMO, since this ticket was opened, the release of the AMP validator as a Chrome plugin and nodejs module provide enough information. |
It would be helpful to clarify the allowed attributes for whitelisted elements. This would help publishers avoid validation errors when transforming content from their content management systems.
There is already a HTML5 element whitelist in the AMP Tag Addendum, but there isn't a clear reference for the attributes that are allowed vs. prohibited by the AMP spec.
There is some documentation in the form of the validator, but the validator might not be the most accessible format for all users.
The text was updated successfully, but these errors were encountered: