Views outputs this in list mode:

<div class="item-list"><ul><li><div class=&#039;view-item view-item-products&#039;><div class=&#039;view-field view-data-node-title&#039;><a href="/~robert/drupal/product/5">Phone</a></div><div class=&#039;view-field view-data-node-data-field-subtitle-field-subtitle-value&#039;>Example product</div><div class=&#039;view-field view-data-node-data-field-thumbnail-field-thumbnail-fid&#039;><img src="http://localhost/~robert/drupal/files/imagecache/thumb/files/images/phone2_0.jpg" alt="phone2.jpg" title="phone2.jpg"  /></div></div>
</li></ul></div></div></div>

As you can see it outputs code for apostrophe instead of quotation. As a result, it messes things up for CSS, i can't select the view-item div.
I'm using drupal 5.7. Please tell me if there's a workaround for this thing...

Comments

merlinofchaos’s picture

Status: Active » Closed (works as designed)

I've never heard of anyone not being able to select the view-item. All of my research indicates that single quotes are valid in both HTML 4.01 and X-HTML. div.view-item and div.view-item-products will both properly reference those divs.

http://www.featureblend.com/xhtml-attribute-quotes.html
http://www.w3schools.com/HTML/html_attributes.asp

Robert_K’s picture

Status: Closed (works as designed) » Closed (fixed)

You're right. Problem was in my CSS. Thanks and sorry for bugging you :)