Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for SVG ellipse elements. #1675

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/docs/ref-04-tags-and-attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ thead time title tr track u ul var video wbr
The following SVG elements are supported:

```
circle defs g line linearGradient path polygon polyline radialGradient rect
circle defs ellipse g line linearGradient path polygon polyline radialGradient rect
stop svg text
```

Expand Down
1 change: 1 addition & 0 deletions src/browser/ReactDOM.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ var ReactDOM = mapObject({
// SVG
circle: false,
defs: false,
ellipse: false,
g: false,
line: false,
linearGradient: false,
Expand Down
2 changes: 2 additions & 0 deletions src/vendor/core/getMarkupWrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ var shouldWrap = {
// they will be initialized in the wrong namespace (and will not display).
'circle': true,
'defs': true,
'ellipse': true,
'g': true,
'line': true,
'linearGradient': true,
Expand Down Expand Up @@ -78,6 +79,7 @@ var markupWrap = {

'circle': svgWrap,
'defs': svgWrap,
'ellipse': svgWrap,
'g': svgWrap,
'line': svgWrap,
'linearGradient': svgWrap,
Expand Down