mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
add scoped property to the list of DOM standard properties
This commit is contained in:
@@ -60,7 +60,7 @@ formAction formEncType formMethod formNoValidate formTarget frameBorder height
|
||||
hidden href hrefLang htmlFor httpEquiv icon id label lang list loop manifest
|
||||
marginHeight marginWidth max maxLength media mediaGroup method min multiple
|
||||
muted name noValidate open pattern placeholder poster preload radioGroup
|
||||
readOnly rel required role rows rowSpan sandbox scope scrolling seamless
|
||||
readOnly rel required role rows rowSpan sandbox scope scoped scrolling seamless
|
||||
selected shape size sizes span spellCheck src srcDoc srcSet start step style
|
||||
tabIndex target title type useMap value width wmode
|
||||
```
|
||||
|
||||
@@ -134,6 +134,7 @@ var HTMLDOMPropertyConfig = {
|
||||
rowSpan: null,
|
||||
sandbox: null,
|
||||
scope: null,
|
||||
scoped: HAS_BOOLEAN_VALUE,
|
||||
scrolling: null,
|
||||
seamless: MUST_USE_ATTRIBUTE | HAS_BOOLEAN_VALUE,
|
||||
selected: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,
|
||||
|
||||
@@ -89,6 +89,11 @@ describe('DOMPropertyOperations', function() {
|
||||
'checked',
|
||||
false
|
||||
)).toBe('');
|
||||
|
||||
expect(DOMPropertyOperations.createMarkupForProperty(
|
||||
'scoped',
|
||||
true
|
||||
)).toBe('scoped=""');
|
||||
});
|
||||
|
||||
it('should create markup for booleanish properties', function() {
|
||||
|
||||
Reference in New Issue
Block a user