Community
Participate
Working Groups
Build Identifier: I20100527-1200 Whenever i copy/paste a comment node ,all of read only region becomes editable. Reproducible: Always Steps to Reproduce: Take this xml <?xml version="1.0" encoding="UTF-8"?> <Test> <!-- --> aaa bbb ccc</Test> Make 'ccc</Test>' read only.Copy and paste <!-- --> above 'ccc</Test>.It will become editable now.If you copy/paste 'aaa' or 'bbb' ,it remains read only. It happens due to 'StructuredDocumentRegionsReplacedEvent' fired by BasicStructuredDocument ,which leads to restructuring of nodes by parser,which inturn makes this region editable.
I think this defect(raised by me) is invalid.What if we add something like <!--long comment spanning several lines --> then, ccc</Test>(our read only area) will be pushed down, hence original ReadOnly region doesn't make sense.