Skip to content
This repository has been archived by the owner on Nov 27, 2022. It is now read-only.

html a tag should not be self-closed #171

Open
banjun opened this issue Feb 11, 2014 · 1 comment
Open

html a tag should not be self-closed #171

banjun opened this issue Feb 11, 2014 · 1 comment

Comments

@banjun
Copy link
Member

banjun commented Feb 11, 2014

Using QuoteIt plugin for url https://dl.dropboxusercontent.com/u/4388504/empty.html ( http://quoteit.herokuapp.com/clip.html?u=https%3A%2F%2Fdl.dropboxusercontent.com%2Fu%2F4388504%2Fempty.html ) generates html containing below, but AsakusaSatellite converts it to <a ... /> self-closing tag.
Because browsers interpret <a /> self-closing tag as <a> (not <a></a>), the scope of the a tag is unintentionally exntended to the following html elements.

<a href="https://dl.dropboxusercontent.com/u/4388504/empty.html" target="_blank"></a>

^ contents of a tag is empty

@mzp
Copy link
Member

mzp commented Feb 11, 2014

Oh..., you might touch a dark side of XHTML

banjun added a commit to banjun/AsakusaSatellite that referenced this issue Feb 20, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants