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 'as' keyword (#7543) #7582

Merged
merged 3 commits into from
Aug 30, 2016
Merged

Add 'as' keyword (#7543) #7582

merged 3 commits into from
Aug 30, 2016

Conversation

kevinslin
Copy link
Contributor

Before submitting a pull request, please make sure the following is done...

  1. Fork the repo and create your branch from master.
  2. If you've added code that should be tested, add tests!
  3. If you've changed APIs, update the documentation.
  4. Ensure the test suite passes (grunt test).
  5. Make sure your code lints (grunt lint) - we've done our best to make sure these rules match our internal linting guidelines.
  6. If you haven't already, complete the CLA.

@@ -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/ */
Copy link
Contributor

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 👍

Copy link
Contributor Author

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
Copy link
Contributor

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 👍

@aweary aweary added this to the 15-next milestone Aug 30, 2016
@aweary aweary merged commit c85f463 into facebook:master Aug 30, 2016
@aweary
Copy link
Contributor

aweary commented Aug 30, 2016

@kevinslin thanks again!

@zpao zpao modified the milestones: 15.3.2, 15-next Sep 8, 2016
zpao pushed a commit that referenced this pull request Sep 15, 2016
* Add 'as' keyword (#7543)

* fix commenting to adhere to styling

* fix grammar in comment

(cherry picked from commit c85f463)
kaelig added a commit to kaelig/DefinitelyTyped that referenced this pull request Oct 17, 2017
See corresponding addition here: facebook/react#7582
johnnyreilly pushed a commit to DefinitelyTyped/DefinitelyTyped that referenced this pull request Oct 22, 2017
* 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)
awkay pushed a commit to fulcrologic/fulcro that referenced this pull request Dec 3, 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.

3 participants