tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

with-inheritance.html (2205B)


      1 <!doctype html>
      2 <meta charset="windows-1253">
      3 <title>meta charset in iframes with windows-1253 inhering from parent</title>
      4 <script src=/resources/testharness.js></script>
      5 <script src=/resources/testharnessreport.js></script>
      6 
      7 <script>
      8 setup({explicit_done:true});
      9 window.onload = function() {
     10  runAllTests();
     11  done();
     12 };
     13 
     14 function runAllTests() {
     15  const prefix = "Test: ";
     16  let iframes = document.getElementsByTagName("iframe");
     17  for (let i = 0; i < iframes.length; ++i) {
     18    let iframe = iframes[i];
     19    test(function() {
     20      let doc = iframe.contentWindow.document;
     21      let link = doc.getElementsByTagName("link")[0];
     22      let match = (link.rel == "match");
     23      let content = doc.documentElement.textContent;
     24      let index = content.indexOf(prefix);
     25      let c = content.substring(index + prefix.length, index + prefix.length + 1);
     26      if (match) {
     27        assert_equals(doc.characterSet, "windows-1251", 'Check characterSet');
     28        assert_equals(c, "\u0436", 'Check character');
     29      } else {
     30        assert_equals(doc.characterSet, "windows-1253", 'Check characterSet');
     31        assert_equals(c, "\u03B6", 'Check character');
     32      }
     33    }, "Check " + iframe.src);
     34  }
     35 }
     36 
     37 </script>
     38 
     39 <iframe src="after-1kb.html"></iframe>
     40 <iframe src="after-bogus-after-1kb.html"></iframe>
     41 <iframe src="after-bogus.html"></iframe>
     42 <iframe src="after-head-after-1kb-crlf.html"></iframe>
     43 <iframe src="after-head-after-1kb.html"></iframe>
     44 <iframe src="after-head-in-1kb-crlf.html"></iframe>
     45 <iframe src="after-head-in-1kb.html"></iframe>
     46 <iframe src="baseline.html"></iframe>
     47 <iframe src="document-write.html"></iframe>
     48 <iframe src="in-comment.html"></iframe>
     49 <iframe src="in-noscript-after-template-after-1kb.html"></iframe>
     50 <iframe src="in-object.html"></iframe>
     51 <iframe src="in-script.html"></iframe>
     52 <iframe src="in-style.html"></iframe>
     53 <iframe src="in-svg.html"></iframe>
     54 <iframe src="in-svg-in-cdata.html"></iframe>
     55 <iframe src="in-template-after-1kb.html"></iframe>
     56 <iframe src="in-template.html"></iframe>
     57 <iframe src="in-title.html"></iframe>
     58 <iframe src="ncr.html"></iframe>
     59 <iframe src="non-ascii-in-comment-before.html"></iframe>
     60 <iframe src="non-ascii-in-title-before.html"></iframe>