Git Product home page Git Product logo

staticrange's People

Contributors

foolip avatar garykac avatar plehegar avatar sideshowbarker avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

staticrange's Issues

Call for Consensus - Publish First Public Working Draft

This is a call for consensus on the proposition

The WebPlatform Working Group will publish a First Public Working Draft of Static Range based on the current spec.

Please respond before the end of Sunday 3 December.

Positive response is preferred (you can leave a "thumbs-up" on this comment"), silence will be taken as assent to the proposal, negative response should be acocmpanied by rationale - e.g. as a reply to htis comment.

Time at TPAC?

Would you like time to update the WebPlat WG on this spec and/or discuss any relevant topics at TPAC? We have space on the WebPlat agenda on Thursday and Friday of TPAC week.

If yes, could you estimate the time you'd like/need (in 30 minute blocks)? Thanks

Static range with disconnected (non-same-tree) endpoints is considered valid

With the changes made in #8 clarifying what https://w3c.github.io/staticrange/#staticrange-position-is-less-than does, I can now evaluate what https://w3c.github.io/staticrange/#staticrange-is-valid is doing. Consider a StaticRange whose endpoints are not in the same DOM tree. "sr’s end position is less than sr’s start position" will test false, because https://dom.spec.whatwg.org/#concept-tree-preceding returns false in this case. So the "is valid" algorithm will return true. This doesn't seem right.

Step 5 of "is valid" doesn't make sense

From @bzbarsky on April 13, 2017 16:10

Step 5 says:

If sr’s collapsed is not equal to the result of calling is collapsed with sr,

But the return value of "collapsed" is defined to be the result of executing "is collapsed". So the two booleans are always the same, by definition...

Copied from original issue: garykac/staticrange#8

Give StaticRange a constructor

From @foolip on April 10, 2017 7:33

It's now immutable, but could still have a constructor:

dictionary StaticRangeInit {
  required Node startContainer;
  required unsigned long startOffset;
  required Node endContainer;
  required unsigned long endOffset;
};

[Constructor(StaticRangeInit initDict)]
interface StaticRange { ... };

If there's no use for invalid ranges, then it could throw if http://garykac.github.io/staticrange/index.html#to-is-valid does not hold.

Copied from original issue: garykac/staticrange#5

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.