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: javascript-tutorial/es.javascript.info
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: javascript-tutorial/es.javascript.info
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: sync-725653fd
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 3 commits
  • 1 file changed
  • 3 contributors

Commits on Jul 19, 2026

  1. Fix Prism API name: highlightElem -> highlightElement

    The article's prose and inline examples use Prism.highlightElem, which
    does not exist in the Prism.js API, while the demo code later in the same
    article correctly uses Prism.highlightElement. Unify on the real API name.
    
    Also pass only the element in forEach callbacks: forEach supplies
    (element, index, array), which would collide with the
    highlightElement(element, async, callback) signature if the method
    reference is passed directly.
    
    Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_01MizgRqMWEBSTYhJ9YhSd2g
    Violet-Bora-Lee and claude committed Jul 19, 2026
    Configuration menu
    Copy the full SHA
    f7922ed View commit details
    Browse the repository at this point in the history
  2. Merge pull request #3980 from Violet-Bora-Lee/fix-prism-highlight-ele…

    …ment
    
    Fix Prism API name: highlightElem -> highlightElement in MutationObserver article
    iliakan authored Jul 19, 2026
    Configuration menu
    Copy the full SHA
    725653f View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2026

  1. merging all conflicts

    iliakan committed Jul 20, 2026
    Configuration menu
    Copy the full SHA
    23603cc View commit details
    Browse the repository at this point in the history
Loading