A sound clip of Zersiax's screen reader in action.
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.
Note that this was performed in Chrome.
<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>
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.
Browser Information
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.
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>
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.