We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
attr:x-show
When adding an attr:x-show or x-show attribute to the SVG tag, it seems to get removed. I'm not sure however if this is intended behaviour in v5?
x-show
Use attr:x-show or x-show on an SVG tag in v5 alpha 5
No response
Environment Application Name: connect2id Laravel Version: 11.4.0 PHP Version: 8.2.16 Composer Version: 2.7.1 Environment: local Debug Mode: ENABLED URL: connect2id.test Maintenance Mode: OFF Cache Config: NOT CACHED Events: NOT CACHED Routes: NOT CACHED Views: CACHED Drivers Broadcasting: log Cache: statamic Database: sqlite Logs: stack / single Mail: smtp Queue: sync Session: file Statamic Addons: 6 Sites: 1 Stache Watcher: Enabled Static Caching: Disabled Version: 5.0.0-alpha.5 PRO Statamic Addons rias/statamic-color-swatches: 2.2.0 studio1902/statamic-peak-browser-appearance: 3.4.0 studio1902/statamic-peak-commands: 8.2.0 studio1902/statamic-peak-seo: 8.11.0 studio1902/statamic-peak-tools: 6.0.0 trendyminds/statamic-palette: 1.0.4
Starter Kit using via CLI
None
The text was updated successfully, but these errors were encountered:
I think it's probably the sanitizing because x-show isn't a valid attribute.
Can you try adding sanitize="false" or allow_attrs="x-show" just to see if it helps?
sanitize="false"
allow_attrs="x-show"
Sorry, something went wrong.
Oh yeah that does the trick. Handy to learn about allow_attrs. Should attributes prefixed with attr: get automatically allowed perhaps?
allow_attrs
attr:
Should attributes prefixed with attr: get automatically allowed perhaps?
We can probably figure out any attributes you've added (attr: prefixed or not) and automatically allow them.
No branches or pull requests
Bug description
When adding an
attr:x-show
orx-show
attribute to the SVG tag, it seems to get removed. I'm not sure however if this is intended behaviour in v5?How to reproduce
Use
attr:x-show
orx-show
on an SVG tag in v5 alpha 5Logs
No response
Environment
Installation
Starter Kit using via CLI
Antlers Parser
None
Additional details
No response
The text was updated successfully, but these errors were encountered: