提交 ea8bb5d1 编写于 作者: C Corey Richardson

rollup merge of #19453: pshc/rustdoc-check-a-href

Fixes the JS error in #18354 at least. I don't know if there's a more underlying issue that needs addressing.
......@@ -707,8 +707,8 @@
var code = $('<code>').append(structs[j]);
$.each(code.find('a'), function(idx, a) {
var href = $(a).attr('href');
if (!href.startsWith('http')) {
$(a).attr('href', rootPath + $(a).attr('href'));
if (href && !href.startsWith('http')) {
$(a).attr('href', rootPath + href);
}
});
var li = $('<li>').append(code);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册