Lullabot / amp-library

Convert HTML to AMP HTML and report HTML compliance with the AMP HTML specification
Other
382 stars 181 forks source link

Malformed URL validator for attribute 'href' in tag 'a' is missing #242

Open iransamaneh opened 6 years ago

iransamaneh commented 6 years ago

using an a tag with malformed url like https://.sample.com/test/route in AMP validator led to following error without any warning or error in convertToAmpHtml method

Malformed URL 'https://.sample.com/test/route' for attribute 'href' in tag 'a'. DISALLOWED_HTML

sample code

<a href="https://.sample.com/test/route">test link</a>

tested with master source code version of amp-library using composer and php 5.6