Skip to content
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

(epub-test-fail: ocf-url_parse-leaking-relative) #13

Open
gautierchomel opened this issue Jun 21, 2022 · 0 comments
Open

(epub-test-fail: ocf-url_parse-leaking-relative) #13

gautierchomel opened this issue Jun 21, 2022 · 0 comments

Comments

@gautierchomel
Copy link
Member

The ocf-url_parse-leaking-relative test fails at

  • the calculated absolute URL value is of the form "{Container Root URL}media/imgs/monastery.jpg":
    Calculated absolute URL:httpsr2://id_l2hvb_w_uv_z2_f1_ly5jb25ma_wcv_r_u_r_s_t_g_fi_ll_rob3_jpd_w1_s_z_w_fk_z_x_ivc_h_vib_glj_y_x_rpb25z_l2_u0_z_t_a3_mjk4_l_t_y5_n_tkt_n_d_e4_my1i_m_w_vl_l_t_jk_n_t_yz_o_w_jj_zj_a1_zi9ib29r_lm_vwd_w_i-/media/imgs/monastery.jpg
    (Test URL: ../../../../../media/imgs/monastery.jpg)
    Script in XHTML
// The (expected) Javascript representation of the Container Root URL, as defined by the specification
 const container_root_URL = new URL('../..', document.documentURI);
  document.getElementById('container_root_url').textContent = container_root_URL;

  document.getElementById('test_url').textContent = parent_relative;

                    const image_src = new URL(parent_relative, container_root_URL);
                    document.getElementById('image_url_parent_paths').textContent = image_src;

  document.getElementById('expected').textContent = `{Container Root URL}${expected_path}`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant