Added allowed empty elements function

Have reverted this as it's unnecessary. Any non-block elements should not
be allowed to be empty, I think.

On 1 October 2014 16:37, Sébastien Cevey <notifications@github.com> wrote:

> In src/element.js:
>
> > @@ -5,10 +5,16 @@ define(['lodash-amd/modern/collections/contains'], function (contains) {
> >    // TODO: not exhaustive?
> >    var blockElementNames = ['P', 'LI', 'DIV', 'BLOCKQUOTE', 'UL', 'OL', 'H1',
> >                             'H2', 'H3', 'H4', 'H5', 'H6', 'TABLE', 'TH', 'TD'];
> > +  var allowedEmptyElements = ['B', 'I'];
>
> What about strong, strikethrough, span, etc? Bit worried this is overly
> specialised.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/guardian/scribe-common/pull/7/files#r18286697>.
>

-- 

------------------------------
Visit theguardian.com. On your mobile and tablet, download the Guardian 
iPhone and Android apps theguardian.com/guardianapp and our tablet editions 
theguardian.com/editions.  Save up to 57% by subscribing to the Guardian 
and Observer - choose the papers you want and get full digital access. 
 Visit subscribe.theguardian.com

This e-mail and all attachments are confidential and may also be 
privileged. If you are not the named recipient, please notify the sender 
and delete the e-mail and all attachments immediately. Do not disclose the 
contents to another person. You may not use the information for any 
purpose, or store, or copy, it in any way.  Guardian News & Media Limited 
is not liable for any computer viruses or other material transmitted with 
or as part of this e-mail. You should employ virus checking software.
 
Guardian News & Media Limited is a member of Guardian Media Group plc. Registered 
Office: PO Box 68164, Kings Place, 90 York Way, London, N1P 2AP.  Registered 
in England Number 908396