From 3d45c0ad9db3611cc0258db35e3bbdac844b0cf3 Mon Sep 17 00:00:00 2001 From: Damien Pellier Date: Wed, 25 Mar 2015 09:41:05 +0100 Subject: [PATCH] add scoped property to the list of DOM standard properties --- docs/docs/ref-04-tags-and-attributes.md | 2 +- src/browser/ui/dom/HTMLDOMPropertyConfig.js | 1 + src/browser/ui/dom/__tests__/DOMPropertyOperations-test.js | 5 +++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/docs/ref-04-tags-and-attributes.md b/docs/docs/ref-04-tags-and-attributes.md index f4d2a6dfdc625..dbff8d2ec6ca3 100644 --- a/docs/docs/ref-04-tags-and-attributes.md +++ b/docs/docs/ref-04-tags-and-attributes.md @@ -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 ``` diff --git a/src/browser/ui/dom/HTMLDOMPropertyConfig.js b/src/browser/ui/dom/HTMLDOMPropertyConfig.js index 0cd3aa369c9e0..18a34dd83a456 100644 --- a/src/browser/ui/dom/HTMLDOMPropertyConfig.js +++ b/src/browser/ui/dom/HTMLDOMPropertyConfig.js @@ -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, diff --git a/src/browser/ui/dom/__tests__/DOMPropertyOperations-test.js b/src/browser/ui/dom/__tests__/DOMPropertyOperations-test.js index 564437256bce2..8cadb40d1f9bd 100644 --- a/src/browser/ui/dom/__tests__/DOMPropertyOperations-test.js +++ b/src/browser/ui/dom/__tests__/DOMPropertyOperations-test.js @@ -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() {