It seems to me that the right thing to do in this case is simply to add another element to the test case... if (type == "bold" || type == "b" || type == "x-b") { ...which would allow for both the old qualifiers plus the new, proper qualifier to work. Any objection to committing such a trivial change?