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
/
frames
/
srcdoc
/
srcdoc-cannot-be-in-qurks-mode.html
blob
a56b6530c0627cfee6fb5934bf7370aa75728c2f
1
<script>
2
if
(
window
.
testRunner
)
3
testRunner
.
dumpAsText
();
4
</script>
5
Normally srcdoc documents default to standards mode, but they can end up in
6
quirks mode with a sufficiently nutty DocType.
7
<iframe
srcdoc='
8
<!DOCTYPE
banana
>
9
<script>
10
alert
(
document
.
compatMode
);
11
</script>
12
'
></iframe>