Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

svg-element-attributes

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svg-element-attributes - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

22

package.json
{
"name": "svg-element-attributes",
"version": "1.3.0",
"version": "1.3.1",
"description": "Map of SVG elements to allowed attributes",

@@ -17,2 +17,6 @@ "license": "MIT",

"bugs": "https://github.com/wooorm/svg-element-attributes/issues",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/wooorm"
},
"author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",

@@ -34,11 +38,11 @@ "contributors": [

"hast-util-select": "^3.0.0",
"hast-util-to-string": "^1.0.1",
"prettier": "^1.12.1",
"hast-util-to-string": "^1.0.0",
"prettier": "^1.0.0",
"rehype-parse": "^6.0.0",
"remark-cli": "^6.0.0",
"remark-preset-wooorm": "^4.0.0",
"tape": "^4.4.0",
"tinyify": "^2.5.0",
"unified": "^7.0.0",
"xo": "^0.24.0"
"remark-cli": "^7.0.0",
"remark-preset-wooorm": "^6.0.0",
"tape": "^4.0.0",
"tinyify": "^2.0.0",
"unified": "^8.0.0",
"xo": "^0.25.0"
},

@@ -45,0 +49,0 @@ "scripts": {

@@ -7,22 +7,21 @@ # svg-element-attributes

Map of SVG elements to allowed attributes. Also contains global
attributes under `'*'`.
Map of SVG elements to allowed attributes.
Also contains global attributes under `'*'`.
Includes attributes from [SVG 1.1][1.1], [SVG Tiny 1.2][1.2], and [SVG 2][2.0].
> **Note**: Does not include ARIA attributes (`role`, `aria-*`),
> `xml:*` or `xlink:*` attributes, event attributes (`on*`), or
> `ev:event`.
> **Note**: Does not include ARIA attributes (`role`, `aria-*`), `xml:*` or
> `xlink:*` attributes, event attributes (`on*`), or `ev:event`.
## Installation
## Install
[npm][]:
```bash
```sh
npm install svg-element-attributes
```
## Usage
## Use
```javascript
```js
var svgElementAttributes = require('svg-element-attributes')

@@ -138,7 +137,6 @@

`Object.<Array.<string>>` — Map of lower-case tag-names to an array of
attribute names.
`Object.<Array.<string>>` — Map of tag names to an array of attribute names.
The object contains one special key: `'*'`, which contains global
attributes that apply to all SVG elements.
The object contains one special key: `'*'`, which contains global attributes
that apply to all SVG elements.

@@ -145,0 +143,0 @@ ## License

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc