Permalink
Browse files

Fixed source tags. now self-closing. Closes #308

  • Loading branch information...
1 parent 0f0ac24 commit dc99938ce76a2fa02300c291427122baec603836 @tj tj committed Apr 4, 2012
Showing with 11 additions and 0 deletions.
  1. +1 −0 lib/self-closing.js
  2. +6 −0 test/cases/source.html
  3. +4 −0 test/cases/source.jade
View
1 lib/self-closing.js
@@ -10,6 +10,7 @@ module.exports = [
, 'img'
, 'link'
, 'input'
+ , 'source'
, 'area'
, 'base'
, 'col'
View
6 test/cases/source.html
@@ -0,0 +1,6 @@
+<html>
+ <audio preload="auto" autobuffer="autobuffer" controls="controls">
+ <source src="foo"/>
+ <source src="bar"/>
+ </audio>
+</html>
View
4 test/cases/source.jade
@@ -0,0 +1,4 @@
+html
+ audio(preload='auto', autobuffer, controls)
+ source(src='foo')
+ source(src='bar')

0 comments on commit dc99938

Please sign in to comment.