[Bug 22326] Make the dir attribute use isolation instead of embedding. Fixes https://www.w3.org/Bugs/Public/show_bug.cgi?id=22326.