1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[test] Added removeAttribute case to getAttribute test.

This commit is contained in:
Witold Filipczyk 2024-06-28 17:08:38 +02:00
parent 85d22c150c
commit 795159f9bb

View File

@ -11,6 +11,9 @@ function aa()
{
var a = document.getElementById('blabla').getAttribute('rel');
console.assert(a === 'nofollow', a);
document.getElementById('blabla').removeAttribute('rel');
var a2 = document.getElementById('blabla').getAttribute('rel');
console.assert(a2 === null, 'removed');
}
function bb()