if (nextNode && nextNode->Tag() == aProperty &&
HasAttrVal(nextNode, aAttribute, *aValue) &&
IsOnlyAttribute(priorNode, *aAttribute)) {
// following sib is already right kind of inline node; slide this over into it
return MoveNode(aNode->AsDOMNode(), nextNode->AsDOMNode(), 0);
}
Do you spot the bug? It says "priorNode" instead of "nextNode" on the IsOnlyAttribute line. Ms2ger's use of MOZ_ASSERT in bug 750079 part a is hit by my editing tests because of this. Yay for catching bugs via fast failure in comprehensive test suites!