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.

IMG tag with data-src contains % character fails to compile on IE8+ #8498

Open
@imcotton

Description

@imcotton

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions