diff --git a/fixtures/attribute-behavior/AttributeTableSnapshot.md b/fixtures/attribute-behavior/AttributeTableSnapshot.md index 6a605155afca6..89e126ba234cf 100644 --- a/fixtures/attribute-behavior/AttributeTableSnapshot.md +++ b/fixtures/attribute-behavior/AttributeTableSnapshot.md @@ -6201,27 +6201,27 @@ ## `lang` (on `` inside ``) | Test Case | Flags | Result | | --- | --- | --- | -| `lang=(string)`| (initial, ssr mismatch)| `` | -| `lang=(empty string)`| (initial, ssr mismatch)| `` | -| `lang=(array with string)`| (initial, ssr mismatch)| `` | -| `lang=(empty array)`| (initial, ssr mismatch)| `` | -| `lang=(object)`| (initial, ssr mismatch)| `` | -| `lang=(numeric string)`| (initial, ssr mismatch)| `` | -| `lang=(-1)`| (initial, ssr mismatch)| `` | -| `lang=(0)`| (initial, ssr mismatch)| `` | -| `lang=(integer)`| (initial, ssr mismatch)| `` | -| `lang=(NaN)`| (initial, warning, ssr mismatch)| `` | -| `lang=(float)`| (initial, ssr mismatch)| `` | -| `lang=(true)`| (initial, warning, ssr mismatch)| `` | -| `lang=(false)`| (initial, warning, ssr mismatch)| `` | -| `lang=(string 'true')`| (initial, ssr mismatch)| `` | -| `lang=(string 'false')`| (initial, ssr mismatch)| `` | -| `lang=(string 'on')`| (initial, ssr mismatch)| `` | -| `lang=(string 'off')`| (initial, ssr mismatch)| `` | -| `lang=(symbol)`| (initial, warning, ssr mismatch)| `` | -| `lang=(function)`| (initial, warning, ssr mismatch)| `` | -| `lang=(null)`| (initial, ssr mismatch)| `` | -| `lang=(undefined)`| (initial, ssr mismatch)| `` | +| `lang=(string)`| (changed, ssr mismatch)| `"a string"` | +| `lang=(empty string)`| (initial)| `` | +| `lang=(array with string)`| (changed, ssr mismatch)| `"string"` | +| `lang=(empty array)`| (initial)| `` | +| `lang=(object)`| (changed, ssr mismatch)| `"result of toString()"` | +| `lang=(numeric string)`| (changed, ssr mismatch)| `"42"` | +| `lang=(-1)`| (changed, ssr mismatch)| `"-1"` | +| `lang=(0)`| (changed, ssr mismatch)| `"0"` | +| `lang=(integer)`| (changed, ssr mismatch)| `"1"` | +| `lang=(NaN)`| (changed, warning, ssr mismatch)| `"NaN"` | +| `lang=(float)`| (changed, ssr mismatch)| `"99.99"` | +| `lang=(true)`| (initial, warning)| `` | +| `lang=(false)`| (initial, warning)| `` | +| `lang=(string 'true')`| (changed, ssr mismatch)| `"true"` | +| `lang=(string 'false')`| (changed, ssr mismatch)| `"false"` | +| `lang=(string 'on')`| (changed, ssr mismatch)| `"on"` | +| `lang=(string 'off')`| (changed, ssr mismatch)| `"off"` | +| `lang=(symbol)`| (initial, warning)| `` | +| `lang=(function)`| (initial, warning)| `` | +| `lang=(null)`| (initial)| `` | +| `lang=(undefined)`| (initial)| `` | ## `length` (on `
` inside `
`) | Test Case | Flags | Result | @@ -12276,27 +12276,27 @@ ## `version` (on `` inside ``) | Test Case | Flags | Result | | --- | --- | --- | -| `version=(string)`| (initial, ssr mismatch)| `` | -| `version=(empty string)`| (initial, ssr mismatch)| `` | -| `version=(array with string)`| (initial, ssr mismatch)| `` | -| `version=(empty array)`| (initial, ssr mismatch)| `` | -| `version=(object)`| (initial, ssr mismatch)| `` | -| `version=(numeric string)`| (initial, ssr mismatch)| `` | -| `version=(-1)`| (initial, ssr mismatch)| `` | -| `version=(0)`| (initial, ssr mismatch)| `` | -| `version=(integer)`| (initial, ssr mismatch)| `` | -| `version=(NaN)`| (initial, warning, ssr mismatch)| `` | -| `version=(float)`| (initial, ssr mismatch)| `` | -| `version=(true)`| (initial, warning, ssr mismatch)| `` | -| `version=(false)`| (initial, warning, ssr mismatch)| `` | -| `version=(string 'true')`| (initial, ssr mismatch)| `` | -| `version=(string 'false')`| (initial, ssr mismatch)| `` | -| `version=(string 'on')`| (initial, ssr mismatch)| `` | -| `version=(string 'off')`| (initial, ssr mismatch)| `` | -| `version=(symbol)`| (initial, warning, ssr mismatch)| `` | -| `version=(function)`| (initial, warning, ssr mismatch)| `` | -| `version=(null)`| (initial, ssr mismatch)| `` | -| `version=(undefined)`| (initial, ssr mismatch)| `` | +| `version=(string)`| (changed, ssr mismatch)| `"a string"` | +| `version=(empty string)`| (initial)| `` | +| `version=(array with string)`| (changed, ssr mismatch)| `"string"` | +| `version=(empty array)`| (initial)| `` | +| `version=(object)`| (changed, ssr mismatch)| `"result of toString()"` | +| `version=(numeric string)`| (changed, ssr mismatch)| `"42"` | +| `version=(-1)`| (changed, ssr mismatch)| `"-1"` | +| `version=(0)`| (changed, ssr mismatch)| `"0"` | +| `version=(integer)`| (changed, ssr mismatch)| `"1"` | +| `version=(NaN)`| (changed, warning, ssr mismatch)| `"NaN"` | +| `version=(float)`| (changed, ssr mismatch)| `"99.99"` | +| `version=(true)`| (initial, warning)| `` | +| `version=(false)`| (initial, warning)| `` | +| `version=(string 'true')`| (changed, ssr mismatch)| `"true"` | +| `version=(string 'false')`| (changed, ssr mismatch)| `"false"` | +| `version=(string 'on')`| (changed, ssr mismatch)| `"on"` | +| `version=(string 'off')`| (changed, ssr mismatch)| `"off"` | +| `version=(symbol)`| (initial, warning)| `` | +| `version=(function)`| (initial, warning)| `` | +| `version=(null)`| (initial)| `` | +| `version=(undefined)`| (initial)| `` | ## `version` (on `` inside `
`) | Test Case | Flags | Result | diff --git a/fixtures/attribute-behavior/src/App.js b/fixtures/attribute-behavior/src/App.js index 5f1bac46e4887..db77eba907c5a 100644 --- a/fixtures/attribute-behavior/src/App.js +++ b/fixtures/attribute-behavior/src/App.js @@ -284,12 +284,12 @@ function getRenderedAttributeValue( try { let container = createContainer(); renderer.render(react.createElement(tagName, baseProps), container); - defaultValue = read(container.firstChild); + defaultValue = read(container.lastChild); canonicalDefaultValue = getCanonicalizedValue(defaultValue); container = createContainer(); renderer.render(react.createElement(tagName, props), container); - result = read(container.firstChild); + result = read(container.lastChild); canonicalResult = getCanonicalizedValue(result); didWarn = _didWarn; didError = false;