Skip to content

Commit 08f1262

Browse files
committed
Merge pull request facebook#3507 from dpellier/master
Add scoped property to the list of DOM standard properties
1 parent 01fa23b commit 08f1262

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

docs/docs/ref-04-tags-and-attributes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ formAction formEncType formMethod formNoValidate formTarget frameBorder height
6060
hidden href hrefLang htmlFor httpEquiv icon id label lang list loop manifest
6161
marginHeight marginWidth max maxLength media mediaGroup method min multiple
6262
muted name noValidate open pattern placeholder poster preload radioGroup
63-
readOnly rel required role rows rowSpan sandbox scope scrolling seamless
63+
readOnly rel required role rows rowSpan sandbox scope scoped scrolling seamless
6464
selected shape size sizes span spellCheck src srcDoc srcSet start step style
6565
tabIndex target title type useMap value width wmode
6666
```

src/browser/ui/dom/HTMLDOMPropertyConfig.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ var HTMLDOMPropertyConfig = {
134134
rowSpan: null,
135135
sandbox: null,
136136
scope: null,
137+
scoped: HAS_BOOLEAN_VALUE,
137138
scrolling: null,
138139
seamless: MUST_USE_ATTRIBUTE | HAS_BOOLEAN_VALUE,
139140
selected: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,

src/browser/ui/dom/__tests__/DOMPropertyOperations-test.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@ describe('DOMPropertyOperations', function() {
8989
'checked',
9090
false
9191
)).toBe('');
92+
93+
expect(DOMPropertyOperations.createMarkupForProperty(
94+
'scoped',
95+
true
96+
)).toBe('scoped=""');
9297
});
9398

9499
it('should create markup for booleanish properties', function() {

0 commit comments

Comments
 (0)