repo.or.cz
/
chromium-blink-merge.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge Chromium + Blink git repositories
[chromium-blink-merge.git]
/
third_party
/
WebKit
/
LayoutTests
/
fast
/
images
/
update-alt-text.html
blob
a9c4cf43140c6c2f15a05e0d874d10bf12961e9f
1
<!doctype
HTML
>
2
Ensure we can update the alt text on an image that has failed to load.
3
<img
id
=
"img"
src
=
"none"
alt
=
"FAIL"
>
4
<script>
5
document
.
body
.
offsetTop
;
6
var
img
=
document
.
getElementById
(
'img'
);
7
img
.
onerror
=
function
() {
img
.
alt
=
"PASS"
; }
8
</script>