<blockquote>
<blockquote>
<p>The reason why this is outside of <code>xml.node(attrs) do |nd|</code> is that it fails horribly otherwise - either producing invalid XML or simply crashing, I don't recall at the moment.</p>
</blockquote>
<p>Oh, then perhaps there is. That's a pity since I would have thought the <code>each</code> simply doesn't do anything when there's no tags.</p>
</blockquote>
<p>I just tried removing the <code>empty?</code> special case and it seems to work fine for me for nodes with no tags - it would odd if it didn't given that ways and relations aren't special cased like that and they presumably work.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2223?email_source=notifications&email_token=AAK2OLM55YZLK2QFUWEXRM3P4RWSZA5CNFSM4HLMFYO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYWITNQ#issuecomment-506235318">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLMFBK4LYEPVJ3FCV53P4RWSZANCNFSM4HLMFYOQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAK2OLMIAPVD4AZZBJEZ2MLP4RWSZA5CNFSM4HLMFYO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYWITNQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/2223?email_source=notifications\u0026email_token=AAK2OLM55YZLK2QFUWEXRM3P4RWSZA5CNFSM4HLMFYO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYWITNQ#issuecomment-506235318",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/2223?email_source=notifications\u0026email_token=AAK2OLM55YZLK2QFUWEXRM3P4RWSZA5CNFSM4HLMFYO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYWITNQ#issuecomment-506235318",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>