<!DOCTYPE html>
<head>
    <meta charset="utf-8">
    <link rel="author" title="Vincent Hilla" href="mailto:vhilla@mozilla.com">
    <link rel="help" href="https://html.spec.whatwg.org/multipage/dom.html#the-directionality">
    <script src="/resources/testharness.js"></script>
    <script src="/resources/testharnessreport.js"></script>
</head>
<body>
    <div id="test1" dir="auto">
        <![CDATA[foo]]>اختبر
    </div>

    <iframe src="cdata-iframe.xhtml"></iframe>

    <script>
        function aw