CDATA is ignored for dir=auto in html document");

        promise_test(async function() {
            let [div, cdata] = await createXHTMLCase(1);
            assert_true(div.matches(":dir(ltr)"));
        }, "Text in CDATASection is considered when determining auto directionality");

        promise_test(async function() {
            let [div, cdata] = await createXHTMLCase(2);
            assert_true(div.matches(":dir(ltr)"));
            cdata.remove();
            assert_true(div.matches(":dir(rtl)"))