[Bug 15532] New: Collapsing or extending to a ProcessingInstruction should be OK

https://www.w3.org/Bugs/Public/show_bug.cgi?id=15532

           Summary: Collapsing or extending to a ProcessingInstruction
                    should be OK
           Product: WebAppsWG
           Version: unspecified
          Platform: All
               URL: http://dvcs.w3.org/hg/editing/raw-file/tip/selecttest/
                    collapse.html
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTML Editing APIs
        AssignedTo: ayg@aryeh.name
        ReportedBy: stighal@opera.com
         QAContact: sideshowbarker+html-editing-api@gmail.com
                CC: mike@w3.org, public-webapps@w3.org


Created attachment 1065
  --> https://www.w3.org/Bugs/Public/attachment.cgi?id=1065
Test patch, PI

In the selecttest/collapse.html and selecttest/extend.html tests there are a
few tests that expect the browser to throw an INVALID_NODE_TYPE_ERR when trying
to collapse or extend to a PI.
According to the Selection [1] and Range [2] specs, it is not illegal to do
that, so I think the tests are wrong.

Patch attached.

[1]
http://dvcs.w3.org/hg/editing/raw-file/tip/editing.html#dom-selection-collapse
http://dvcs.w3.org/hg/editing/raw-file/tip/editing.html#dom-selection-extend

[2]
http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-range-bp-set

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Received on Thursday, 12 January 2012 12:47:07 UTC