[wp-hackers] Editor Link Behavior

Otto otto at ottodestruct.com
Fri Oct 24 22:17:10 UTC 2014


I find your question confusing. What is the ultimate markup you're looking
to end up with?

I ask because anchor tags (links) don't have alt text. Alt text goes on
images.

Now, anchor tags can have "title" attributes, but the title should not be
just a duplication of the anchor text (the stuff inside the <a></a>). The
anchor text should name the link, while the title should provide additional
information about it. They should never be the same.

So, what you have selected should be what text becomes the link. You should
select the anchor text. Which means that it naturally should not duplicate
that text anywhere else in the anchor tag's attributes, as I see it.

-Otto



On Fri, Oct 24, 2014 at 4:09 PM, Eric Mann <eric at eam.me> wrote:

> Before I open a Trac ticket, I wanted to talk through a minor frustration I
> have with the link tool to see if a) it's an issue others have and b) if
> it's something worth changing.
>
> When I'm writing a post, I often highlight text and want to use *that same
> text* as the text for the link (which is used as alt text when the anchor
> tag is rendered in markup). This is particularly relevant when I'm linking
> to a book title, another article, or a person's name.
>
> What I'd really like to see is the link text pre-populated with my
> selection when the link modal opens.
>
> Does this make sense to anyone else? Does it feel like a good idea? Should
> I take some time to open a ticket and work on a patch?
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list