Skip to content

Commit

Permalink
Define HTMLInputElement#width/height/minLength
Browse files Browse the repository at this point in the history
  • Loading branch information
cscott committed Aug 2, 2018
1 parent 75382af commit cad347e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 79 deletions.
3 changes: 3 additions & 0 deletions lib/htmlelts.js
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,9 @@ define({
src: URL,
defaultChecked: {name: 'checked', type: Boolean},
size: {type: 'unsigned long', default: 20, min: 1, setmin: 1},
width: {type: 'unsigned long', min: 0, setmin: 0, default: 0},
height: {type: 'unsigned long', min: 0, setmin: 0, default: 0},
minLength: {type: 'unsigned long', min: 0, setmin: 0, default: -1},
maxLength: {type: 'unsigned long', min: 0, setmin: 0, default: -1},
autocomplete: String, // It's complicated
type: { type:
Expand Down
79 changes: 0 additions & 79 deletions test/web-platform-blacklist.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,89 +169,10 @@
"input.formAction: IDL set to null",
"input.formAction: IDL set to object \"test-toString\"",
"input.formAction: IDL set to object \"test-valueOf\"",
"input.height: typeof IDL attribute",
"input.height: IDL get with DOM attribute unset",
"input.height: IDL set to 0",
"input.height: IDL set to 1",
"input.height: IDL set to 257",
"input.height: IDL set to 2147483647",
"input.height: IDL set to \"-0\"",
"input.height: IDL set to 2147483648",
"input.height: IDL set to 4294967295",
"input.minLength: typeof IDL attribute",
"input.minLength: IDL get with DOM attribute unset",
"input.minLength: setAttribute() to -2147483649",
"input.minLength: setAttribute() to -2147483648",
"input.minLength: setAttribute() to -36",
"input.minLength: setAttribute() to -1",
"input.minLength: setAttribute() to -0",
"input.minLength: setAttribute() to 0",
"input.minLength: setAttribute() to 1",
"input.minLength: setAttribute() to 2147483647",
"input.minLength: setAttribute() to 2147483648",
"input.minLength: setAttribute() to 4294967295",
"input.minLength: setAttribute() to 4294967296",
"input.minLength: setAttribute() to \"\"",
"input.minLength: setAttribute() to \"-1\"",
"input.minLength: setAttribute() to \"-0\"",
"input.minLength: setAttribute() to \"0\"",
"input.minLength: setAttribute() to \"1\"",
"input.minLength: setAttribute() to \" \\0\\x01\\x02\\x03\\x04\\x05\\x06\\x07 \\b\\t\\n\\v\\f\\r\\x0e\\x0f \\x10\\x11\\x12\\x13\\x14\\x15\\x16\\x17 \\x18\\x19\\x1a\\x1b\\x1c\\x1d\\x1e\\x1f foo \"",
"input.minLength: setAttribute() to \"\\t7\"",
"input.minLength: setAttribute() to \"\\v7\"",
"input.minLength: setAttribute() to \"\\f7\"",
"input.minLength: setAttribute() to \" 7\"",
"input.minLength: setAttribute() to \" 7\"",
"input.minLength: setAttribute() to \"7\"",
"input.minLength: setAttribute() to \"\\n7\"",
"input.minLength: setAttribute() to \"\\r7\"",
"input.minLength: setAttribute() to \"
7\"",
"input.minLength: setAttribute() to \"
7\"",
"input.minLength: setAttribute() to \" 7\"",
"input.minLength: setAttribute() to \"᠎7\"",
"input.minLength: setAttribute() to \" 7\"",
"input.minLength: setAttribute() to \" 7\"",
"input.minLength: setAttribute() to \" 7\"",
"input.minLength: setAttribute() to \" 7\"",
"input.minLength: setAttribute() to \" 7\"",
"input.minLength: setAttribute() to \" 7\"",
"input.minLength: setAttribute() to \" 7\"",
"input.minLength: setAttribute() to \" 7\"",
"input.minLength: setAttribute() to \" 7\"",
"input.minLength: setAttribute() to \" 7\"",
"input.minLength: setAttribute() to \" 7\"",
"input.minLength: setAttribute() to \" 7\"",
"input.minLength: setAttribute() to \" 7\"",
"input.minLength: setAttribute() to undefined",
"input.minLength: setAttribute() to 1.5",
"input.minLength: setAttribute() to true",
"input.minLength: setAttribute() to false",
"input.minLength: setAttribute() to object \"[object Object]\"",
"input.minLength: setAttribute() to NaN",
"input.minLength: setAttribute() to Infinity",
"input.minLength: setAttribute() to -Infinity",
"input.minLength: setAttribute() to \"\\0\"",
"input.minLength: setAttribute() to object \"2\"",
"input.minLength: setAttribute() to object \"3\"",
"input.minLength: IDL set to -2147483648",
"input.minLength: IDL set to -36",
"input.minLength: IDL set to -1",
"input.minLength: IDL set to 0",
"input.minLength: IDL set to 1",
"input.minLength: IDL set to 2147483647",
"input.type: setAttribute() to \"weeK\"",
"input.type: setAttribute() to \"checKbox\"",
"input.type: IDL set to \"weeK\"",
"input.type: IDL set to \"checKbox\"",
"input.width: typeof IDL attribute",
"input.width: IDL get with DOM attribute unset",
"input.width: IDL set to 0",
"input.width: IDL set to 1",
"input.width: IDL set to 257",
"input.width: IDL set to 2147483647",
"input.width: IDL set to \"-0\"",
"input.width: IDL set to 2147483648",
"input.width: IDL set to 4294967295",
"button.formAction: typeof IDL attribute",
"button.formAction: IDL get with DOM attribute unset",
"button.formAction: setAttribute() to \"\"",
Expand Down

0 comments on commit cad347e

Please sign in to comment.