'Range.detach' is now a no-op, as per DOM

后端 未结 1 1895
你的背包
你的背包 2021-01-18 14:36

I have been noticing this warning and error message in my console after updating Chrome to 36.0.1985.125.

Warning:

\'Range.detach\' is now a no-op, a         


        
相关标签:
1条回答
  • 2021-01-18 15:13

    I'm still trying to decide what to do about this. See this Rangy issue (migration to GitHub not quite complete, sorry). I think it's unhelpful behaviour on the part of Chrome and would like it removed.

    The offending code in Rangy is in a feature test that determines whether the browser supports multiple ranges within a selection (of the current mainstream browsers, only Firefox does). Since this doesn't seem to be going away I think I'm going to have to suck it up and add a browser sniff, which makes me sad.

    Update

    I added a horrible browser sniff to Rangy and the error no longer appears.

    0 讨论(0)
提交回复
热议问题