зеркало из https://github.com/mozilla/gecko-dev.git
Test for bug 659763 - Make document.open("text/plain") work with the new parser. r=bzbarsky.
This commit is contained in:
Родитель
bc6cd72c1d
Коммит
3f843d4875
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html>
|
||||
<iframe src="data:text/plain,<i>foo</i>"></iframe>
|
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html>
|
||||
<iframe></iframe>
|
||||
<script>
|
||||
var iframe = document.getElementsByTagName("iframe")[0];
|
||||
var doc = iframe.contentDocument;
|
||||
doc.open("text/plain");
|
||||
doc.write("<i>foo</i>");
|
||||
doc.close();
|
||||
</script>
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html>
|
||||
<iframe src="data:text/plain,<i>foo</i>"></iframe>
|
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html>
|
||||
<iframe></iframe>
|
||||
<script>
|
||||
var iframe = document.getElementsByTagName("iframe")[0];
|
||||
var doc = iframe.contentDocument;
|
||||
doc.open("TEXT/PLAIN");
|
||||
doc.write("<i>foo</i>");
|
||||
doc.close();
|
||||
</script>
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html>
|
||||
<iframe src="data:text/plain,<i>foo</i>"></iframe>
|
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html>
|
||||
<iframe></iframe>
|
||||
<script>
|
||||
var iframe = document.getElementsByTagName("iframe")[0];
|
||||
var doc = iframe.contentDocument;
|
||||
doc.open("foo/bar");
|
||||
doc.write("<i>foo</i>");
|
||||
doc.close();
|
||||
</script>
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html>
|
||||
<iframe src="data:text/html,<i>foo</i>"></iframe>
|
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html>
|
||||
<iframe></iframe>
|
||||
<script>
|
||||
var iframe = document.getElementsByTagName("iframe")[0];
|
||||
var doc = iframe.contentDocument;
|
||||
doc.open("text/html");
|
||||
doc.write("<i>foo</i>");
|
||||
doc.close();
|
||||
</script>
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html>
|
||||
<iframe src="data:text/html,<i>foo</i>"></iframe>
|
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html>
|
||||
<iframe></iframe>
|
||||
<script>
|
||||
var iframe = document.getElementsByTagName("iframe")[0];
|
||||
var doc = iframe.contentDocument;
|
||||
doc.open();
|
||||
doc.write("<i>foo</i>");
|
||||
doc.close();
|
||||
</script>
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html>
|
||||
<iframe src="data:text/html,<i>foo</i>"></iframe>
|
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html>
|
||||
<iframe></iframe>
|
||||
<script>
|
||||
var iframe = document.getElementsByTagName("iframe")[0];
|
||||
var doc = iframe.contentDocument;
|
||||
doc.open("TEXT/HTML");
|
||||
doc.write("<i>foo</i>");
|
||||
doc.close();
|
||||
</script>
|
|
@ -6,6 +6,12 @@
|
|||
== bug608373-1.html bug608373-1-ref.html
|
||||
== view-source:bug482921-1.html bug482921-1-ref.html
|
||||
== view-source:bug482921-2.xhtml bug482921-2-ref.html
|
||||
== bug659763-1.html bug659763-1-ref.html
|
||||
== bug659763-2.html bug659763-2-ref.html
|
||||
== bug659763-3.html bug659763-3-ref.html
|
||||
== bug659763-4.html bug659763-4-ref.html
|
||||
== bug659763-5.html bug659763-5-ref.html
|
||||
== bug659763-6.html bug659763-6-ref.html
|
||||
== view-source:bug673094-1.html view-source:bug673094-1-ref.html
|
||||
== bug696651-1.html bug696651-1-ref.html
|
||||
== bug696651-2.html bug696651-2-ref.html
|
||||
|
|
Загрузка…
Ссылка в новой задаче