Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#1254 closed defect (worksforme)

IE7 hasSelectedText(); / getSelection() / getSelectedHTML()

Reported by: guest Owned by: gogo
Priority: normal Milestone: 0.96
Component: Xinha Core Version: trunk
Severity: normal Keywords: hasSelectedText
Cc: thinice@…, guest

Description

http://xinha.raimundmeyer.de/JSdoc/Xinha/Xinha.html#hasSelectedText

There's no note about this actually -not- working in IE7.

alert(e.hasSelectedText()); //Returns 'true' in FF3, 'false' in IE7

Change History (4)

comment:1 Changed 11 years ago by guest

  • Cc guest added
  • Summary changed from IE7 hasSelectedText(); to IE7 hasSelectedText(); / getSelection() / getSelectedHTML()

After further investigation, and bashing my head against my desk for the last I can't count how many hours. I installed a clean zip of 0.95 and tested out the 'stylist' plugin (as it emulates what I want to do the best). If you select text and click on 'Pretty Pink' with IE7, the style is not applied.

comment:2 Changed 11 years ago by guest

http://www.xinha.org/punbb/viewtopic.php?id=1544

Demo plugin code reaffirms a possible issue with IE's selection functions.

comment:3 Changed 11 years ago by gogo

  • Resolution set to worksforme
  • Status changed from new to closed

Vista, IE7, I can NOT reproduce the behaviour in the current Nightly ( wiki:Example? ) - it all works correctly.

"Pretty Pink" has the CSS selector "p.pink_text" and as such can only be applied to paragraphs, applying Pretty Pink will apply the class to the entire paragraph even if you select only part of said paragraph, this is correct.

.bluetext can be applied to anything, applying this to a selection will correctly only make the selection blue (it wraps it in a span and applies the class to the span).

comment:4 Changed 11 years ago by gogo

Note: See TracTickets for help on using tickets.