Opened 17 years ago

Closed 13 years ago

#21 closed Bug (worksforme)

Opera doesn't recognize user-select:none

Reported by: Alfonso Martínez de Lizarrondo Owned by: Alfonso Martínez de Lizarrondo
Priority: Low Milestone:
Component: General Version:
Keywords: HasPatch Opera Cc: Hallvord R. M. Steen (Opera Software)

Description

The text in the toolbar can be selected (and it might lead to those little errors when the focus gets lots and user is frustrated). I've tested and it doesn't recognize any CSS attribute with regards to user-select, but acts as IE with the property unselectable:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>Untitled Page</title>
</head>
<body>
	<div style="user-select:none">
		This text shouldn't be selectable. user-select:none
	</div>
	<div style="-moz-user-select:none">
		This text shouldn't be selectable. -moz-user-select:none
	</div>
	<div style="-o-user-select:none">
		This text shouldn't be selectable. -o-user-select:none
	</div>
	<div unselectable = 'on'>
		This text shouldn't be selectable. unselectable = 'on'
	</div>
</body>
</html>

So I've tested and copying the IE code seems to work. I'm attaching a patch.

I think that it should be reported to Opera so we can have a cleaner code, but for the moment we can use this workaround.

Attachments (1)

unselectable.patch (1020 bytes) - added by Alfonso 17 years ago.
proposed patch for fcktools_gecko

Download all attachments as: .zip

Change History (7)

Changed 17 years ago by Alfonso

Attachment: unselectable.patch added

proposed patch for fcktools_gecko

comment:1 Changed 16 years ago by Wojciech Olchawa

Keywords: HasPatch added

comment:2 Changed 16 years ago by Alfonso Martínez de Lizarrondo

Owner: set to Alfonso Martínez de Lizarrondo
Reporter: changed from Alfonso to Alfonso Martínez de Lizarrondo
Status: newassigned

comment:3 Changed 16 years ago by Frederico Caldeira Knabben

Cc: Hallvord R. M. Steen (Opera Software) added

comment:4 Changed 16 years ago by Frederico Caldeira Knabben

I'm implementing the unselectable solution to V3.

I've also request Opera to reconsider supporting it by CSS: https://bugs.opera.com/show_bug.cgi?id=248975

comment:5 Changed 15 years ago by Frederico Caldeira Knabben

Keywords: Opera added

comment:6 Changed 13 years ago by Frederico Caldeira Knabben

Resolution: worksforme
Status: assignedclosed

This is now ok (Opera 11).

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy