mirror of
https://github.com/hanzoai/react.git
synced 2026-09-24 17:02:27 +00:00
Remove allow transparency (#10823)
* Remove allowTransparency attribute `allowtransparency` is an Internet Explorer-only attribute that controls the background transparency of an iFrame. When set to true, it respects the background color of the iFrame. When set to false, it sets the background color to that of the document. This feature was removed in IE9 - falling out of React's support commitment. Developers that have somehow figured out how to get IE8 to work with React 16.x can still use `allowtransparency="true"`, since React now supports unrecognized attributes. * Use correct attribute script location * Use new UMD bundles in attribute fixtures * Update attribute snapshot * Blank for CI
This commit is contained in:
committed by
Dan Abramov
parent
c3d5ad4630
commit
9e7a907ae5
@@ -473,31 +473,6 @@
|
||||
| `allowReorder=(null)`| (initial)| `<null>` |
|
||||
| `allowReorder=(undefined)`| (initial)| `<null>` |
|
||||
|
||||
## `allowTransparency` (on `<path>` inside `<svg>`)
|
||||
| Test Case | Flags | Result |
|
||||
| --- | --- | --- |
|
||||
| `allowTransparency=(string)`| (changed)| `"a string"` |
|
||||
| `allowTransparency=(empty string)`| (changed)| `<empty string>` |
|
||||
| `allowTransparency=(array with string)`| (changed)| `"string"` |
|
||||
| `allowTransparency=(empty array)`| (changed)| `<empty string>` |
|
||||
| `allowTransparency=(object)`| (changed)| `"result of toString()"` |
|
||||
| `allowTransparency=(numeric string)`| (changed)| `"42"` |
|
||||
| `allowTransparency=(-1)`| (changed)| `"-1"` |
|
||||
| `allowTransparency=(0)`| (changed)| `"0"` |
|
||||
| `allowTransparency=(integer)`| (changed)| `"1"` |
|
||||
| `allowTransparency=(NaN)`| (changed, warning)| `"NaN"` |
|
||||
| `allowTransparency=(float)`| (changed)| `"99.99"` |
|
||||
| `allowTransparency=(true)`| (changed)| `"true"` |
|
||||
| `allowTransparency=(false)`| (changed)| `"false"` |
|
||||
| `allowTransparency=(string 'true')`| (changed)| `"true"` |
|
||||
| `allowTransparency=(string 'false')`| (changed)| `"false"` |
|
||||
| `allowTransparency=(string 'on')`| (changed)| `"on"` |
|
||||
| `allowTransparency=(string 'off')`| (changed)| `"off"` |
|
||||
| `allowTransparency=(symbol)`| (initial, warning, ssr error, ssr mismatch)| `<null>` |
|
||||
| `allowTransparency=(function)`| (initial, warning, ssr mismatch)| `<null>` |
|
||||
| `allowTransparency=(null)`| (initial)| `<null>` |
|
||||
| `allowTransparency=(undefined)`| (initial)| `<null>` |
|
||||
|
||||
## `alphabetic` (on `<font-face>` inside `<svg>`)
|
||||
| Test Case | Flags | Result |
|
||||
| --- | --- | --- |
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
## Instructions
|
||||
|
||||
`cd scripts/attribute-behavior && yarn install && yarn start`
|
||||
`cd fixtures/attribute-behavior && yarn install && yarn start`
|
||||
|
||||
## Interpretation
|
||||
|
||||
|
||||
@@ -753,9 +753,9 @@ class App extends React.Component {
|
||||
|
||||
async componentDidMount() {
|
||||
const sources = {
|
||||
ReactStable: 'https://unpkg.com/react@latest/dist/react.js',
|
||||
ReactDOMStable: 'https://unpkg.com/react-dom@latest/dist/react-dom.js',
|
||||
ReactDOMServerStable: 'https://unpkg.com/react-dom@latest/dist/react-dom-server.js',
|
||||
ReactStable: 'https://unpkg.com/react@latest/umd/react.development.js',
|
||||
ReactDOMStable: 'https://unpkg.com/react-dom@latest/umd/react-dom.development.js',
|
||||
ReactDOMServerStable: 'https://unpkg.com/react-dom@latest/umd/react-dom-server.browser.development.js',
|
||||
ReactNext: '/react.development.js',
|
||||
ReactDOMNext: '/react-dom.development.js',
|
||||
ReactDOMServerNext: '/react-dom-server.browser.development.js',
|
||||
|
||||
@@ -92,12 +92,6 @@ const attributes = [
|
||||
tagName: 'switch',
|
||||
read: getSVGAttribute('allowReorder'),
|
||||
},
|
||||
{
|
||||
name: 'allowTransparency',
|
||||
containerTagName: 'svg',
|
||||
tagName: 'path',
|
||||
read: getSVGAttribute('allowtransparency'),
|
||||
},
|
||||
{
|
||||
name: 'alphabetic',
|
||||
containerTagName: 'svg',
|
||||
|
||||
@@ -26,9 +26,6 @@ var HTMLDOMPropertyConfig = {
|
||||
// name warnings.
|
||||
Properties: {
|
||||
allowFullScreen: HAS_BOOLEAN_VALUE,
|
||||
// IE only true/false iFrame attribute
|
||||
// https://msdn.microsoft.com/en-us/library/ms533072(v=vs.85).aspx
|
||||
allowTransparency: HAS_STRING_BOOLEAN_VALUE,
|
||||
// specifies target context for links with `preload` type
|
||||
async: HAS_BOOLEAN_VALUE,
|
||||
// autoFocus is polyfilled/normalized by AutoFocusUtils
|
||||
|
||||
@@ -18,7 +18,6 @@ var possibleStandardNames = {
|
||||
accesskey: 'accessKey',
|
||||
action: 'action',
|
||||
allowfullscreen: 'allowFullScreen',
|
||||
allowtransparency: 'allowTransparency',
|
||||
alt: 'alt',
|
||||
as: 'as',
|
||||
async: 'async',
|
||||
|
||||
Reference in New Issue
Block a user