Closed Bug 1973494 Opened 11 months ago Closed 10 months ago

Command & CommandFor only allows custom values starting with `--`

Categories

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

defect

Tracking

()

RESOLVED FIXED
142 Branch
Tracking Status
firefox142 --- fixed

People

(Reporter: keithamus, Assigned: keithamus)

References

(Blocks 1 open bug, )

Details

Attachments

(1 file)

"Custom values" are considered to have a - anywhere in the string, but this is not per spec, the spec dictates that custom command keywords should start with a double dash (--).

https://html.spec.whatwg.org/multipage/form-elements.html#attr-button-command-custom

Summary: Command & CommandFor allows values with `-` → Command & CommandFor only allows custom values starting with `--`
Pushed by amarc@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/f853b72f0f22 https://hg.mozilla.org/integration/autoland/rev/a10a9cf354cc Revert "Bug 1973494 - Only mark Custom commands as attrs that start with two dashes r=dom-core,edgar" for causing wpt failures @ command-and-commandfor/on-dialog-behavior.html

Backed out for causing wpt failures @ on-dialog-behavior.html

Flags: needinfo?(mozilla)
Flags: needinfo?(mozilla)
Severity: -- → S3
Status: ASSIGNED → RESOLVED
Closed: 10 months ago
Resolution: --- → FIXED
Target Milestone: --- → 142 Branch
QA Whiteboard: [qa-triage-done-c143/b142]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: