Skip to content

Add controlList to DOM property whitelist - #9940

Merged
nhunzaker merged 1 commit into
react:masterfrom
nhunzaker:gh-9594-control-list-attribute
Jun 13, 2017
Merged

Add controlList to DOM property whitelist#9940
nhunzaker merged 1 commit into
react:masterfrom
nhunzaker:gh-9594-control-list-attribute

Conversation

@nhunzaker

Copy link
Copy Markdown
Contributor

Addresses #9594. Long term, we can ignore this sort of stuff, but the attribute white list change hasn't landed (will it for 15.x?).

Testing:

I've hoisted this build of React on surge.sh and setup a fiddle:
https://jsfiddle.net/84v837e9/88/

The video tag should correctly receive the controlList attribute.

More info:

@awearyaweary left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, pending doc fix

Comment threaddocs/docs/reference-dom-elements.md Outdated
charSet checked cite classID className colSpan cols content contentEditable
contextMenu controls coords crossOrigin data dateTime default defer dir
disabled download draggable encType form formAction formEncType formMethod
contextMenu controls controlList coords crossOrigin data dateTime default defer

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This should be "controlsList" right?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

🤦‍♂️

@nhunzaker
nhunzakerforce-pushed the gh-9594-control-list-attribute branch from 08e8f9b to 331ef3eCompareJune 13, 2017 01:07
@nhunzaker

Copy link
Copy Markdown
ContributorAuthor

Got it. I'll cherry pick to 15.6

@nhunzaker
nhunzaker merged commit d715765 into react:masterJun 13, 2017
@awearyaweary mentioned this pull request Jul 13, 2017
12 tasks
@nhunzakernhunzaker mentioned this pull request Aug 10, 2017
11 tasks
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@nhunzaker@aweary@facebook-github-bot