Invalid HTML on card: SecurityError: Failed to execute 'insertRule' on 'CSSStyleSheet': Cannot access StyleSheet to insertRule
See original GitHub issueHei there!
I downloaded the Incremental Reading add-on (v4103). I was trying to follow the instructions under the usage in the README file. I added a link but when I open up the deck I end up with the below error message.
I could reproduce this by
- Copy
https://en.wikipedia.org/wiki/Incremental_reading
- Then paste it in after
Alt
+3
. - Open the deck
I am running Anki:
Version 2.1.36 (53a984ba)
Python 3.8.0 Qt 5.14.2 PyQt 5.14.2
On macOS v10.15.7 (19H2).
Thanks.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6
Top Results From Across the Web
Chrome 64 Uncaught DOMException: Failed to execute ...
Getting this message in console: Uncaught DOMException: Failed to execute 'insertRule' on 'CSSStyleSheet': Cannot access StyleSheet to ...
Read more >CSSStyleSheet.insertRule() - Web APIs | MDN
The CSSStyleSheet.insertRule() method inserts a new CSS rule into the current style sheet.
Read more >Failed to execute 'insertRule' on 'CSSStyleSheet': 2 arguments ...
What went wrong? In console errors: Uncaught TypeError: Failed to execute 'insertRule' on 'CSSStyleSheet': 2 arguments required, but only 1 present.
Read more >SyntaxError Occurs in the Browser - Documentation - Telerik
Uncaught SyntaxError: Failed to execute 'insertRule' on 'CSSStyleSheet': Failed to parse the rule' in Chrome. SyntaxError: An invalid or illegal string was ...
Read more >How to Fix the “Failed to Read the CSSRules Property From ...
If your CSS Stylesheet is from the same domain as the HTML, ... to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think you can fix this issue by commenting out the javascript in the width.js file
https://github.com/luoliyan/incremental-reading/blob/master/ir/web/width.js
I’m trying it now and cannot reproduce.
My system info: