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
addCustomAttribute
MetaLink
When using addCustomAttribute on a MetaLink, e.g.
MetaLink(href: "https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css", rel: "stylesheet") .addCustomAttribute(name: "integrity", value: "sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH") .addCustomAttribute(name: "crossorigin", value: "anonymous")
I would expect the output to be
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
However, it is only generating
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
The same code with a Script for example works:
Script
Script(file: "https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js") .addCustomAttribute(name: "integrity", value: "sha384-I7E8VVD/ismYTF4hNIPjVp/Zjvgyol6VFvRkX/vR+Vc4jQkC+hVqc2pM8ODewa9r") .addCustomAttribute(name: "crossorigin", value: "anonymous")
Generates correctly:
<script integrity="sha384-0pUGZvbkm6XF6gxjEnlmuGrJXVbNuzT9qBBavbLwCsOGabYfZo0T0to5eqruptLy" crossorigin="anonymous" src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"></script>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When using
addCustomAttribute
on aMetaLink
, e.g.I would expect the output to be
However, it is only generating
The same code with a
Script
for example works:Generates correctly:
The text was updated successfully, but these errors were encountered: