Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add table of attribute behavior #10536

Merged
merged 37 commits into from
Aug 25, 2017
Merged

Conversation

acdlite
Copy link
Collaborator

@acdlite acdlite commented Aug 24, 2017

There are many "special cases" of attributes that React may recognize and treat in different ways. For each of these cases, we must consider common mis-capitalizations and alternative formats for the attribute name. For all possible value types, we need to verify that any changes between React 15 and 16 are intentional and understood.

This is an unpolished MVP of a fixture to compare the behavior between React 15 and 16 for every possible value type for each attribute name.

This will be useful for verifying and understanding the changed made in:
2999811
5ba1803
35859df

@gaearon
Copy link
Collaborator

gaearon commented Aug 24, 2017

😮

@gaearon
Copy link
Collaborator

gaearon commented Aug 25, 2017

Should this live in fixtures rather than scripts?

@acdlite
Copy link
Collaborator Author

acdlite commented Aug 25, 2017

Probably, I just threw it together. It's pretty messy right now. We're trying to get the simplest, most MVP version complete for the release.

@gaearon
Copy link
Collaborator

gaearon commented Aug 25, 2017

Yea, fair enough, didn’t mean it’s important 😛

@acdlite
Copy link
Collaborator Author

acdlite commented Aug 25, 2017

Originally it was going to be a normal node script that printed out a table until we realized that we'd have to special case every single attribute :D

# Conflicts:
#	scripts/attribute-behavior/src/App.js
sebmarkbage and others added 4 commits August 25, 2017 01:05
Tests different input types and valueAsNumber property. This value is often
NaN. To compare that we also need to switch to Object.is.
**what is the change?:**
We checked in bundles of React v15 to run comparisons of attribute
behavior on DOM elements between 15 and 16.

This commit tells prettier and eslint to ignore those files, and fixes a
prettier lint in one other file from that fixture.

**why make this change?:**
To get CI passing.

**test plan:**
`yarn prettier` doesn't change anything, eslint passes

**issue:**
@flarnie flarnie changed the title [WIP] Table of attribute behavior Add table of attribute behavior Aug 25, 2017
@flarnie flarnie merged commit 5f71165 into facebook:master Aug 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants