Skip to content

Commit

Permalink
Merge pull request #12737 from mDibyo/master
Browse files Browse the repository at this point in the history
Add xmlns and other attributes to SVGAttributes
  • Loading branch information
johnnyreilly committed Nov 17, 2016
2 parents 8797f32 + 78d9447 commit 8691f6c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 4 additions & 1 deletion react/react-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 6 additions & 0 deletions react/react.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2123,6 +2123,7 @@ declare namespace __React {
x1?: number | string;
x2?: number | string;
x?: number | string;
xChannelSelector?: string;
xlinkActuate?: string;
xlinkArcrole?: string;
xlinkHref?: string;
Expand All @@ -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;
}

//
Expand Down

0 comments on commit 8691f6c

Please sign in to comment.