Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

With AngularJS 1.7 the data-src attribute of an image gets automatically replaced #16734

Closed
javascript-indonesias/angular.js
#122
@fbrandel

Description

@fbrandel

I'm submitting a ...

  • bug report

Current behavior:
The data-src attribute of an image gets replaced with the value of the src attribute

Expected:
The data-src attribute contains the original value.
As the image is plain HTML, and has no obvious directives bound to it, I would expect that nothing is changed for this element. With version 1.7 this somehow changed.

Steps to reproduce
See Plunker (http://plnkr.co/edit/bpouxUmsXretMfcb)

  • With AngularJS version 1.7 the data-src attribute changes to the value of the src attribute (Red border)
  • With AngularJS version 1.6 the data-src attribute contains the original value (Green border)

AngularJS version: 1.7.x
Browser: all

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions