Skip to content

Commit

Permalink
Verify html[version] result by adding html[lang]
Browse files Browse the repository at this point in the history
`version` is obsolete so I was hoping this result doesn't matter.
But `lang`  has the same behavior i.e. isn't added to the DOM on the client
  • Loading branch information
eps1lon committed Feb 10, 2023
1 parent 5f9e4ff commit 3273bd1
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
25 changes: 25 additions & 0 deletions fixtures/attribute-behavior/AttributeTableSnapshot.md
Original file line number Diff line number Diff line change
Expand Up @@ -6198,6 +6198,31 @@
| `lang=(null)`| (initial)| `<empty string>` |
| `lang=(undefined)`| (initial)| `<empty string>` |

## `lang` (on `<html>` inside `<document>`)
| Test Case | Flags | Result |
| --- | --- | --- |
| `lang=(string)`| (initial, ssr mismatch)| `<undefined>` |
| `lang=(empty string)`| (initial, ssr mismatch)| `<undefined>` |
| `lang=(array with string)`| (initial, ssr mismatch)| `<undefined>` |
| `lang=(empty array)`| (initial, ssr mismatch)| `<undefined>` |
| `lang=(object)`| (initial, ssr mismatch)| `<undefined>` |
| `lang=(numeric string)`| (initial, ssr mismatch)| `<undefined>` |
| `lang=(-1)`| (initial, ssr mismatch)| `<undefined>` |
| `lang=(0)`| (initial, ssr mismatch)| `<undefined>` |
| `lang=(integer)`| (initial, ssr mismatch)| `<undefined>` |
| `lang=(NaN)`| (initial, warning, ssr mismatch)| `<undefined>` |
| `lang=(float)`| (initial, ssr mismatch)| `<undefined>` |
| `lang=(true)`| (initial, warning, ssr mismatch)| `<undefined>` |
| `lang=(false)`| (initial, warning, ssr mismatch)| `<undefined>` |
| `lang=(string 'true')`| (initial, ssr mismatch)| `<undefined>` |
| `lang=(string 'false')`| (initial, ssr mismatch)| `<undefined>` |
| `lang=(string 'on')`| (initial, ssr mismatch)| `<undefined>` |
| `lang=(string 'off')`| (initial, ssr mismatch)| `<undefined>` |
| `lang=(symbol)`| (initial, warning, ssr mismatch)| `<undefined>` |
| `lang=(function)`| (initial, warning, ssr mismatch)| `<undefined>` |
| `lang=(null)`| (initial, ssr mismatch)| `<undefined>` |
| `lang=(undefined)`| (initial, ssr mismatch)| `<undefined>` |

## `length` (on `<div>` inside `<div>`)
| Test Case | Flags | Result |
| --- | --- | --- |
Expand Down
1 change: 1 addition & 0 deletions fixtures/attribute-behavior/src/attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -1086,6 +1086,7 @@ const attributes = [
{name: 'label', tagName: 'track'},
{name: 'LANG', read: getProperty('lang')},
{name: 'lang'},
{name: 'lang', containerTagName: 'document', tagName: 'html'},
{name: 'length', read: getAttribute('length')},
{
name: 'lengthAdjust',
Expand Down

0 comments on commit 3273bd1

Please sign in to comment.