<script type="application/json" id="selectors">
        [{
            "selector": "p:only-child",
            "match": ["1"]
        },
        {
            "selector": "div#testDOM > div > p",
            "match": ["1"]
        }]
</script>
<div id="testDOM">
    <p>This paragraph should have normal background</p>
    <div>This div contains only one paragraph
        <p id="1" class="red">This paragraph should have green background</p>
    </div>
</div>
