Skip to content

Commit 30fc359

Browse files
committed
fix: HTML5 audio not supported weirdly (#49)
This issue is actually introduced by no the controls attribute in audio node, and Nokogiri's XML parser will cause blank value of attribute lost.
1 parent 6bb7b2f commit 30fc359

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/jekyll-spaceship/processors/media-processor.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def handle_audio(element, data)
178178
" #{cfg['loop'] ? 'loop' : ''}"\
179179
" src=\"#{cfg['src']}\""\
180180
" style=\"#{cfg['style']}\""\
181-
" controls>" \
181+
" controls=\"true\">" \
182182
"<p> Your browser doesn't support HTML5 audio."\
183183
" Here is a <a href=\"#{cfg['src']}\">link to download the audio</a>"\
184184
" instead. </p>"\

0 commit comments

Comments
 (0)