"Andreas Jonsson" <[email protected]> wrote in message 
news:[email protected]...
> 2010-09-02 15:15, Mark Clements (HappyDog) skrev:
>> "Andreas Jonsson"<[email protected]>  wrote in message
>> news:[email protected]...
>>
>>> * The call to the "begin" method is delayed until some actual inlined
>>>    content is produced.  The call is never taken if an "end" event is
>>>    recieved before such content.
>>>
>> Does this mean that constructs such as<span id="JSPlaceholder"></span> 
>> are
>> obliterated by the lexer?  Some empty inline (and block) elements may 
>> have
>> an important purpose as a JS DOM hook, and should not be removed from the
>> output stream.
>>
>
> Yes, that is correct.  This is what the original parser does for <i> and
> <b>.  But now when you mention it, I realize that this is probably just
> an artefact of cleaning up the apostrophe mess.
>
> I changed it so that inlined empty html elements are always included.
>

That sounds sensible.  Any HTML inserted manually should be left in place
(possibly tidied - e.g. addition of closing tags - but not removed).  It's
only the generated HTML that should (arguably) be cleaned up in this way.
If the user doesn't want the empty tag, then they can edit the page to
remove it.

- Mark Clements (HappyDog).



_______________________________________________
Wikitext-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitext-l

Reply via email to