Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

Original Question

On the whole the SO HTML is very good - I've never had any rendering problems.

However I am working on an Stackoverflow iPhone App and the use of HTML tables (mainly on the question pages i.e. this one) are causing me some problems.

I'd like to see the removal of <table> to be replaced with the more versatile <div>.

Problem Clarification

While I agree with sentiment that there is nothing wrong with <table>s the use on the questions/[0-9]*/ pages hampers efforts third parties to write custom CSS.

Not a Screen Scraper

The App refereed to simply loads the webpage into a UIWebKit and substitutes the CSS file for a custom one that formats pages to look more in-keeping with the iPhone.

It does not alter the HTML or Javascript in anyway, only the CSS is substituted.

share|improve this question

marked as duplicate by GEOCHET, Hilarious Comedy Pesto, random, BinaryMisfit Oct 21 '09 at 14:04

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Wait, so you're screen scraping SO for your app? Is Jeff alright with this? – belgariontheking Oct 21 '09 at 13:48
If divs are so versatile, how come they're not using them on SO? – JSONBog Oct 21 '09 at 13:48
No screen scraping here thank you very much. – rjstelling Oct 21 '09 at 13:49
@rjstelling: Ok, well without an API, would you like to explain how you are proposing you are getting data? You even admit to not having an API on your site. – GEOCHET Oct 21 '09 at 13:51
And if you are not screen scraping, why would you be concerned about <table> tags? – GEOCHET Oct 21 '09 at 13:52
I have never understood the argument for "improved semantics" in having a web page consisting of something along the lines of <div><div><div><div></div><div></div></div><div></div></div></div>. – Hilarious Comedy Pesto Oct 21 '09 at 13:54
@Pesto: CSS tards. They are the same tards who cry about 'web standards'. – GEOCHET Oct 21 '09 at 13:55
@Rich B: I call those people "Firefox users". – JSONBog Oct 21 '09 at 13:56
@Welbog: I concur. – GEOCHET Oct 21 '09 at 13:56
@Welbog: <div id="nou" style="reply angry">no u!</div> – Hilarious Comedy Pesto Oct 21 '09 at 13:57
@Pesto: <table class="table_with_bold_text_inside"><tr><td class="td_with_normal_text_override">ha!</td><td>I laugh at your web standards!</td></tr><tr><td colspan="2">pickles</td></tr></table> – JSONBog Oct 21 '09 at 14:00
@Rich B: Just use XPath and jQuery, noob. – JSONBog Oct 21 '09 at 14:02
@Welbog: That sounds like some sort of wizardry. Help me with this regex. – GEOCHET Oct 21 '09 at 14:03
@Rich B: Any regular expression that can correctly parse any HTML table is going to be longer than any HTML table. – JSONBog Oct 21 '09 at 14:04
@Welbog: Why on Earth would you use the built-in functionality to put things in columns and span them across multiple columns when you could recreate it in CSS with a bunch of workarounds for various browsers?! It's madness! – Hilarious Comedy Pesto Oct 21 '09 at 14:09

There is nothing wrong with using <table>s.

If you are having issues with your screen scraper, why not ask for help with it?

share|improve this answer

I show amusement at Div vs. Tables holy war Here

share|improve this answer

There is nothing wrong with the use of the <table> tag when it is used for tabular data. I would argue that the SO questions view is a table of questions.

Using <div>s for a tabular information would be inappropriate.

(Besides, implementation of SO is for everyone, not just so your app can processes it happily)

(I haven't actually looked at the HTML, so maybe I'm wrong).

share|improve this answer

Not the answer you're looking for? Browse other questions tagged .