Skip to content

Tweak the argument names of MessageEvent.initMessageEvent() - #223

Merged
annevk merged 1 commit into
masterfrom
initMessageEvent
Oct 5, 2015
Merged

annevk merged 1 commit into
masterfrom
initMessageEvent

Conversation

@foolip

@foolip foolip commented Oct 2, 2015

Copy link
Copy Markdown
Member

@foolip

foolip commented Oct 2, 2015

Copy link
Copy Markdown
Member Author

On a related note, I see that Gecko is the only engine to not implement initMessageEvent(). If you really don't want to implement it, usage is low enough to try removing it:
https://www.chromestatus.com/metrics/feature/timeline/popularity/222

@annevk

annevk commented Oct 2, 2015

Copy link
Copy Markdown
Member

I would definitely prefer it if we had less initMessageEvent methods around. Perhaps we can try that first before merging this?

@foolip

foolip commented Oct 2, 2015

Copy link
Copy Markdown
Member Author

Well, how badly do the Gecko implementors want to avoid implementing this? Having it implemented in Gecko would certainly be the fastest way to interop, and it's not like we can get rid of all init*Event() methods anyway.

@annevk

annevk commented Oct 2, 2015

Copy link
Copy Markdown
Member

@smaug----?

@smaug----

Copy link
Copy Markdown

So we used to have initMessageEvent, but https://bugzilla.mozilla.org/show_bug.cgi?id=848294 removed it. I don't actually know why. Was initMessageEvent not in the spec at that point?
But anyhow, I don't think I've seen any bugs about not supporting initMessageEvent.

@smaug----

Copy link
Copy Markdown

@bakulf?

@annevk

annevk commented Oct 2, 2015

Copy link
Copy Markdown
Member

It was removed from the specification at some point, yes. Since it should never have been added to begin with.

@smaug----

Copy link
Copy Markdown

Why was it added back?

@annevk

annevk commented Oct 2, 2015

Copy link
Copy Markdown
Member

@foolip

foolip commented Oct 3, 2015

Copy link
Copy Markdown
Member Author

OK, so I guess now we hope that https://bugzilla.mozilla.org/show_bug.cgi?id=949376 is fixed and leave the spec as is?

@annevk

annevk commented Oct 4, 2015

Copy link
Copy Markdown
Member

@foolip is this the only event that uses this style for the arguments in the HTML standard?

@smaug----

Copy link
Copy Markdown

I don't know why almost two years old https://bugzilla.mozilla.org/show_bug.cgi?id=949376 should be fixed.
Any reason why initMessageEvent isn't just removed from the spec?

@annevk

annevk commented Oct 4, 2015

Copy link
Copy Markdown
Member

Yes: https://www.w3.org/Bugs/Public/show_bug.cgi?id=25491#c7. Also, it seems we lack an implementation to follow Gecko here and drop it.

@smaug----

Copy link
Copy Markdown

https://www.w3.org/Bugs/Public/show_bug.cgi?id=25491#c7 doesn't talk about init*Event.
It is possible that createEvent is just used as a feature testing.

@foolip

foolip commented Oct 4, 2015

Copy link
Copy Markdown
Member Author

@annevk, this is the only init*Event() method in the HTML spec at all, so it's more for consistency with DOM than with anything in HTML.

@annevk

annevk commented Oct 5, 2015

Copy link
Copy Markdown
Member

@smaug---- I think if we want to remove this we'd need to convince the other vendors to remove this. Since this PR is about changing the argument names I'll go ahead and merge.

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants