Open Bug 646109 Opened 10 years ago Updated 10 years ago

'Select All' broken in XHTML if html is not the root element

Categories

(Core :: DOM: Selection, defect)

x86
Windows Vista
defect
Not set
normal

Tracking

()

UNCONFIRMED

People

(Reporter: crazy-daniel, Unassigned)

Details

(Keywords: testcase)

Attachments

(2 files)

Attached file small testcase
In an XHTML document that has a 'root' element other than the html element, Select All doesn't work. Neither by right click > Select All nor by Ctrl + A.
Confirmed on Mozilla/5.0 (Windows NT 6.1; rv:2.2a1pre) Gecko/20110329 Firefox/4.2a1pre. 
Able to reproduce in firefox 3.6.16 also.
I have discovered that the exact same markup doesn't suffer from this issue if the media type 'text/xml' or 'application/xml' is used instead of 'application/xhtml+xml'.

I don't know what that means implementation wise, but it appears there is some kind of differentiation going on.
You need to log in before you can comment on or make changes to this bug.