Skip to content

Commit

Permalink
Update svg.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelCurrin authored Aug 28, 2024
1 parent ea13139 commit bf884b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cheatsheets/javascript/browser/svg.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Change color using JS

### Inline SVG
### Inline SVG (`svg` element)

Change using `onclick` to set an attribute or class.

Expand Down Expand Up @@ -41,7 +41,7 @@ circle {
```


### Linked SVG
### Linked SVG (`object` element with reference)

When you embed an SVG using `<object>`, the SVG is treated as a separate document. The `contentDocument` property allows you to access and manipulate this embedded document's DOM (and is safer and more widely used than `getSVGDocument()`).

Expand Down

0 comments on commit bf884b1

Please sign in to comment.