public WhitespaceFixingVisitor(Set inlineStyleElements,
Set inlineLinkElements,
DOMProtocol protocol) {
this.inlineStyleElements = inlineStyleElements;
this.inlineLinkElements = inlineLinkElements;
WhiteSpaceFixStrategyFactory factory =
WhiteSpaceFixStrategyFactory.getInstance();
String openAnchorStrategyRule =
protocol.getMarinerPageContext().getDevicePolicyValue(
DevicePolicyConstants.FIX_FOR_OPEN_ANCHOR_ELEMENT);
openAnchorStrategy =
factory.getWhitespaceFixStrategy(openAnchorStrategyRule);
String closeAnchorStrategyRule =
protocol.getMarinerPageContext().getDevicePolicyValue(
DevicePolicyConstants.FIX_FOR_CLOSING_ANCHOR_ELEMENT);
closeAnchorStrategy =
factory.getWhitespaceFixStrategy(closeAnchorStrategyRule);
String openStyleStrategyRule =
protocol.getMarinerPageContext().getDevicePolicyValue(
DevicePolicyConstants.FIX_FOR_OPEN_INLINE_STYLING_ELEMENTS);
openStyleStrategy =
factory.getWhitespaceFixStrategy(openStyleStrategyRule);
String closeStyleStrategyRule =
protocol.getMarinerPageContext().getDevicePolicyValue(
DevicePolicyConstants.FIX_FOR_CLOSING_INLINE_STYLING_ELEMENTS);
closeStyleStrategy =
factory.getWhitespaceFixStrategy(closeStyleStrategyRule);
}