-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mixed content http+xml (when POST) not detected correctly #992
Comments
@dominch, can you please provide full listing for second example? Stripped one works good for me with master: |
Same here. Can't reproduce with the latest master code. |
Hello, I just checked and indeed there is no problem with smaller xml, Here is smallest I could get to see the problem:
I needed to obfuscate a bit real data, but You should clearly see the problem. This may be caused by |
Could you check again? I just pushed a related fix in master that might've fixed this too. |
I would love to do so, but I can't build this lib :(
Do You have any idea what is missing? |
Likely it's because the build tool now requires node 4.x (sorry, we've been a sloppy with documenting this transition). Incidentally, there's a snapshot browser build from yesterday https://highlightjs.org/static/tmp/highlight.pack.js that you can use to test it. |
I still can't build it on this server, but I managed to check out version from link.
older version was:
Classes are changed since version I used. Maybe hljs-attribute is same as hljs-attr, but many other were changes. First line should be rather -pi than -meta. |
Version 9.0 will contains totally rethinked classes list synchronized across all languages, see #348. |
@dominch we had this problem before, that all the different styles didn't bother to work right with every language in all different edge cases. We redefined the whole class system recently, so now everything is a) consistent with each other and b) fixable :-) This is why you now see all HTTP verbs to be of one color. The choice of specific class names is to ensure this consistency, and to the end user it shouldn't matter if it's "hljs-pi", or "hljs-meta", or whatever. As of now, XML looks pretty okay to me with Monokai Sublime (barring any subjective feelings about the theme itself). Do you think something should look different? |
This is big change and I didn't expected that. I checked several themes and every theme marks first xml line just like any other string inside body. I think this is not correct, I liked when it was different. Now at tests I wasn't sure if it correctly detected xml. In far theme almost everything is now in one color. I may have wrong css files (I used old ones), are those changed too? I think original error is solved in this version. |
The change was in the making for quite some time (since May, in fact), it only landed a few weeks ago. I'm not sure what do you mean by "first XML line", but if it's the processing instruction in (Closing the issue as it's solved.) |
I tried updating new css, but no luck, still first xml line is not colored. I guess there is still something wrong with my build. I think original problem is solved and xml seems to be consistent. Thank for Your support. I'll give it a try at next release and hope to get that fully functional :) Thanks for Your support 👍 |
Hello,
There is problem with mixed content and http headers, they work for GET, but with POST wrong class is detected, examples:
Working one:
Wrong one:
Those are, both http+xml. First seems to detect correctly.
BTW: what, how can I force two classes in
tag?
The text was updated successfully, but these errors were encountered: