@samitouri / QOS-React / commits / 9ff3ce67ea

Add noModule boolean attribute (#11900)

Brandon Dail committed Dec 22, 2017 at 10:18 UTC 9ff3ce67eaf07e8f62704133a8d748f1c0679a59
4 files changed +28
fixtures/attribute-behavior/AttributeTableSnapshot.md
+25
@@ -7173,6 +7173,31 @@
7173 | `nonce=(null)`| (initial)| `<null>` |
7174 | `nonce=(undefined)`| (initial)| `<null>` |
7175
7176 +## `noModule` (on `<script>` inside `<div>`)
7177 +| Test Case | Flags | Result |
7178 +| --- | --- | --- |
7179 +| `noModule=(string)`| (changed)| `<boolean: true>` |
7180 +| `noModule=(empty string)`| (initial)| `<boolean: false>` |
7181 +| `noModule=(array with string)`| (changed)| `<boolean: true>` |
7182 +| `noModule=(empty array)`| (changed)| `<boolean: true>` |
7183 +| `noModule=(object)`| (changed)| `<boolean: true>` |
7184 +| `noModule=(numeric string)`| (changed)| `<boolean: true>` |
7185 +| `noModule=(-1)`| (changed)| `<boolean: true>` |
7186 +| `noModule=(0)`| (initial)| `<boolean: false>` |
7187 +| `noModule=(integer)`| (changed)| `<boolean: true>` |
7188 +| `noModule=(NaN)`| (initial, warning)| `<boolean: false>` |
7189 +| `noModule=(float)`| (changed)| `<boolean: true>` |
7190 +| `noModule=(true)`| (changed)| `<boolean: true>` |
7191 +| `noModule=(false)`| (initial)| `<boolean: false>` |
7192 +| `noModule=(string 'true')`| (changed)| `<boolean: true>` |
7193 +| `noModule=(string 'false')`| (changed)| `<boolean: true>` |
7194 +| `noModule=(string 'on')`| (changed)| `<boolean: true>` |
7195 +| `noModule=(string 'off')`| (changed)| `<boolean: true>` |
7196 +| `noModule=(symbol)`| (initial, warning)| `<boolean: false>` |
7197 +| `noModule=(function)`| (initial, warning)| `<boolean: false>` |
7198 +| `noModule=(null)`| (initial)| `<boolean: false>` |
7199 +| `noModule=(undefined)`| (initial)| `<boolean: false>` |
7200 +
7201 ## `noValidate` (on `<form>` inside `<div>`)
7202 | Test Case | Flags | Result |
7203 | --- | --- | --- |
fixtures/attribute-behavior/src/attributes.js
+1
@@ -1222,6 +1222,7 @@ const attributes = [
1222 tagName: 'color-profile',
1223 read: getSVGAttribute('color-profile'),
1224 },
1225 + {name: 'noModule', tagName: 'script'},
1226 {name: 'nonce', read: getAttribute('nonce')},
1227 {name: 'noValidate', tagName: 'form'},
1228 {
packages/react-dom/src/shared/DOMProperty.js
+1
@@ -281,6 +281,7 @@ new Map([
281 'formNoValidate',
282 'hidden',
283 'loop',
284 + 'noModule',
285 'noValidate',
286 'open',
287 'playsInline',
packages/react-dom/src/shared/possibleStandardNames.js
+1
@@ -106,6 +106,7 @@ const possibleStandardNames = {
106 multiple: 'multiple',
107 muted: 'muted',
108 name: 'name',
109 + nomodule: 'noModule',
110 nonce: 'nonce',
111 novalidate: 'noValidate',
112 open: 'open',