საიტის გასაუმჯობესებელი სამუშაოების მიმდინარეობისას, შესაძლებლობების ნაწილი შეიზღუდება. თუ სტატიით ვერ მოახერხებ ხარვეზის გამოსწორება და შეკითხვის დასმა გსურთ, ჩვენი მხარდაჭერის გუნდი დაგეხმარებათ @FirefoxSupport გვერდის მეშვეობით Twitter-ზე და /r/firefox განყოფილებაში Reddit-ზე.

ძიება მხარდაჭერაში

ნუ გაებმებით თაღლითების მახეში მხარდაჭერის საიტზე. აქ არასდროს მოგთხოვენ სატელეფონო ნომერზე დარეკვას, შეტყობინების გამოგზავნას ან პირადი მონაცემების გაზიარებას. გთხოვთ, გვაცნობოთ რამე საეჭვოს შემჩნევისას „დარღვევაზე მოხსენების“ მეშვეობით.

ვრცლად

Firefox removes href attribute from anchor tag on copy paste

  • 1 პასუხი
  • 2 მომხმარებელი წააწყდა მსგავს სიძნელეს
  • 1 ნახვა
  • ბოლოს გამოეხმაურა jscher2000 - Support Volunteer

Hi Support,

I have a text along with the image used as a hyperlink as follows.

"Sample Text.<a href="javascript:myfunction()"></a>"

When i copy the above text and paste it inside a HTML Control (for e.g. iframe), the control removes the href attribute of 'anchor' tag. It happens only with firefox and safari. It is working correctly in internet explorer.

"Sample Text.<a ></a>"

Is there any solution for this.? Awaiting for sooner response

Try clicking on the below link

http://screencast.com/t/sXq6BcZvJB

Hi Support, I have a text along with the image used as a hyperlink as follows. "Sample Text.<a href="javascript:myfunction()"><img title="sample image" src="sample.gif" /></a>" When i copy the above text and paste it inside a HTML Control (for e.g. iframe), the control removes the href attribute of 'anchor' tag. It happens only with firefox and safari. It is working correctly in internet explorer. "Sample Text.<a ><img title="sample image" src="sample.gif" /></a>" Is there any solution for this.? Awaiting for sooner response Try clicking on the below link http://screencast.com/t/sXq6BcZvJB

ყველა პასუხი (1)

I tested this in Gmail compose, and what I see is: regular links (href="url") are preserved during copy/paste, but javascript links (href="javascript:") are dropped/cleared.

I don't know whether this is by design. One place to research that would be https://bugzilla.mozilla.org/.