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

Some documents on ampproject.org have validation errors #78

Closed
Gregable opened this issue Apr 11, 2016 · 7 comments
Closed

Some documents on ampproject.org have validation errors #78

Gregable opened this issue Apr 11, 2016 · 7 comments
Assignees

Comments

@Gregable
Copy link
Member

https://www.ampproject.org/docs/support/faqs.html#development=1
2 errors.

  1. Caused by this tag: <a class="tab hamburger" id="menu-button" href="">&#x2261;</a>. The empty href is considered invalid.
  2. Caused by this script tag:
    <script>
    document.getElementById('menu-button').onclick = function() {
      document.getElementsByTagName('header')[0].classList.toggle('menu-open');
      document.querySelector('div.content').classList.toggle('menu-open');
      document.querySelector('nav').classList.toggle('menu-open');
      return false;
    };
    </script>
@Gregable
Copy link
Member Author

@pbakaus

@cramforce
Copy link
Member

@sriramkrish85 Could you port this to amp-sidebar?

@Meggin Meggin added this to the Milestone: 2016-06-30 milestone Apr 26, 2016
@Meggin
Copy link
Contributor

Meggin commented Apr 26, 2016

Added this one to our first docs milestone. We need to replace the current navigation with a proper amp-sidebar that passes amp validation.

@honeybadgerdontcare
Copy link
Contributor

Ping. What is the eta on this?

@erwinmombay
Copy link
Member

think I had this conversation with @Meggin, that we'd replace the current js script with the amp-sidebar implementation. ETA on it for me to start working on it was after I/O, unless @sriramkrish85 wants to take over it

@honeybadgerdontcare
Copy link
Contributor

FYI, the extension is launched which would make this obvious to users of the extension when visiting ampproject.org.

@pbakaus
Copy link
Collaborator

pbakaus commented May 19, 2016

Fixed it in 25e9bee

@pbakaus pbakaus closed this as completed May 19, 2016
ghost pushed a commit that referenced this issue Feb 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants