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

unmatched tags in geocache reference file #895

Closed
tsteven4 opened this issue Jul 30, 2022 · 5 comments
Closed

unmatched tags in geocache reference file #895

tsteven4 opened this issue Jul 30, 2022 · 5 comments

Comments

@tsteven4
Copy link
Collaborator

  1. &lt;img SRC="http://www.mtgc.org/mtgc_member-banner.gif" WIDTH="500" HEIGHT="40" ALT="Member of Middle Tennessee GeoCachers Club [www.mtgc.org]" BORDER="0"&gt;&lt;/a&gt;&lt;/p&gt;</groundspeak:long_description>

    The tags </a></p> are unmatched.
    This causes the output from gpsbabel -i gpx -f reference/gc/GCGCA8.gpx -o html -F GCGCA8.html to contain unmatched tags.
  2. There is an additional problem. The P end tag we add after gpsbabeldesclong is unmatched because of the UL tags in what we think is the paragraph content.
@robertlipe
Copy link
Collaborator

robertlipe commented Jul 30, 2022 via email

@robertlipe
Copy link
Collaborator

Is there remaining action here? That embedded HTML snippet is from ancient browser days, when

s were considered self closing. (This was before even XHTML.) It's certainly in "quirks mode" even if it's not outright broken.

If you're OK with me deleting </a></p&gt at the end of long description and fixing any fallout reference files I'll do that. It's trying to close a link that's not here and a paragraph that was never opened. That's just copy-paste error in the source material from the Mozilla 1.5 era or so...

We're not testing the validity of our embedded HTML, so I don't think we have to faithfully reproduce/handle/fix what was clearly broken HTML.

I'm happy to do the fix if you agree that's OK.

@robertlipe
Copy link
Collaborator

Sticking a note to #1196

@tsteven4
Copy link
Collaborator Author

2. There is an additional problem. The P end tag we add after gpsbabeldesclong is unmatched because of the UL tags in what we think is the paragraph content.

Point 2. was fixed in dcdbb6a

@tsteven4
Copy link
Collaborator Author

  1. The tags </a></p> are unmatched.

Point 1. is fixed in #1196, and updated version of GCGCA8.gpx.

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

2 participants