-
Notifications
You must be signed in to change notification settings - Fork 18
Preserve HTML element attributes in @bassetBlock #172
Copy link
Copy link
Open
Description
The bassetBlock method currently removes the entire script/style block before writing contents to a file,
while it may still contain relevant information.
For example, it could be nice to allow attributes to be preserved, so one could:
- add
type=moduleto use a module script - add
data-xattributes to easily access the element and/or query metadata from it in a structured way
Alternatively, an easier way to implement a change that would make this possible is simply adding an attributes parameter to the function, so one can leverage that to pass (custom) attributes.
See also: Laravel-Backpack/FileManager@838cd54
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
No status