Request assignment of unique class attributes on stock quote table row <tr> tags

jfeezell - January 7, 2009 - 11:18
Project:Stock
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

Stock Module very useful - thank you.

A request: It would be very helpful if the generated HTML code for each table row of stock quotes included a unique class identifier from the quote symbol for that row, to facilitate simpler, more legible report, e.g.,

<tr class="odd"><td><a href="http://finance.yahoo.com/q?s=^DJI">^DJI</a></td><td><div align="right">9,015.10</div></td><td><div align="right"><div class="plus">62.21</div></div></td> </tr>

were to be generated as:

<tr class="odd" "stocksym-dji"><td><a href="http://finance.yahoo.com/q?s=^DJI">^DJI</a></td><td><div align="right">9,015.10</div></td><td><div align="right"><div class="plus">62.21</div></div></td> </tr>

(note additional class attribute in tag)

If the latter code were generated, using css content :before and :after styles, the displayed text could include full stock/index names with, or instead of, symbols. I believe the resultant display would be more legible, accessible to viewers outside of the Bunker-Ramo / Quotron jock set, like me. Thus:

Symbol Last Change
^DJI 9,015.10 62.21

could, instead read as:

Symbol Last Change
Dow Jones Industrial Average 9,015.10 62.21

Thank you for your consideration.

#1

kbahey - January 7, 2009 - 15:56

If you have a patch to contribute please do so.

See http://drupal.org/patch to learn how to create a patch

 
 

Drupal is a registered trademark of Dries Buytaert.