Skip to content

Commit

Permalink
Fix srcSet, which is not a comma-separated value
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Nov 12, 2021
1 parent 16de93d commit acf30dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export const html = create({
httpEquiv: spaceSeparated,
id: null,
imageSizes: null,
imageSrcSet: commaSeparated,
imageSrcSet: null,
inputMode: null,
integrity: null,
is: null,
Expand Down Expand Up @@ -223,7 +223,7 @@ export const html = create({
src: null,
srcDoc: null,
srcLang: null,
srcSet: commaSeparated,
srcSet: null,
start: number,
step: null,
style: null,
Expand Down
3 changes: 1 addition & 2 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,7 @@ test('schema', function (t) {
t.deepLooseEqual(information.html.property.srcSet, {
space: 'html',
attribute: 'srcset',
property: 'srcSet',
commaSeparated: true
property: 'srcSet'
})

t.deepLooseEqual(information.html.property.download, {
Expand Down

0 comments on commit acf30dd

Please sign in to comment.