bugGNU Wget - Bugs: bug #55603, Naive comment type in use by...

 
 

bug #55603: Naive comment type in use by webdevs not recognized

Submitter:  None
Submitted:  Tue 29 Jan 2019 03:56:13 PM UTC
   
 
Category:  Program Logic Severity:  3 - Normal
Priority:  5 - Normal Status:  None
Privacy:  Public Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  Open Release:  1.20
Operating System:  Microsoft Windows Reproducibility:  Every Time
Fixed Release:  None Planned Release:  None
Regression:  None Work Required:  None
Patch Included:  No
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 29 Jan 2019 03:56:13 PM UTC, original submission:  

Some webdevs do comments like this:

<!--comment comment--!>

It displays correctly in web browsers (chrome and firefox checked). Wget does not recognize the termination.

I invoke Wget with:

start wget -nd -r -l 0 --reject-regex sort=nam -I /neopets http://lost.quiggle.org/

Using "--strict-comments" fixes it for this particular website. I don't know how it sees the comments in this mode, is it

"<!--comment>"?

The only occurrence of a "-->" is towards the end of the webpage and that is what is throwing naive comment parsing off. Maybe a strict html comment just can't be pieced together on the website.

I also suspect that naive comments mode parses this block differently from chrome, not sure though.

<script type="text/javascript"><!--
google_ad_client = "ca-pub-2676160449557179";
/* indexbase */
google_ad_slot = "6483197392";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
 
chrome does not see a html comment there

log.txt attached

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #46125:  log.txt added by None (49KiB - text/plain)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Follows 1 latest change.

Date Changed by Updated Field Previous Value => Replaced by
2019-01-29 None Attached File- Added log.txt, #46125

Back to the top

Powered by Savane 3.12.
Corresponding source code