Skip to content

Add 'as' keyword (#7543) - #7582

Merged
aweary merged 3 commits into
react:masterfrom
kevinslin:dev-link
Aug 30, 2016
Merged

aweary merged 3 commits into
react:masterfrom
kevinslin:dev-link

Conversation

@kevinslin

Copy link
Copy Markdown
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.

allowFullScreen: HAS_BOOLEAN_VALUE,
allowTransparency: 0,
alt: 0,
/* 'as' is introduced to links with 'preload' type: https://w3c.github.io/preload/ */

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.

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
Copy Markdown
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

allowFullScreen: HAS_BOOLEAN_VALUE,
allowTransparency: 0,
alt: 0,
// 'as' is keyword to links with 'preload' type

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.

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 react:master Aug 30, 2016
@aweary

aweary commented Aug 30, 2016

Copy link
Copy Markdown
Contributor

@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: react/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: react/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
mrizwanashiq pushed a commit to mrizwanashiq/react that referenced this pull request Jun 25, 2026
* Add 'as' keyword (react#7543)

* fix commenting to adhere to styling

* fix grammar in comment
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