bugw3 - Bugs: bug #21601, Wrong handling of relative links...

 
 

bug #21601: Wrong handling of relative links with only query part

Submitted by:  Magnus Henoch <legoscia>
Submitted on:  Sat 17 Nov 2007 01:33:03 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 18 Nov 2007 12:04:56 PM UTC, comment #1:

It seems that the bug resides in url-default-expander in Emacs' URL library:

      • Welcome to IELM *** Type (describe-mode) for help.

ELISP> (defun test-url-expand ()
(let ((relative (url-generic-parse-url "?foo"))
(base (url-generic-parse-url "http://foo/bar/baz.html")))
(url-default-expander relative base)
relative))
test-url-expand
ELISP> (test-url-expand)
[cl-struct-url "http" nil nil "foo" 80 "/bar?foo" nil nil nil]

Magnus Henoch <legoscia>
Project Administrator
Sat 17 Nov 2007 01:33:03 PM UTC, original submission:

If the page http://foo/bar/baz.html contains a link ?foo, the link should point to http://foo/bar/baz.html?foo, but W3 currently makes it http://foo/bar?foo.

Magnus Henoch <legoscia>
Project Administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by legoscia (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup