8000 Comparing 59d5c24...dd77de0 · jquery/sizzle · GitHub
Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jquery/sizzle
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 59d5c24
Choose a base ref
...
head repository: jquery/sizzle
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: dd77de0
Choose a head ref
  • 2 commits
  • 5 files changed
  • 1 contributor

Commits on Oct 1, 2019

  1. Selector: Use shallow document comparisons to avoid IE/Edge cras… (#459)

    IE/Edge sometimes crash when comparing documents between frames using the strict
    equality operator (`===` & `!==`). Funnily enough, shallow comparisons
    (`==` & `!=`) work without crashing.
    
    Fixes jquery/jquery#4441
    Closes gh-459
    Ref jquery/jquery#4471
    mgol authored Oct 1, 2019
    Configuration menu
    Copy the full SHA
    cd0239b View commit details
    Browse the repository at this point in the history
  2. Selector: Leverage the :scope pseudo-class where possible

    The `:scope` pseudo-class[1] has surprisingly good browser support: Chrome,
    Firefox & Safari have supported if for a long time; only IE & Edge lack support.
    This commit leverages this pseudo-class to get rid of the ID hack in most cases.
    Adding a temporary ID may cause layout thrashing which was reported a few times
    in [the past.
    
    We can't completely eliminate the ID hack in modern browses as sibling selectors
    require us to change context to the parent and then `:scope` stops applying to
    what we'd like. But it'd still improve performance in the vast majority of
    cases.
    
    [1] https://developer.mozilla.org/en-US/docs/Web/CSS/:scope
    
    Fixes jquery/jquery#4453
    Ref jquery/jquery#4454
    Ref jquery/jquery#4332
    Ref gh-405
    mgol committed Oct 1, 2019
    Configuration menu
    Copy the full SHA
    dd77de0 View commit details
    Browse the repository at this point in the history
Loading