Bug 110595 - Inconsistent behavior of the Selection API on tables, depending on whitespaces in HTML source
Summary: Inconsistent behavior of the Selection API on tables, depending on whitespace...
Status: UNCONFIRMED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL: http://jsfiddle.net/tTUJL/
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-22 05:27 PST by Kristof Csillag
Modified: 2013-02-22 05:27 PST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kristof Csillag 2013-02-22 05:27:28 PST
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)