From 7838a9c0fb75613c6c7bb1ddced65f2acc8f4361 Mon Sep 17 00:00:00 2001 From: Dibyo Majumdar Date: Wed, 16 Nov 2016 15:52:19 -0800 Subject: [PATCH] Add xmlns and other attributes to SVGAttributes --- react/index.d.ts | 6 ++++++ react/react-tests.ts | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/react/index.d.ts b/react/index.d.ts index 49ff853c4caed4..fa960ad67102b5 100644 --- a/react/index.d.ts +++ b/react/index.d.ts @@ -2191,6 +2191,7 @@ declare namespace React { x1?: number | string; x2?: number | string; x?: number | string; + xChannelSelector?: string; xlinkActuate?: string; xlinkArcrole?: string; xlinkHref?: string; @@ -2200,10 +2201,15 @@ declare namespace React { xlinkType?: string; xmlBase?: string; xmlLang?: string; + xmlns?: string; + xmlnsXlink?: string; xmlSpace?: string; y1?: number | string; y2?: number | string; y?: number | string; + yChannelSelector?: string; + z?: number | string; + zoomAndPan?: string; } // diff --git a/react/react-tests.ts b/react/react-tests.ts index ae9538b29438ff..d375ef8f65644e 100644 --- a/react/react-tests.ts +++ b/react/react-tests.ts @@ -333,7 +333,10 @@ React.DOM.div(htmlAttr); React.DOM.span(htmlAttr); React.DOM.input(htmlAttr); -React.DOM.svg({ viewBox: "0 0 48 48" }, +React.DOM.svg({ + viewBox: "0 0 48 48", + xmlns: "http://www.w3.org/2000/svg" + }, React.DOM.rect({ x: 22, y: 10,