Fix performance issue when microdata semantics are disabled