I have the following code which is setting the target, href & textcontent for an element in HTML, this was working perfectly fine in JQuery 1.4.1 & 1.5.1 but after updating to 1.7.1 it does not change the ‘textcontent’ property of the visible element, the href has been updated.
$("#uriEmma").attr('textcontent', emmaUri);
$("#uriEmma").attr('href', emmaUri);
$("#uriEmma").attr('target', '_blank');
Any ideas why this might be?
You should use
.prop()and proper casing:textContent. ExampleFrom documentation: