Bug 1706177 - Use setAttribute() to set label href. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D112664 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
7592b09d64
Коммит
96ddaf524a
|
@ -566,8 +566,8 @@ function updateLink(itemUrlString, linkRow, urlLink) {
|
|||
|
||||
setTimeout(() => {
|
||||
// HACK the url link doesn't crop when setting the value in onLoad
|
||||
urlLink.value = itemUrlString;
|
||||
urlLink.href = itemUrlString;
|
||||
urlLink.setAttribute("value", itemUrlString);
|
||||
urlLink.setAttribute("href", itemUrlString);
|
||||
}, 0);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3840,8 +3840,9 @@ function updateItemURL(aShow, aUrl) {
|
|||
if (aShow && aUrl.length) {
|
||||
setTimeout(() => {
|
||||
// HACK the url-link doesn't crop when setting the value in onLoad
|
||||
document.getElementById("url-link").value = aUrl;
|
||||
document.getElementById("url-link").href = aUrl;
|
||||
let label = document.getElementById("url-link");
|
||||
label.setAttribute("value", aUrl);
|
||||
label.setAttribute("href", aUrl);
|
||||
}, 0);
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче