Skip to content

form elements within a <template/> are not isolated #455

Description

@Jaaap

if you have a form with a template like this:

<form>
	<input type="radio" name="rad" value="1" checked/>
	<input type="radio" name="rad" value="2"/>
	<template id="mytempl">
		<input type="radio" name="rad" value="3" checked/>
		<input type="radio" name="rad" value="4"/>
	</template>
</form>

the inputs in the template should have no effect on the form but they do.

Actual result:

document.queryselector('input[name="rad"][value="1"]').checked === false // because #3 is the last checked radio

Expected result:

document.queryselector('input[name="rad"][value="1"]').checked === true

No activity

Activity on this issue will appear here.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions