Closed (fixed)
Project:
Ubercart
Version:
5.x-1.5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Oct 2008 at 11:01 UTC
Updated:
11 Nov 2008 at 14:02 UTC
The theming function theme_uc_product_sell_price produces a SPAN element which then sits in a node's HTML output alongside block-level elements such as DIVs.
This isn't good practice for HTML and should be changed to a DIV.
Comments
Comment #1
rszrama commentedAre you referring to the HTML for a product node's teaser? Can you test the fix to make sure it doesn't affect the teaser unexpectedly?
Comment #2
rszrama commentedComment #3
joachim commentedHere's a product node in teaser, as currently generated:
With that SPAN changed to DIV, the display of the node in teaser (in Garland theme) is identical to the eye, just cleaner semantically.
Comment #4
Island Usurper commentedI guess I didn't realize that the product's description would be wrapped in
<p>tags, so<span>made sense to me. While it's not a technical violation (it validates after all), I see what you're saying about semantic markup.Fixed for 1.6 and 2.x.
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.