-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
url encoding applied by XSLT in Webkit #79
Comments
Potential fixes
Solution 1: announce the FF & Chromium differences, do not support the
<cem-icon>👀 eyes</cem-icon> - treat 1st WORD as icon
<cem-icon class="far fa-eye">font awesome eye</cem-icon> - class attribute have to be cleared by CEM
<cem-icon class="visibility" >material icon</cem-icon> - it is not a real class name.
The antipattern still in place and translated into <span xmlns="" class="icon material-icons" >visibility</span>
<cem-icon src="data:👀"> eyes</cem-icon> - treat data: URL protocol and still needs decoding.
<cem-icon image="👀"> eyes</cem-icon> - use `image` attributes instead of src: URL protocol and still needs decoding.
other attribute names to be considered: background, content,
Solution 2: after transformation decode all Solution 3: after transformation decode
Following would be confusing as "escape" would mean decoding:
|
|
For |
|
In FF works fine, in Crome produces
where
src
andhref
attributes are url endcoded.That prevents to use
src
orhref
by DCE without decoding them first.<cem-icon src="👀">eyes</cem-icon>
produces%F0%9F%9B%92 eyes
The text was updated successfully, but these errors were encountered: