Implement MDN-compatible browser compatibility data structure for JSAR Runtime #108
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements a comprehensive browser compatibility data system following the @mdn/browser-compat-data structure to properly document JSAR Runtime's Web API support. The implementation adds missing JSON files and updates the compatibility dashboard to handle the new data structure.
Changes Made
📁 New Browser Compatibility Data Files
Added 22 new JSON files following MDN's browser-compat-data structure:
Web APIs:
Console.json- Console API methods (log, error, warn, etc.)Event.json- Event interface and propertiesEventTarget.json- Event handling methodsGeolocation.json- Geolocation APINavigator.json- Navigator interface propertiesStorage.json- localStorage/sessionStorage APIsWindow.json- Window object methods and propertiesXMLHttpRequest.json- AJAX request capabilitiesCSS Properties:
color.json,display.json,height.json,position.json,width.jsonHTML Elements:
a.json,button.json,form.json,h1.json,h2.json,h3.json,input.json,style.json,title.json🔧 Data Structure
Each file follows the MDN schema with:
{ "api_name": { "__compat": { "mdn_url": "https://developer.mozilla.org/docs/Web/API/...", "spec_url": "https://...", "support": { "jsar": { "version_added": false // or specific version like "0.6.0" } }, "status": { "experimental": false, "standard_track": true, "deprecated": false } } } }📊 Dashboard Results
The browser compatibility dashboard now shows:
🖼️ Screenshot
The updated dashboard displays all APIs organized by category with:
Testing
✅ Verified the browser compatibility page loads correctly
✅ Confirmed search and filtering work as expected
✅ Validated JSON structure matches MDN browser-compat-data format
✅ Tested that all 131 APIs are properly categorized and displayed
Impact
This implementation provides:
Fixes the missing browser compatibility data structure and ensures developers can easily understand which Web APIs are supported in JSAR Runtime.
Warning
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
registry.npmmirror.comnpm install @mdn/browser-compat-data(dns block)npm install(dns block)If you need me to access, download, or install something from one of these locations, you can either:
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.