-
-
Notifications
You must be signed in to change notification settings - Fork 226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Empty link, image, definition titles should output title=""
on a
, img
#192
Comments
EDIT: Is this a theoretical question, or are there cases where it genuinely matters whether an empty title attribute is used or the title attribute is simply omitted? |
It is rather meaningless, in HTML. Although there is a difference:
Hence, say there is an image in a link. If the link has a title, then the image will inherit that description. If the image has an empty title attribute, it would be removed explicitly. Background: I was recently looking at “empty” attributes. Other cases are: [](), [](<>), ![](), ![](<>) All produce a |
The following CM:
Yields:
I believe commonmark.js should output
title=""
if an empty title is defined in Markdown (""
,''
,()
). This might also be clarified in the spec with examples.The text was updated successfully, but these errors were encountered: