Jump to content

[Bug Report] <ul> not using style tag


TomKeegasi

Recommended Posts

It seems like something doesn't quite work when parsing HTML code for geocache listings.

 

Here is an example code that I'm working on

<div>
  Some text
  <ul style="margin:0;">
 	<li>Some list entry 1</li>
 	<li>Some list entry 2</li>
  </ul>
  Some more text
</div>

 

This code definitly works, as can be verified by creating a test.html file with this code, but when displaying this html-snippet inside a listing, there is still a margin AFTER the list-element.

 

So I inspected the actual lisitng DOM/code that gets displayed on geocaching.com using Firebug:

<div>
  Some text
  <ul>
 	<li>Some list entry 1</li>
 	<li>Some list entry 2</li>
  </ul>
  Some more text
</div>

As can easily be seen, the "style" attribute has gone rogue... :-/

 

This can quite easily be verified:

1) Create a new Listing (or use an existing one)

2) Copy the above (first) code into the long description box

3) Save & View updated listing

4) Inspect HTML code (by hand or e.g. using Firebug)

 

Sidenote: style is definitly an allowed attribute in combination with <ul>

Edited by TomKeegasi
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...