/** Test for Bug 738440 **/
document.execCommand("stylewithcss", false, "true");
is(document.queryCommandState("stylewithcss"), true, "setting stylewithcss to true should cause its state to be true");
is(document.queryCommandState("usecss"), false, "usecss state should always be false");
document.execCommand("stylewithcss", false, "false");
is(document.queryCommandState("stylewithcss"), false, "setting stylewithcss to false should cause its state to be false");
is(document.queryCommandState("usecss"), false, "usecss state should always be false");
document.execCommand("usecss", false, "true");
is(document.queryCommandState("stylewithcss"), false, "setting usecss to true should cause stylewithcss state to be false");
is(document.queryCommandState("usecss"), false, "usecss state should always be false");
document.execCommand("usecss", false, "false");
is(document.queryCommandState("stylewithcss"), true, "setting usecss to false should cause stylewithcss state to be true");
is(document.queryCommandState("usecss"), false, "usecss state should always be false");
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.