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
<p>Powered by <ahref=" https://wordpress.org/">WordPress</a></p>
A INVALID_URL_PROTOCOL validation error is raised:
Notice the initial whitespace before the URL in the href attribute. The link works properly in the non-AMP version, and the above markup causes no validation error in the AMP validator.
So it seems the URL needs to be trimmed before checking whether it is valid.
Expected Behaviour
Steps to reproduce
Go to '...'
Click on '....'
Scroll down to '....'
See error
Screenshots
Additional context
WordPress version:
Plugin version:
Gutenberg plugin version (if applicable):
AMP plugin template mode:
PHP version:
OS:
Browser: [e.g. chrome, safari]
Device: [e.g. iPhone6]
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation brief
QA testing instructions
Demo
Changelog entry
The text was updated successfully, but these errors were encountered:
Bug Description
Given HTML like this:
A
INVALID_URL_PROTOCOL
validation error is raised:Notice the initial whitespace before the URL in the
href
attribute. The link works properly in the non-AMP version, and the above markup causes no validation error in the AMP validator.So it seems the URL needs to be trimmed before checking whether it is valid.
Expected Behaviour
Steps to reproduce
Screenshots
Additional context
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation brief
QA testing instructions
Demo
Changelog entry
The text was updated successfully, but these errors were encountered: