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.
IMG tag with data-src contains % character fails to compile on IE8+ #8498
Open
Description
First here is markup code for <img />
tag
<img data-src="200%x{{ 50 * 2 }}" />
Secondly please checkout the full example runs on JS Bin, under the IE Developer Tools Console will yells invalid argument
, and by causing from code in sanitizeUri.js#L66.
Technically speaking, the root cause is that percent character %
in URI should be encoded to %25
, but there still use cases which that content not intend to be used as a valid URI even it's been put into data-src
attribute, please be aware.
Reproducible: always
Browsers being tested: IE8 IE9
Operating system: Windows 7