W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2012

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

From: <bugzilla@jessica.w3.org>
Date: Thu, 12 Jan 2012 12:47:00 +0000
To: public-webapps@w3.org
Message-ID: <bug-15532-2927@http.www.w3.org/Bugs/Public/>
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:49 GMT