bugGNU Wget - Bugs: bug #21357, Strip spaces within links


bug #21357: Strip spaces within links

Submitter:  Micah Cowan <micahcowan>
Submitted:  Wed 17 Oct 2007 05:48:58 PM UTC
Category:  Program Logic Severity:  3 - Normal
Priority:  5 - Normal Status:  In Progress
Privacy:  Public Assigned to:  vinocit
Originator Name:  Open/Closed:  Open
Release:  None Operating System:  None
Reproducibility:  None Fixed Release:  None
Planned Release:  1.15 Regression:  None
Work Required:  0 - Hours Patch Included:  None
* Mandatory Fields

Add a New Comment Rich Markup

Wed 17 Oct 2007 05:48:58 PM UTC, original submission:  

A user has pointed out that while Wget regards spaces within href attributes (and the like) as user error, browsers such as Firefox simply strip them out.

Strict HTML syntax would interpret any whitespace within the attribute as part of the attribute's value. Whitespace is not legal as part of a URI (but then, neither are non-ASCII byte values, which have been accepted for some time); apparently a common way to deal with this is to simply strip it all out.

We should "do what other browsers do" by default, and provide an option to make Wget stricter (similar to how we currently do SGML comments).

Micah Cowan <micahcowan>


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

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by vinocit (Updated the item)
  • -email is unavailable- added by micahcowan (Submitted the item)

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2008-08-26 vinocit StatusConfirmed In Progress
        Assigned toNone vinocit
    2008-01-27 micahcowan Planned Release1.12 1.15

    Back to the top

    Powered by Savane 3.12.
    Corresponding source code