Jump to content

SteveBaker

Members
  • Content Count

    4
  • Joined

  • Last visited

Community Reputation

0 Neutral

About SteveBaker

  • Rank
    Newbie
  1. http://www.w3schools.com/cssref/css_units.asp ...really ought to mention that according to http://www.w3.org/TR/CSS2/syndata.html#length-units the inch, millimeter and centimeter units are only going to work as you'd expect on desktop devices. On mobile platforms, the spec says that the browser should consider the typical viewing distance of these devices (ie much closer than a desktop display) and scale the display accordingly. Since there is no standard for what that typical viewing distance might be - device and browser manufacturers are at liberty to pick just about any number they f
  2. Many thanks! Yeah - so it looks like the insertRow behavior for a table with a thead and an empty tbody isn't well-described...or at least not well-implemented. It only really says what happens if you insert a row when there are multiple tbody elements (it puts the new row into the LAST tbody) - but it doesn't seem to mention what happens if there is a thead block present. It looks like both Chrome and Firefox behave as if the new element is added after the last row - no matter which section it's in. It's hard to say that this is a "bug" because the spec is unclear - but it is kinda
  3. I have an initially empty table with headings, like this: <table id='myTable'> <thead> <tr><th>xxx</th><th>yyy</th></tr> </thead> <tbody> </tbody> </table> How (in JavaScript) do I add a row of cells into the <tbody> section? I assumed that this: document.getElementById('myTable').insertRow ( 0 ) ...or perhaps this... document.getElementById('myTable').insertRow ( 1 ) ...would work - but they both add the new row into the <thead> section - I want to add to the &
×
×
  • Create New...