Restrict modifiers to default visibility
Ignore text nodes