tor-browser

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

data-xhtml-with-dtd.html (1166B)


      1 <!DOCTYPE html>
      2 <!--
      3    Any copyright is dedicated to the Public Domain.
      4    http://creativecommons.org/publicdomain/zero/1.0/
      5  -->
      6 <html>
      7  <head>
      8    <title>
      9      Test that an XHTML document with a data: URL still handles the XHTML DTD
     10      properly even if the DTD URL is given as a relative URL.
     11    </title>
     12    <link rel="author" title="Boris Zbarsky" href="bzbarsky@mit.edu">
     13    <link rel="match" href="data-xhtml-with-dtd-ref.html">
     14  </head>
     15  <body>
     16    Test passes if it correctly shows &Aacute; in the subframe.
     17    <hr>
     18    <!-- Document in the subframe is:
     19 <?xml version="1.0"?>
     20 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
     21 <html xmlns="http://www.w3.org/1999/xhtml">
     22  <body>
     23    &Aacute;
     24  </body>
     25 </html>
     26    -->
     27    <iframe src='data:application/xml,%3C%3Fxml%20version%3D%221.0%22%3F%3E%0A%3C!DOCTYPE%20html%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20XHTML%201.0%20Strict%2F%2FEN%22%20%22DTD%2Fxhtml1-strict.dtd%22%3E%0A%3Chtml%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxhtml%22%3E%0A%20%20%3Cbody%3E%0A%20%20%20%20%26Aacute%3B%0A%20%20%3C%2Fbody%3E%0A%3C%2Fhtml%3E%0A'></iframe>