Add xmlns and other attributes to SVGAttributes

This commit is contained in:
Dibyo Majumdar
2016-11-16 15:55:59 -08:00
parent 8797f32146
commit 78d94473f1
2 changed files with 10 additions and 1 deletions

View File

@@ -325,7 +325,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,

6
react/react.d.ts vendored
View File

@@ -2123,6 +2123,7 @@ declare namespace __React {
x1?: number | string;
x2?: number | string;
x?: number | string;
xChannelSelector?: string;
xlinkActuate?: string;
xlinkArcrole?: string;
xlinkHref?: string;
@@ -2132,10 +2133,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;
}
//