Support nested shortcodes when checking attributes