-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d8c3ea8
commit 9102aab
Showing
5 changed files
with
55 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# removeUnknownsAndDefaults | ||
|
||
Removes unknown elements and attributes, as well as attributes that are set to their default value. | ||
It also removes the the `standalone` declaration from the DTD if [`standalone`](https://www.w3.org/TR/REC-xml/#sec-rmd) is set to `no`. | ||
|
||
The plugin has no effect if: | ||
|
||
- The document has scripts. | ||
- The document has `<style>` elements with CSS which **svgo-ll** is not able to process. | ||
|
||
The following elements are not processed: | ||
|
||
- Any element with a namespace prefix. | ||
- Any `<foreignObject>` elements and their children. | ||
- Any attributes whose name starts with `aria-` or `data-i`. | ||
- `xmlns` attributes are never removed. | ||
- Attribues with a namespace prefix are never removed unless the prefix is `xml` or `xlink`. | ||
|
||
Elements are removed if: | ||
|
||
- They are not allowed as children of their parents. | ||
|
||
Attributes set to a default value are removed if: | ||
|
||
- They are not overriding a value set by an ancestor, and | ||
- they are not in an element which is referenced by a `<use>` element (or a child of any such element) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# removeUnknownsAndDefaults | ||
|
||
Removes unknown elements and attributes, as well as attributes that are set to their default value. | ||
It also removes the the `standalone` declaration from the DTD if [`standalone`](https://www.w3.org/TR/REC-xml/#sec-rmd) is set to `no`. | ||
|
||
The plugin has no effect if: | ||
|
||
- The document has scripts. | ||
- The document has `<style>` elements with CSS which **svgo-ll** is not able to process. | ||
|
||
The following elements are not processed: | ||
|
||
- Any element with a namespace prefix. | ||
- Any `<foreignObject>` elements and their children. | ||
- Any attributes whose name starts with `aria-` or `data-i`. | ||
- `xmlns` attributes are never removed. | ||
- Attribues with a namespace prefix are never removed unless the prefix is `xml` or `xlink`. | ||
|
||
Elements are removed if: | ||
|
||
- They are not allowed as children of their parents. | ||
|
||
Attributes set to a default value are removed if: | ||
|
||
- They are not overriding a value set by an ancestor, and | ||
- they are not in an element which is referenced by a `<use>` element (or a child of any such element) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters