Skip to content

Commit

Permalink
Merge pull request facebook#3507 from dpellier/master
Browse files Browse the repository at this point in the history
Add scoped property to the list of DOM standard properties
  • Loading branch information
zpao committed Apr 17, 2015
1 parent 8779b91 commit 531e82d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/ref-04-tags-and-attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down
1 change: 1 addition & 0 deletions src/browser/ui/dom/HTMLDOMPropertyConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
5 changes: 5 additions & 0 deletions src/browser/ui/dom/__tests__/DOMPropertyOperations-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 531e82d

Please sign in to comment.