Skip to content

Commit

Permalink
Improve integration with navigation (#225)
Browse files Browse the repository at this point in the history
The fragment directive is now stripped from the URL whenever it is set to a history entry and the directive is kept separately in the entry's `directive state`.

The directive state may be shared between history entries where only the non-directive portion of the fragment changes.

Moving between session history entries will cause the directive state, if it differs from the current entry, to be set into then `uninvoked directives` member on the Document. The "scroll to the fragment" steps will read directives from this member and attempt to perform the text search.

When the fragment search ends, `uninvoked directives` is always cleared.

The changes here are primarily in the "3.3 The Fragment Directive" and "3.4 Text Directives" sections. Most changes in other sections are minor and/or text that was moved out into these two section (and heavily rewritten).

---------

Co-authored-by: Jake Archibald <[email protected]>
  • Loading branch information
bokand and jakearchibald authored Apr 20, 2023
1 parent 9e3efc1 commit cc59249
Show file tree
Hide file tree
Showing 2 changed files with 1,596 additions and 1,038 deletions.
Loading

0 comments on commit cc59249

Please sign in to comment.