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
hexo clean && hexo s
Markdown 文件中使用 <script> 内联脚本时,使用 ` 括起来的模板字符串中包含 html 元素的,里面的 img 元素被粗暴地加上懒加载设置。
<script>
`
该 Bug 复现步骤如下:
<script> 'use strict'; (function(){ let makeLinkItem=(element)=>{ element.innerHTML=` <a href="${element.getAttribute("url")}"> <div class="col-4 col-md-6 col-sm-12 linkitem"> <div> <img src="${element.getAttribute("image")}" class="linkitem-img" /> </div> <div class="linkitem-txt"> <div> <span class="linkitem-title">${element.getAttribute("title")}</span> </div> <div><span>${element.getAttribute("desc")}</span></div> </div> </div> </a>`; return; } Array .from(document.getElementsByTagName("link-item")) .forEach((element)=>makeLinkItem(element)); })(); </script>
源文件中的代码: 被影响后的页面代码:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
请确认
hexo clean && hexo s
,并且清除浏览器缓存,仍可复现Bug 描述
Markdown 文件中使用
<script>
内联脚本时,使用`
括起来的模板字符串中包含 html 元素的,里面的 img 元素被粗暴地加上懒加载设置。复现步骤
该 Bug 复现步骤如下:
截图
源文件中的代码:
被影响后的页面代码:
The text was updated successfully, but these errors were encountered: