Comments (8)
I'm facing the same issue, why is this closed? Has it been fixed in the meantime?
from html_codesniffer.
Closed by mistake, re-opening
from html_codesniffer.
This is not a HTMLCS issue per se, and more a browser security issue. This is currently more a limitation on us using the GitHub Pages hosting for the bookmarklet, which does not support hosting via HTTPS as far as I know. Even if it did, I don't think you'd get any change in result because it might instead complain about the certificates potentially being different.
In Chrome's case, it should be throwing up a "shield" icon in the right hand side of the address bar saying it is blocked, where you can set it to load the script anyway. However, in my quick testing here it does not seem to be doing that all the time. Personally I think Firefox should be doing the same thing, but it seems to be more lenient on this count.
from html_codesniffer.
I see... maybe it's possible to add a hint in the JavaScript and at least pop up an alert window? Or is this something that can't be catched? Right now I only know why it isn't working when opening up the console.
from html_codesniffer.
Hi, and apologies for the long delay in replying.
I'm not sure whether the issue is Chrome not letting HTMLCS inject itself in, or whether it is running JS code from outside the HTTPS context. If it's the latter, then there is not much that can be done, certainly not something that can be caught. I'll look into it.
from html_codesniffer.
Chrome wont allow injecting http-content in a https-world...
Easy fix is to edit the bookmark and change the http
to //
and it will work for both.
from html_codesniffer.
I just modified the bookmarklet to have https: in the URL and it seems to be working fine now for my https site.
from html_codesniffer.
Pull #84 provided by Jellyfrog (using relative scheme - this is the same way the CDNs for the likes of jQuery) - combined with an update to Github's cert to make HTTPS (unofficially) supported on Github Pages sites - has now resolved this.
from html_codesniffer.
Related Issues (20)
- Why not make this open source HOT 2
- Angular Material autocomplete attribute causes HTML_CodeSniffer to not load errors/warnings HOT 1
- http://squizlabs.github.com/HTML_CodeSniffer/ will not work HOT 2
- Chrome extension language stuck in Japanese HOT 1
- Empty lang attribute detected as not well-formed
- Links to individual codes for WCAG2 online documentation HOT 1
- Installation instruction ambiguities HOT 4
- Release a new version on NPM?
- Only report navigation <link> elements outside of head
- Support the Shadow Dom and Web Components
- Permanent jitter in browser scroll HOT 2
- question to principle4.guideline4_1.4_1_2.h91.inputtext.name HOT 1
- How to run HTML_CodeSniffer inside Java code
- Add HTML_CodeSniffer as an ACT implementation for W3C HOT 1
- Define Errors, Warnings & Notices
- Support WCAG 2.2 HOT 3
- is this project deprecated? HOT 1
- Uncaught TypeError: o is undefined
- False positives for CJK named anchors
- Module not found: Error: Can't resolve 'fs'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from html_codesniffer.