Opened 10 years ago
Closed 9 years ago
#1193 closed defect (fixed)
Stylist bug when formatting selected text
Reported by: | guest | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 0.96 |
Component: | Plugins | Version: | trunk |
Severity: | major | Keywords: | confirmed |
Cc: | walder@… |
Description
Hello Xinha developers.
I found a bug in the Stylist plugin:
Do the following to reproduce it
- Select some Text
- Select a CSS Style from Stylist and apply it
- Select the Text again (same snippet as in step 1) but this time add add some more text)
- Select the same CSS stlye as in step 2. apply it
- Select the whole formatted text remove the CSS Style and the text which was newly added in step 3 vanishes.
Change History (2)
comment:1 Changed 10 years ago by gogo
- Keywords confirmed added
- Severity changed from normal to major
comment:2 Changed 9 years ago by nicholasbs
- Resolution set to fixed
- Status changed from new to closed
r1135 fixes this bug by 1) using el.hasChildNodes() instead of indexing into an array (whose contents might change), and 2) recursing down to ensure the styling is removed from child elements.
While doing this work I noticed that there are several other issues with Stylist, which I'll document in a new ticket.
Note: See
TracTickets for help on using
tickets.
Confirmed FF3