Closed Bug 1862817 Opened 1 year ago Closed 1 year ago

Textarea elements that initially render in a fieldset with attribute disabled are not editable when the disable attribute is later removed

Categories

(Core :: DOM: Core & HTML, defect)

Firefox 119
defect

Tracking

()

RESOLVED DUPLICATE of bug 1861027

People

(Reporter: mechanism, Unassigned)

Details

Steps to reproduce:

While the textarea accepts focus after the disabled attribute is removed from the fieldset, you cannot enter text.

Example:

<html lang="en">
<head></head>
<body>
<fieldset disabled id="with_fieldset">
<textarea></textarea>
</fieldset>

    <textarea id="without_fieldset" disabled></textarea>

    <script>
        const everything = document.querySelectorAll('*');
        setTimeout( () => everything.forEach((el) => el.removeAttribute('disabled')), 1000);
    </script>
</body>

</html>

User agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/119.0

Actual results:

Textarea elements do not accept input after being dynamically enabled

Expected results:

Textarea elements should accept input upon removal of the disabled attribute

The Bugbug bot thinks this bug should belong to the 'Core::DOM: Core & HTML' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core

This was fixed in Nightly121.0a1 and Firefox120.0b5 by Bug 1861027.

Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1861027
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.