From f035949e73003a57122e826c16ccc81ce9c7f3f3 Mon Sep 17 00:00:00 2001 From: Mike D Pilsbury Date: Tue, 12 Aug 2014 19:58:10 +0100 Subject: [PATCH 1/2] Add support for tag. fixes #2017 --- docs/docs/ref-04-tags-and-attributes.md | 4 ++-- src/browser/ReactDOM.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/docs/ref-04-tags-and-attributes.md b/docs/docs/ref-04-tags-and-attributes.md index 905c1a954de99..6fb59c20eb8aa 100644 --- a/docs/docs/ref-04-tags-and-attributes.md +++ b/docs/docs/ref-04-tags-and-attributes.md @@ -18,8 +18,8 @@ The following HTML elements are supported: ``` a abbr address area article aside audio b base bdi bdo big blockquote body br button canvas caption cite code col colgroup data datalist dd del details dfn -div dl dt em embed fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 -head header hr html i iframe img input ins kbd keygen label legend li link +dialog div dl dt em embed fieldset figcaption figure footer form h1 h2 h3 h4 h5 +h6 head header hr html i iframe img input ins kbd keygen label legend li link main map mark menu menuitem meta meter nav noscript object ol optgroup option output p param pre progress q rp rt ruby s samp script section select small source span strong style sub summary sup table tbody td textarea tfoot th diff --git a/src/browser/ReactDOM.js b/src/browser/ReactDOM.js index 306a60225484a..f039d7a6a5e62 100644 --- a/src/browser/ReactDOM.js +++ b/src/browser/ReactDOM.js @@ -95,6 +95,7 @@ var ReactDOM = mapObject({ del: false, details: false, dfn: false, + dialog: false, div: false, dl: false, dt: false, From ffa0447177987398c4089eab85b44c59cfc4b25d Mon Sep 17 00:00:00 2001 From: Mike D Pilsbury Date: Sun, 31 Aug 2014 12:43:32 +0100 Subject: [PATCH 2/2] Add support for tag's open attribute. --- docs/docs/ref-04-tags-and-attributes.md | 2 +- src/browser/ui/dom/HTMLDOMPropertyConfig.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/docs/ref-04-tags-and-attributes.md b/docs/docs/ref-04-tags-and-attributes.md index 6fb59c20eb8aa..0477fa5473396 100644 --- a/docs/docs/ref-04-tags-and-attributes.md +++ b/docs/docs/ref-04-tags-and-attributes.md @@ -59,7 +59,7 @@ className cols colSpan content contentEditable contextMenu controls coords crossOrigin data dateTime defer dir disabled download draggable encType form formNoValidate frameBorder height hidden href hrefLang htmlFor httpEquiv icon id label lang list loop max maxLength mediaGroup method min multiple muted -name noValidate pattern placeholder poster preload radioGroup readOnly rel +name noValidate open pattern placeholder poster preload radioGroup readOnly rel required role rows rowSpan sandbox scope scrollLeft scrolling scrollTop seamless selected shape size 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 2c59d851a34dd..87193170c4642 100644 --- a/src/browser/ui/dom/HTMLDOMPropertyConfig.js +++ b/src/browser/ui/dom/HTMLDOMPropertyConfig.js @@ -116,6 +116,7 @@ var HTMLDOMPropertyConfig = { muted: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE, name: null, noValidate: HAS_BOOLEAN_VALUE, + open: null, pattern: null, placeholder: null, poster: null,