@magic/tags 0.0.8 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -1
- package/package.json +8 -8
- package/src/index.mjs +16 -0
package/README.md
CHANGED
|
@@ -66,5 +66,15 @@ add <picture> element
|
|
|
66
66
|
##### 0.0.8
|
|
67
67
|
update dependencies
|
|
68
68
|
|
|
69
|
-
##### 0.0.9
|
|
69
|
+
##### 0.0.9
|
|
70
|
+
update dependencies
|
|
71
|
+
|
|
72
|
+
##### 0.0.10
|
|
73
|
+
* update dependencies
|
|
74
|
+
* add self-closing tag array
|
|
75
|
+
|
|
76
|
+
##### 0.0.11
|
|
77
|
+
update dependencies
|
|
78
|
+
|
|
79
|
+
##### 0.0.12 - unreleased
|
|
70
80
|
...
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magic/tags",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"author": "Wizards & Witches",
|
|
5
5
|
"description": "exports arrays of all html and svg tags.",
|
|
6
6
|
"license": "AGPL-3.0",
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
},
|
|
34
34
|
"main": "src/index.mjs",
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@magic-modules/light-switch": "
|
|
37
|
-
"@magic-modules/no-spy": "
|
|
38
|
-
"@magic-modules/pre": "
|
|
39
|
-
"@magic-themes/docs": "
|
|
40
|
-
"@magic/core": "
|
|
41
|
-
"@magic/format": "0.0.
|
|
42
|
-
"@magic/test": "0.
|
|
36
|
+
"@magic-modules/light-switch": "0.0.11",
|
|
37
|
+
"@magic-modules/no-spy": "0.0.7",
|
|
38
|
+
"@magic-modules/pre": "0.0.11",
|
|
39
|
+
"@magic-themes/docs": "0.0.14",
|
|
40
|
+
"@magic/core": "0.0.140",
|
|
41
|
+
"@magic/format": "0.0.40",
|
|
42
|
+
"@magic/test": "0.2.11"
|
|
43
43
|
},
|
|
44
44
|
"keywords": [
|
|
45
45
|
"html",
|
package/src/index.mjs
CHANGED
|
@@ -4,6 +4,22 @@
|
|
|
4
4
|
// svg element list and docs extracted from
|
|
5
5
|
// https://developer.mozilla.org/en-US/docs/Web/SVG/Element
|
|
6
6
|
|
|
7
|
+
export const selfClosing = [
|
|
8
|
+
'area', // - HTML area tag defines an area in an image based on coordinates which then accepts an URL and become a clickable area behaving like a hyperlink
|
|
9
|
+
'base', // - It defines the base URL for all the relative URLs in the document
|
|
10
|
+
'br', // - br is used to create a line break
|
|
11
|
+
'col', // - It defines a column in a table to define a common style or property of that column
|
|
12
|
+
'embed', // - It is used to embed external content on the webpage
|
|
13
|
+
'hr', // - It creates a horizontal line
|
|
14
|
+
'img', // - It is used to define an image
|
|
15
|
+
'link', // - It is mostly used to add external stylesheets to the HTML document
|
|
16
|
+
'meta', // - It is used to give metadata to the webpage
|
|
17
|
+
'param', // - It defines parameter to the object
|
|
18
|
+
'source', // - It is used to give multiple media of resources for audio, video, and pictures
|
|
19
|
+
'track', // - It is used in media files to provide times text tracks
|
|
20
|
+
'wbr', // - It provides a word break position in a paragraph for the browsers
|
|
21
|
+
]
|
|
22
|
+
|
|
7
23
|
export const bodyTags = [
|
|
8
24
|
// Represents a hyperlink (the link that a user clicks on to go to another web page or document).
|
|
9
25
|
'a',
|