You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please keep and fill in the line that best applies:
This is a crash
This changed between versions ______ and _______
X This is the behavior in every version I tried, and I reviewed the FAQ for entries about: Could not find anything relevant.
I was unable to test this on prior versions because _______
🔎 Search Terms
Highlight
Highlight API
CSS custom highlight api
🕗 Version & Regression Information
Version 4.9.5
This happen in the 'Nightly' version as well.
Please keep and fill in the line that best applies:
This is a crash
This changed between versions ______ and _______
X This is the behavior in every version I tried, and I reviewed the FAQ for entries about: Could not find anything relevant.
I was unable to test this on prior versions because _______
⏯ Playground Link
A link to a TypeScript Playground "Share" link which shows this behavior: http://www.typescriptlang.org/play/?ts=Nightly
💻 Code
🙁 Actual behavior
Cannot find name 'Highlight'.(2304)
🙂 Expected behavior
Should return a newly created Highlight object.
Constructor
Highlight()
Additional information about the issue
There was been a similar issue before — #53003. The issue was closed because the Highlighter API was experimental — #53003 (comment).
But now the Highlighter API is no longer experimental and is supported by many browsers:
https://developer.mozilla.org/en-US/docs/Web/API/CSS_Custom_Highlight_API#browser_compatibility
The text was updated successfully, but these errors were encountered: