Skip to content

Commit 5b17629

Browse files
committed
chore: use setAttribute
Signed-off-by: Logan McAnsh <[email protected]>
1 parent c4a9738 commit 5b17629

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/form-data/test/form-data.spec.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,10 @@ export const test = (test) => {
244244
const insideInput = document.createElement("input");
245245
const outsideInput = document.createElement("input");
246246

247-
// `form` on an input is "read-only"
248-
outsideInput.innerHTML = `<input type="text" name="form" value="outside" form="my-form">`;
247+
outsideInput.type = "text";
248+
outsideInput.name = "form";
249+
outsideInput.value = "outside";
250+
outsideInput.setAttribute("form", "my-form");
249251

250252
insideInput.type = "text";
251253
insideInput.name = "form";

0 commit comments

Comments
 (0)