Allow `results` and `autosave` attributes (WebKit/Blink)
Espen Hovlandsdal committed
Aug 21, 2015 at 10:10 UTC
75805e4835d96690011cdd1826a83e978c43ac28
2 files changed
+7
docs/docs/ref-04-tags-and-attributes.md
+1
@@ -72,6 +72,7 @@ In addition, the following non-standard attributes are supported:
72
- `property` for [Open Graph](http://ogp.me/) meta tags.
73
- `itemProp itemScope itemType itemRef itemID` for [HTML5 microdata](http://schema.org/docs/gs.html).
74
- `unselectable` for Internet Explorer.
75
+- `results autoSave` for WebKit/Blink input fields of type `search`.
76
77
There is also the React-specific attribute `dangerouslySetInnerHTML` ([more here](/react/docs/special-non-dom-attributes.html)), used for directly inserting HTML strings into a component.
78
src/renderers/dom/shared/HTMLDOMPropertyConfig.js
+6
@@ -174,6 +174,8 @@ var HTMLDOMPropertyConfig = {
174
// keyboard hints.
175
autoCapitalize: null,
176
autoCorrect: null,
177
+ // autoSave allows WebKit/Blink to persist values of input fields on page reloads
178
+ autoSave: null,
179
// itemProp, itemScope, itemType are for
180
// Microdata support. See http://schema.org/docs/gs.html
181
itemProp: MUST_USE_ATTRIBUTE,
@@ -186,6 +188,9 @@ var HTMLDOMPropertyConfig = {
188
itemRef: MUST_USE_ATTRIBUTE,
189
// property is supported for OpenGraph in meta tags.
190
property: null,
191
+ // results show looking glass icon and recent searches on input
192
+ // search fields in WebKit/Blink
193
+ results: null,
194
// IE-only attribute that specifies security restrictions on an iframe
195
// as an alternative to the sandbox attribute on IE<10
196
security: MUST_USE_ATTRIBUTE,
@@ -204,6 +209,7 @@ var HTMLDOMPropertyConfig = {
209
autoCorrect: 'autocorrect',
210
autoFocus: 'autofocus',
211
autoPlay: 'autoplay',
212
+ autoSave: 'autosave',
213
// `encoding` is equivalent to `enctype`, IE8 lacks an `enctype` setter.
214
// http://www.w3.org/TR/html5/forms.html#dom-fs-encoding
215
encType: 'encoding',