[wp-trac] [WordPress Trac] #46636: Error for SVG
WordPress Trac
noreply at wordpress.org
Mon Mar 25 10:58:50 UTC 2019
#46636: Error for SVG
------------------------------+-----------------------------
Reporter: prajakta gadhave | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords: needs-patch
Focuses: |
------------------------------+-----------------------------
Hello,
I am one of the developer of Ultimate addons for Gutenberg.
We use the SVG icon for some of our blocks. If we create a block using the
admin role then everything works fine. But the same block using the author
role throws an error for SVG.
Here is the error we get after save - Block validation: Expected token of
type StartTag({type: "StartTag", tagName: "svg", attributes: Array(2),
selfClosing: false}), instead sawEndTag ({type: "EndTag", tagName:
"div"}).
Can you please let me know what is the solution for this? Why SVG is not
acceptable in save block if the user role is Author?
Thank you!
Regards,
Prajakta Gadhave.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46636>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list