From 6a01752f3dc95375ccdccd513c0d8010c2815dba Mon Sep 17 00:00:00 2001 From: Adam Solove Date: Wed, 12 Mar 2014 10:07:05 -0400 Subject: [PATCH] Add svg text-anchor attribute. --- docs/docs/ref-04-tags-and-attributes.md | 2 +- src/browser/ui/dom/DefaultDOMPropertyConfig.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/docs/ref-04-tags-and-attributes.md b/docs/docs/ref-04-tags-and-attributes.md index 5d32eb60af..4b35b4bc29 100644 --- a/docs/docs/ref-04-tags-and-attributes.md +++ b/docs/docs/ref-04-tags-and-attributes.md @@ -72,6 +72,6 @@ There is also the React-specific attribute `dangerouslySetInnerHTML` ([more here ``` cx cy d fill fx fy gradientTransform gradientUnits offset points r rx ry -spreadMethod stopColor stopOpacity stroke strokeLinecap strokeWidth transform +spreadMethod stopColor stopOpacity stroke strokeLinecap strokeWidth textAnchor transform version viewBox x1 x2 x y1 y2 y ``` diff --git a/src/browser/ui/dom/DefaultDOMPropertyConfig.js b/src/browser/ui/dom/DefaultDOMPropertyConfig.js index e417d33318..3723d6f645 100644 --- a/src/browser/ui/dom/DefaultDOMPropertyConfig.js +++ b/src/browser/ui/dom/DefaultDOMPropertyConfig.js @@ -154,6 +154,7 @@ var DefaultDOMPropertyConfig = { stroke: MUST_USE_ATTRIBUTE, strokeLinecap: MUST_USE_ATTRIBUTE, strokeWidth: MUST_USE_ATTRIBUTE, + textAnchor: MUST_USE_ATTRIBUTE, transform: MUST_USE_ATTRIBUTE, version: MUST_USE_ATTRIBUTE, viewBox: MUST_USE_ATTRIBUTE, @@ -174,6 +175,7 @@ var DefaultDOMPropertyConfig = { stopOpacity: 'stop-opacity', strokeLinecap: 'stroke-linecap', strokeWidth: 'stroke-width', + textAnchor: 'text-anchor', viewBox: 'viewBox' }, DOMPropertyNames: {