mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
89944512a27f1920ae5000c15e6b4f6fa9ca3bee
We disallow empty strings for `href` and `src` since they're common
mistakes that end up loading the current page as a preload, image or
link. We also disallow it for `action`. You have to pass `null` which is
the same.
However, for `formAction` passing `null` is not the same as passing
empty string. Passing empty string overrides the form's action to be the
current page even if the form's action was set to something else.
There's no easy way to express the same thing `#` show up in the user
visible URLs and `?` clears the search params.
Since this is also not a common mistake, we can just allow this.
DiffTrain build for [2788d0d8dd](https://github.com/facebook/react/commit/2788d0d8dd95ed57e2dbb148853fe69010e992fe)
Please do not delete this branch
Languages
JavaScript
67.1%
TypeScript
29.4%
HTML
1.5%
CSS
1.1%
C++
0.6%
Other
0.2%