Skip to content

Commit 6d0d965

Browse files
committed
Merge pull request #161 from mbutsko/master
Adding `<audio src="…">` and `<video src="…">` src to domAttributes
2 parents 658943a + cb598f9 commit 6d0d965

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/URI.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,9 @@
225225
'embed': 'src',
226226
'source': 'src',
227227
'track': 'src',
228-
'input': 'src' // but only if type="image"
228+
'input': 'src', // but only if type="image"
229+
'audio': 'src',
230+
'video': 'src'
229231
};
230232
URI.getDomAttribute = function(node) {
231233
if (!node || !node.nodeName) {

0 commit comments

Comments
 (0)