rehypejs / rehype-minify
Showing 1 of 1 files from the diff.

@@ -256,7 +256,7 @@
Loading
256 256
    missing: null,
257 257
    states: [null, 'true', 'false']
258 258
  },
259 -
  // Also for `formEncType` on submit buttons.
259 +
  // When changing `encType`, please also change `formEncType`.
260 260
  encType: {
261 261
    tagNames: 'form',
262 262
    invalid: 'application/x-www-form-urlencoded',
@@ -267,6 +267,31 @@
Loading
267 267
      'text/plain'
268 268
    ]
269 269
  },
270 +
  // When changing `formEncType`, please also change `encType`.
271 +
  formEncType: {
272 +
    tagNames: ['button', 'input'],
273 +
    invalid: 'application/x-www-form-urlencoded',
274 +
    missing: 'application/x-www-form-urlencoded',
275 +
    states: [
276 +
      'application/x-www-form-urlencoded',
277 +
      'multipart/form-data',
278 +
      'text/plain'
279 +
    ]
280 +
  },
281 +
  // When changing `formMethod`, please also change `method`.
282 +
  formMethod: {
283 +
    tagNames: ['button', 'input'],
284 +
    invalid: 'get',
285 +
    missing: 'get',
286 +
    states: ['dialog', 'get', 'post']
287 +
  },
288 +
  // When changing `formTarget`, please also change `target`.
289 +
  formTarget: {
290 +
    tagNames: ['button', 'input'],
291 +
    missing: '',
292 +
    allowUnknown: true,
293 +
    states: ['_blank', '_parent', ['', '_self'], '_top']
294 +
  },
270 295
  inputMode: {
271 296
    // In fact only applies to `text`, `search`, and `password`.
272 297
    tagNames: 'input',
@@ -305,7 +330,7 @@
Loading
305 330
    invalid: 'metadata',
306 331
    states: ['captions', 'chapters', 'descriptions', 'metadata', 'subtitles']
307 332
  },
308 -
  // Also for `formMethod` on submit buttons.
333 +
  // When changing `method`, please also change `formMethod`.
309 334
  method: {
310 335
    tagNames: 'form',
311 336
    invalid: 'get',
@@ -353,6 +378,7 @@
Loading
353 378
    invalid: null,
354 379
    states: [null, ['', 'true'], 'false']
355 380
  },
381 +
  // When changing `target`, please also change `formTarget`.
356 382
  target: {
357 383
    tagNames: ['a', 'area', 'base', 'form'],
358 384
    missing: '',
Files Coverage
packages 100.00%
Project Totals (81 files) 100.00%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading