<html dir="LTR">
<head></head>
<body>
<iframe id="id_description_iframe" class="rte-zone" height="200" frameborder="0" title="description">
<html>
<head>
<script>
alert('document.querySelector("html").dir');
</script>
</head>
<body class="frameBody">
test<br/>
</body>
</html>
</iframe>
</body>
</html>
What I need is the value of dir in html that is "LTR".
I tried "document.querySelector("html").dir" from inside iframe's code and it returns "" as it looks for the second html tag.