[HTMLConstructor] should be an extended attribute on constructor operations
Categories
(Core :: DOM: Bindings (WebIDL), task, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox71 | --- | fixed |
People
(Reporter: saschanaz, Assigned: bzbarsky)
References
Details
Attachments
(1 file)
Currently it's for interfaces but per the updated spec it now must be used for constructors. Just a syntax change without any observable behavior difference.
![]() |
Assignee | |
Updated•4 years ago
|
![]() |
Assignee | |
Comment 1•4 years ago
|
||
The changes to the IDL files were done by running this in dom/webidl:
perl -pi -e 'BEGIN { $/ = undef; } s/[HTMLConstructor,\n Exposed=Window]\ninterface ([A-Za-z]+) : HTMLElement {/[Exposed=Window]\ninterface \1 : HTMLElement{\n [HTMLConstructor] constructor();\n/g' *.webidl
and then fixing any remaining parser failures. That involved hand-editing the
following files:
TestCodeGen.webidl
XULFrameElement.webidl
XULMenuElement.webidl
XULTextElement.webidl
XULTreeElement.webidl
HTMLAudioElement.webidl
HTMLDialogElement.webidl
HTMLElement.webidl
HTMLEmbedElement.webidl
HTMLFormElement.webidl
HTMLImageElement.webidl
HTMLObjectElement.webidl
HTMLOptionElement.webidl
HTMLSlotElement.webidl
HTMLVideoElement.webidl
XULElement.webidl
XULPopupElement.webidl
Pushed by bzbarsky@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b8905d33a7c0 Convert [HTMLConstructor] to being an extended attribute on constructor operations. r=edgar
Comment 3•4 years ago
|
||
bugherder |
Updated•4 years ago
|
Description
•