Skip to content

Redirect Document DnD events to HTMLElement#20206

Merged
teoli2003 merged 3 commits intomdn:mainfrom
Elchi3:rm-document-dnd-events
Sep 1, 2022
Merged

Redirect Document DnD events to HTMLElement#20206
teoli2003 merged 3 commits intomdn:mainfrom
Elchi3:rm-document-dnd-events

Conversation

@Elchi3
Copy link
Member

@Elchi3 Elchi3 commented Sep 1, 2022

@foolip said in mdn/browser-compat-data#16556 (review):

Rather than add new entries, I think the drag* and drop events on Document should be moved to HTMLElement, since the target of these events are elements with the draggable attribute. In my testing it seems like it has to be HTML elements, not arbitrary elements.

@queengooborg opened a content PR for GlobalEventHandler redirects: #18286 but no redirects from Document to HTMLElement happened.

Meanwhile the BCD already removed the compat data for Document DnD events: mdn/browser-compat-data#16556. That's why these pages are now displayed without compat tables and spec sections.

So, this PR removes and redirects Document DnD events to HTMLELement.

I hope this makes sense in light of the event pages reorg.

@Elchi3 Elchi3 requested a review from queengooborg September 1, 2022 13:37
@Elchi3 Elchi3 requested review from a team as code owners September 1, 2022 13:37
@Elchi3 Elchi3 requested review from bsmth and jpmedley and removed request for a team September 1, 2022 13:37
@github-actions github-actions bot added the Content:WebAPI Web API docs label Sep 1, 2022
Copy link
Contributor

@teoli2003 teoli2003 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense to me.

Copy link
Contributor

@teoli2003 teoli2003 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are extra /s in the redirect file. This is because slugs don't start with / and yarn content delete --redirect don't prevent adding an extra /.

@Josh-Cena
Copy link
Member

Josh-Cena commented Sep 1, 2022

I can never remember which commands expect full URLs and which expect page slugs. Yari ought to make some effort to validate and/or normalize this.

@Elchi3
Copy link
Member Author

Elchi3 commented Sep 1, 2022

I can never remember which commands expect full URLs and which expect page slugs. Yari ought to make some effort to validate and/or normalize this.

Exactly this!! Plus yarn content validate-redirects is not enough, apparently CI does yarn content validate-redirects --strict, so I wonder why --strict isn't the default.

@teoli2003 teoli2003 merged commit 39ba478 into mdn:main Sep 1, 2022
@Elchi3 Elchi3 deleted the rm-document-dnd-events branch September 1, 2022 14:13
goshdarnheck pushed a commit to goshdarnheck/content that referenced this pull request Sep 7, 2022
* Redirect Document DnD events to HTMLElement

* Revert "Redirect Document DnD events to HTMLElement"

This reverts commit 5c655b4.

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

Labels

Content:WebAPI Web API docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants