Freecodecamp: BETA: Applied Accessibility: Improve Accessibility of Audio Content with the audio Element, not detecting closing </audio> tag.

Created on 5 Feb 2018  路  6Comments  路  Source: freeCodeCamp/freeCodeCamp



Applied Accessibility: Improve Accessibility of Audio Content with the audio Element


https://beta.freecodecamp.org/en/challenges/applied-accessibility/improve-accessibility-of-audio-content-with-the-audio-element

Issue Description


I tried to complete the task at hand. I believe it is done correctly, but it is saying that I still require a closing audio tag. You can see from the image below that I do have one in there and it is still not passing.

Browser Information


Note that this was performed in Chrome.

  • Browser Name, Version: Chrome, latest version
  • Operating System: Windows 10
  • Mobile, Desktop, or Tablet: Desktop

Your Code

<body>
  <header>
    <h1>Real Coding Ninjas</h1>
  </header>
  <main>
    <p>A sound clip of Zersiax's screen reader in action.</p>
  <audio controls>
    <source src="https://s3.amazonaws.com/freecodecamp/screen-reader.mp3" type="audio/mpeg" />    </audio>   
  </main>
</body>

Screenshot


audio

Most helpful comment

Ran into this same issue tonight. For everyone still having trouble, do not include an id attribute in your audio tag. It seemed to accept my answer after I removed the id attribute completely.

    <audio controls>
      <source src="https://s3.amazonaws.com/freecodecamp/screen-reader.mp3" type="audio/mpeg" />
    </audio>

All 6 comments

I also have this issue: receiving error message "cannot read property 'length' of null" and failing checks despite closing <audio> tag being in appropriate place.

bug-audio_source_failing_checks

Browser Information

  • Browser Name, Version: Vivaldi 1.13.1008.44
  • Operating System: Windows 10
  • Mobile, Desktop, or Tablet: Desktop

Found the faulty regex in the test: /<audio id=\"meowClip\" controls>/g. The addition of the "meowClip" id attribute in the audio tag test was never specified in the directions and seems to have mistaken the challenge description (which uses a <audio id="meowClip"> tag as an example) for a solution.

Since the faulty regex would never match anything and the test used a .match(...).length to check if the number of closing tags matched the number of opening tags, it threw the aforementioned error cannot read property 'length' of null.

(Real Coding Ninjas)Audio closing tag still not detected!!!!

SAME! It is not being detected.



Real Coding Ninjas




A sound clip of Zersiax's screen reader in action.



still not fixed

Ran into this same issue tonight. For everyone still having trouble, do not include an id attribute in your audio tag. It seemed to accept my answer after I removed the id attribute completely.

    <audio controls>
      <source src="https://s3.amazonaws.com/freecodecamp/screen-reader.mp3" type="audio/mpeg" />
    </audio>
Was this page helpful?
0 / 5 - 0 ratings