<!DOCTYPE html>
<!--
  Copyright 2015 The AMP HTML Authors. All Rights Reserved.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS-IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the license.
--><!--
  Test Description:
  This example has several problems - see the .out file.
--><html amp><head>
  <meta>
  <link rel="canonical" href="./regular-html-version.html">
  <style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>
  
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,minimum-scale=1">
<script async src="https://cdn.ampproject.org/v0.js"></script>
</head>
<body>
  <table><tr><td>Tables are allowed</td></tr></table>
  <amp-img src="dimensions_are_missing.jpg" layout="fixed"></amp-img>
  <!-- We don't allow percent as a size unit either. -->
  <amp-ad height="300">
    <!-- <script>document.write(…)</script> -->
  </amp-ad>
  <amp-ad width="42" height="42"></amp-ad>
</body>

</html>


ORIGINAL HTML
---------------
Line  1: <!--
Line  2:   Copyright 2015 The AMP HTML Authors. All Rights Reserved.
Line  3: 
Line  4:   Licensed under the Apache License, Version 2.0 (the "License");
Line  5:   you may not use this file except in compliance with the License.
Line  6:   You may obtain a copy of the License at
Line  7: 
Line  8:       http://www.apache.org/licenses/LICENSE-2.0
Line  9: 
Line 10:   Unless required by applicable law or agreed to in writing, software
Line 11:   distributed under the License is distributed on an "AS-IS" BASIS,
Line 12:   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Line 13:   See the License for the specific language governing permissions and
Line 14:   limitations under the license.
Line 15: -->
Line 16: <!--
Line 17:   Test Description:
Line 18:   This example has several problems - see the .out file.
Line 19: -->
Line 20: <!doctype html>
Line 21: <html ⚡>
Line 22: <head>
Line 23:   <meta charset='pick-a-key'>
Line 24:   <link rel='canonical' href='./regular-html-version.html' />
Line 25:   <style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>
Line 26:   <script type='javascript'>
Line 27:   // Let's go crazy. Uhm, no, hahaha.
Line 28:   </script>
Line 29: </head>
Line 30: <body>
Line 31:   <table><tr><td>Tables are allowed</td></tr></table>
Line 32:   <amp-img src=dimensions_are_missing.jpg layout="fixed"/>
Line 33:   <!-- We don't allow percent as a size unit either. -->
Line 34:   <amp-ad width=100% height=300>
Line 35:     <!-- <script>document.write(…)</script> -->
Line 36:   </amp-ad>
Line 37:   <amp-ad width="42" height="42" made_up_attribute="oh hi"></amp-ad>
Line 38: </body>
Line 39: </html>
Line 40: 



AMP-HTML Validation Issues and Fixes
-------------------------------------
FAIL

<meta charset="pick-a-key"> on line 23
- The attribute 'charset' may not appear in tag 'meta name= and content='.
   [code: DISALLOWED_ATTR  category: DISALLOWED_HTML]
   ACTION TAKEN: meta.charset attribute was removed due to validation issues.

<script type="javascript"> on line 26
- The tag 'script' is disallowed except in specific forms.
   [code: GENERAL_DISALLOWED_TAG  category: CUSTOM_JAVASCRIPT_DISALLOWED]
   ACTION TAKEN: script tag was removed due to validation issues.

<amp-img src="dimensions_are_missing.jpg" layout="fixed"> on line 32
- The mandatory attribute 'height' is missing in tag 'amp-img'.
   [code: MANDATORY_ATTR_MISSING  category: AMP_LAYOUT_PROBLEM see: https://www.ampproject.org/docs/reference/amp-img.html]

<amp-ad width="100%" height="300"> on line 34
- The attribute 'width' in tag 'amp-ad' is set to the invalid value '100%'.
   [code: INVALID_ATTR_VALUE  category: AMP_LAYOUT_PROBLEM see: https://www.ampproject.org/docs/reference/amp-ad.html]
   ACTION TAKEN: amp-ad.width attribute was removed due to validation issues.
- The mandatory attribute 'type' is missing in tag 'amp-ad'.
   [code: MANDATORY_ATTR_MISSING  category: AMP_TAG_PROBLEM see: https://www.ampproject.org/docs/reference/amp-ad.html]

<amp-ad width="42" height="42" made_up_attribute="oh hi"> on line 37
- The attribute 'made_up_attribute' may not appear in tag 'amp-ad'.
   [code: DISALLOWED_ATTR  category: AMP_TAG_PROBLEM see: https://www.ampproject.org/docs/reference/amp-ad.html]
   ACTION TAKEN: amp-ad.made_up_attribute attribute was removed due to validation issues.

GLOBAL WARNING
- The mandatory tag 'meta charset=utf-8' is missing or incorrect.
   [code: MANDATORY_TAG_MISSING  category: MANDATORY_AMP_TAG_MISSING_OR_INCORRECT see: https://www.ampproject.org/docs/reference/spec.html#required-markup]
   ACTION TAKEN: meta charset=utf-8 tag was added to the document.
- The mandatory tag 'meta name=viewport' is missing or incorrect.
   [code: MANDATORY_TAG_MISSING  category: MANDATORY_AMP_TAG_MISSING_OR_INCORRECT see: https://www.ampproject.org/docs/reference/spec.html#required-markup]
   ACTION TAKEN: meta name=viewport tag was added to the document.
- The mandatory tag 'amphtml engine v0.js script' is missing or incorrect.
   [code: MANDATORY_TAG_MISSING  category: MANDATORY_AMP_TAG_MISSING_OR_INCORRECT see: https://www.ampproject.org/docs/reference/spec.html#required-markup]
   ACTION TAKEN: amphtml engine v0.js script tag was added to the document.

COMPONENT NAMES WITH JS PATH
------------------------------
No custom amp script includes required
