@samitouri / QOS-React-2 / commits / 07e2072692

Support props for <meta> elements.

`content`, `httpEquiv`, `charSet` are all needed. We're currently working around this in `react-page`. `content` is the risky one here since we previously supporting using `content` to set the text content. We removed support for that in e9980412296b6469f39605f48ea527776d7ac718 so the risk is minimal, there just might be some lingering old code. Fixes #292 Test Plan: Visit `data:text/html,<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" charset="utf-8"></head>` ``` var m = document.querySelector('meta'); m.httpEquiv; // Content-Type m.httpEquiv = 'foo'; m.httpEquiv; // foo m.charset; // undefined m.charSet; // undefined m.getAttribute('charset'); // utf-8 m.setAttribute('charset', 'bar'); m.getAttribute('charset'); // bar m.content; // text/html; charset=utf-8 m.content = 'baz'; m.content; // baz ```

Paul O’Shannessy committed Aug 26, 2013 at 09:21 UTC 07e20726923f29d2a323779b08583baa4b7fb526
1 file changed +3
src/dom/DefaultDOMPropertyConfig.js
+3
@@ -45,9 +45,11 @@ var DefaultDOMPropertyConfig = {
45 autoPlay: HAS_BOOLEAN_VALUE,
46 cellPadding: null,
47 cellSpacing: null,
48 + charSet: MUST_USE_ATTRIBUTE,
49 checked: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,
50 className: MUST_USE_PROPERTY,
51 colSpan: null,
52 + content: null,
53 contentEditable: null,
54 contextMenu: MUST_USE_ATTRIBUTE,
55 controls: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,
@@ -62,6 +64,7 @@ var DefaultDOMPropertyConfig = {
64 hidden: MUST_USE_ATTRIBUTE | HAS_BOOLEAN_VALUE,
65 href: null,
66 htmlFor: null,
67 + httpEquiv: null,
68 icon: null,
69 id: MUST_USE_PROPERTY,
70 label: null,