From 3b2df5fd9c824849edaad8368ae18820f2f50e47 Mon Sep 17 00:00:00 2001 From: Levi Buzolic Date: Sat, 4 Jul 2015 02:17:14 +0200 Subject: [PATCH] Add inputMode to HTML DOM Property Whitelist --- docs/docs/ref-04-tags-and-attributes.ko-KR.md | 13 +++++++------ docs/docs/ref-04-tags-and-attributes.md | 13 +++++++------ src/renderers/dom/shared/HTMLDOMPropertyConfig.js | 1 + 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/docs/docs/ref-04-tags-and-attributes.ko-KR.md b/docs/docs/ref-04-tags-and-attributes.ko-KR.md index 6f1e1ad13b..778012549c 100644 --- a/docs/docs/ref-04-tags-and-attributes.ko-KR.md +++ b/docs/docs/ref-04-tags-and-attributes.ko-KR.md @@ -57,12 +57,13 @@ async autoComplete autoFocus autoPlay cellPadding cellSpacing charSet challenge checked classID className colSpan cols content contentEditable contextMenu controls coords crossOrigin data dateTime defer dir disabled download draggable encType form formAction formEncType formMethod formNoValidate formTarget frameBorder -headers height hidden high href hrefLang htmlFor httpEquiv icon id keyParams keyType -label lang list loop low manifest marginHeight marginWidth max maxLength media -mediaGroup method min multiple muted name noValidate open optimum pattern placeholder -poster preload radioGroup readOnly rel required role rowSpan rows 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 +headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode +keyParams keyType label lang list loop low manifest marginHeight marginWidth max +maxLength media mediaGroup method min multiple muted name noValidate open +optimum pattern placeholder poster preload radioGroup readOnly rel required role +rowSpan rows 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/docs/docs/ref-04-tags-and-attributes.md b/docs/docs/ref-04-tags-and-attributes.md index 90836cdcf7..2cbe6d10c2 100644 --- a/docs/docs/ref-04-tags-and-attributes.md +++ b/docs/docs/ref-04-tags-and-attributes.md @@ -57,12 +57,13 @@ async autoComplete autoFocus autoPlay cellPadding cellSpacing charSet challenge checked classID className colSpan cols content contentEditable contextMenu controls coords crossOrigin data dateTime defer dir disabled download draggable encType form formAction formEncType formMethod formNoValidate formTarget frameBorder -headers height hidden high href hrefLang htmlFor httpEquiv icon id keyParams keyType -label lang list loop low manifest marginHeight marginWidth max maxLength media -mediaGroup method min multiple muted name noValidate open optimum pattern placeholder -poster preload radioGroup readOnly rel required role rowSpan rows 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 +headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode +keyParams keyType label lang list loop low manifest marginHeight marginWidth max +maxLength media mediaGroup method min multiple muted name noValidate open +optimum pattern placeholder poster preload radioGroup readOnly rel required role +rowSpan rows 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 ``` In addition, the following non-standard attributes are supported: diff --git a/src/renderers/dom/shared/HTMLDOMPropertyConfig.js b/src/renderers/dom/shared/HTMLDOMPropertyConfig.js index 6ae478cb38..b0532f8b60 100644 --- a/src/renderers/dom/shared/HTMLDOMPropertyConfig.js +++ b/src/renderers/dom/shared/HTMLDOMPropertyConfig.js @@ -103,6 +103,7 @@ var HTMLDOMPropertyConfig = { httpEquiv: null, icon: null, id: MUST_USE_PROPERTY, + inputMode: MUST_USE_ATTRIBUTE, is: MUST_USE_ATTRIBUTE, keyParams: MUST_USE_ATTRIBUTE, keyType: MUST_USE_ATTRIBUTE,