When selecting parts of the DOM using the selection API, the behavior related to tables is inconsistent. Please check the demo here: http://jsfiddle.net/tTUJL/ This sample shows how inserting a newline between the TABLE and a TBODY tag changes (breaks) the behavior of WebKit's implementation of the Selection API. The HTML sources of the two tables shown is identical, except for some newlines and spaces between the tags. However, selecting the TBODY works with the first one, but not with the second one. (Please hit the test buttons to see the results.) (In FF, both tables work the same way.) Detected with: Chromium 24.0.1312.68 (Developer Build 180326) Debian 7.0 Powered by WebKit 537.17 (trunk@132834)