malformed hyperlink using "link" button in Text view of new post
-
The following repeats and edits some information I posted on someone else’s thread.
If I create a hyperlink using the link button in the Text window of a new post, it does not work properly.
Here’s what I found. The first set is using the Link button, it seems to be malformed. The second set was generated using the same information in the Kompozer web editor, then copied and pasted in. The Kompozer version works. The primary difference I see is the use of the title= text and the location of the title relative to the > that ends the link information in the WordPress version.
This is the link generated by WordPress:
<a href="https://www.bxnspe.org" title="Bronx Chapter" target="_blank"></a>
This is that link without the “code” ticks, as it shows on the website:
Nothing to the right of the : shows on the post.This is the link using Kompozer:
<a href="https://www.bxnspe.org" target="_blank">Bronx Chapter</a>
This is that link without the “code” ticks: Bronx Chapter
It works as expected, displays “Bronx Chapter” in hyperlink color and has the link underlying the text.The site is https://www.bxnspe.org, but I have not posted the example.
I played with the content of the WP link a little more. It seems that the critical difference is that the link format that works has a “>” after the link information and then the label text. In addition, if “title=” is left in it displays in the post as title=”Bronx Chapter” in hyperlink color.
So, to fix the WP generated link: move the title past the >, remove the title=” as well as the final “.
I think that this is a WP bug that really needs to be fixed!
- The topic ‘malformed hyperlink using "link" button in Text view of new post’ is closed to new replies.