diff --git a/src/infrastructure/javelin/markup.php b/src/infrastructure/javelin/markup.php index 1836eeb6ff..98c0a6a071 100644 --- a/src/infrastructure/javelin/markup.php +++ b/src/infrastructure/javelin/markup.php @@ -37,7 +37,11 @@ function javelin_render_tag( unset($attributes[$k]); break; case 'mustcapture': - $attributes['data-mustcapture'] = '1'; + if ($v) { + $attributes['data-mustcapture'] = '1'; + } else { + unset($attributes['data-mustcapture']); + } unset($attributes[$k]); break; }