Skip to content

Commit a251293

Browse files
refactor: handle the uppercase srcset attribute
1 parent 04d6a5c commit a251293

File tree

3 files changed

+270
-177
lines changed

3 files changed

+270
-177
lines changed

src/plugins/attribute-plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ function processMatch(match, strUntilValue, name, value, index) {
385385
return;
386386
}
387387

388-
if (name === 'srcset') {
388+
if (name.toLowerCase() === 'srcset') {
389389
let sourceSet;
390390

391391
try {

0 commit comments

Comments
 (0)