DOM Range instances in KHTML do not have comparison constants START_TO_START, START_TO_END, END_TO_START and END_TO_END as required by the DOM4 Range spec. These constants are supported by KHTML as properties of the Range constructor, however. The situation in DOM Level 2 is slightly confusing: the IDL definition in the main Range spec (http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html#Level-2-Range-Interface) requires the constants to be present as properties of Range instances while the ECMAScript bindings page omits them (http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ecma-script-binding.html#Range-ECMA). However, DOM4 is explicit and all other major browsers implement comparison constants as properties of Range instances, so KHTML should too. References: http://www.w3.org/TR/2012/WD-dom-20120105/#interface-range http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html#Level-2-Range-Interface http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ecma-script-binding.html#Range-ECMA Reproducible: Always Steps to Reproduce: Run the following JavaScript in a web page: "START_TO_START" in document.createRange() Actual Results: Returns false Expected Results: Returns true
Dear Bug Submitter, This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond. Thank you for helping us make KDE software even better for everyone!
Dear Bug Submitter, This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? This bug will be moved back to REPORTED Status for manual review later, which may take a while. If you are able to, please lend us a hand. Thank you for helping us make KDE software even better for everyone!
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version? If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
I thought KHTML was abandoned. Anyway, I just tried it in the latest Konqueror, created a range and it had the constants, so I guess this issue is resolved.