Skip to content

Migrate HTMLInputElement - #2338

Merged
github-actions[bot] merged 7 commits into
microsoft:mainfrom
Bashamega:html-input
Dec 30, 2025
Merged

Migrate HTMLInputElement #2338
github-actions[bot] merged 7 commits into
microsoft:mainfrom
Bashamega:html-input

Conversation

@Bashamega

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions

Copy link
Copy Markdown
Contributor

Thanks for the PR!

This section of the codebase is owned by Kagami Sascha Rosylight (@saschanaz) - if they write a comment saying "LGTM" then it will be merged.

Comment thread inputfiles/addedTypes.jsonc Outdated
"overrideType": "AutoFillBase | `${OptionalPrefixToken<AutoFillSection>}${OptionalPrefixToken<AutoFillAddressKind>}${AutoFillField}${OptionalPostfixToken<AutoFillCredentialField>}`"
},
{
"name": "Directions",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have a plan to remove that again?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For now, let's keep it in the JSON until we migrate because we still don't have support for type defs in KDL

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Maybe something like SelectionDirection to prevent future conflict.
  2. Maybe do the KDL work first to prevent back and forth?

@saschanaz

Copy link
Copy Markdown
Contributor

Can you say maybe HTMLInputElement or something to be more clear for the title?

@Bashamega Adam Naji (Bashamega) changed the title Migrate HTML Input Migrate HTMLInputElement Dec 30, 2025
@Bashamega

Adam Naji (Bashamega) commented Dec 30, 2025

Copy link
Copy Markdown
Contributor Author

Done

Comment thread src/build/patches.ts Outdated
name,
...optionalMember("type", "string", node.properties?.type),
...optionalMember("overrideType", "string", node.properties?.overrideType),
...optionalMember("nullable", "boolean", node.properties?.nullable),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is part of Typed and that should be handled by type node.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Added comments to clarify nullable types in setSelectionRange method.
}
}
property autocomplete type=AutoFill
property valueAsDate type=Date

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure this should be allowed, Date is not an IDL type. But maybe not worth disallowing it... Let's see.

@saschanaz

Copy link
Copy Markdown
Contributor

LGTM

@github-actions
github-actions Bot merged commit 2ce135a into microsoft:main Dec 30, 2025
7 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Merging because Kagami Sascha Rosylight (@saschanaz) is a code-owner of all the changes - thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants