-
Notifications
You must be signed in to change notification settings - Fork 47k
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 'as' keyword (#7543) #7582
Add 'as' keyword (#7543) #7582
Conversation
@@ -36,6 +36,8 @@ var HTMLDOMPropertyConfig = { | |||
allowFullScreen: HAS_BOOLEAN_VALUE, | |||
allowTransparency: 0, | |||
alt: 0, | |||
/* 'as' is introduced to links with 'preload' type: https://w3c.github.io/preload/ */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick, but can you use a single line comment instead of a block comment? Just so it's consistent. Also, I think you can just remove the link to the W3C standard 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, definitely. changed and pushed
@@ -36,6 +36,8 @@ var HTMLDOMPropertyConfig = { | |||
allowFullScreen: HAS_BOOLEAN_VALUE, | |||
allowTransparency: 0, | |||
alt: 0, | |||
// 'as' is keyword to links with 'preload' type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One last thing: I think the grammar might be a little bit confusing as-is. Can we change this to:
// specifies target context for links with `preload` type
That's more in line with how the spec describes it as well. After that I think we can merge 👍
@kevinslin thanks again! |
See corresponding addition here: facebook/react#7582
* Add "as" attribute to links See corresponding addition here: facebook/react#7582 * Add "as" attribute to link elements in React v16 definition * Turn commas into semicolons (React 15) * Turn commas into semicolons (React 16)
Before submitting a pull request, please make sure the following is done...
master
.grunt test
).grunt lint
) - we've done our best to make sure these rules match our internal linting guidelines.