diff --git a/lib/get-property-info/htmldom/property-config.js b/lib/get-property-info/htmldom/property-config.js index 05ee3d4..ddbdb91 100644 --- a/lib/get-property-info/htmldom/property-config.js +++ b/lib/get-property-info/htmldom/property-config.js @@ -26,7 +26,7 @@ var HTMLDOMPropertyConfig = { allowTransparency: MUST_USE_ATTRIBUTE, alt: null, async: HAS_BOOLEAN_VALUE, - autoComplete: null, + autocomplete: null, autoFocus: HAS_BOOLEAN_VALUE, autoPlay: HAS_BOOLEAN_VALUE, capture: MUST_USE_ATTRIBUTE | HAS_BOOLEAN_VALUE, diff --git a/test/html-to-vdom/lib/convert-tag-attributes/properties.js b/test/html-to-vdom/lib/convert-tag-attributes/properties.js index 0e1e2b2..1e2d77c 100644 --- a/test/html-to-vdom/lib/convert-tag-attributes/properties.js +++ b/test/html-to-vdom/lib/convert-tag-attributes/properties.js @@ -51,6 +51,16 @@ describe('convertTagAttributes', function () { attributes: {} }); }); + it('autocomplete not camelCase', function () { + var tag = parseHTML('')[0]; + + var converted = convertTagAttributes(tag); + converted.should.eql({ + autocomplete: 'off', + type: 'text', + attributes: {} + }); + }); }); }); });