GithubHelp home page GithubHelp logo

Comments (18)

phax avatar phax commented on May 19, 2024 1

Locally things are working. Please check with the latest SNAPSHOT

from ph-css.

phax avatar phax commented on May 19, 2024

I will look at it after my vacation :)

from ph-css.

givankin avatar givankin commented on May 19, 2024

Thanks! Have a great vacation : )

from ph-css.

phax avatar phax commented on May 19, 2024

The problem is the invalid selector. As you may know, there can be many selectors (e.g. .a,.b,.c) and I need to know how browsers handle this. Do they skip only the selector parts they cannot handle or the whole rule.
Basically the same problem as in subissue 3 of #17

from ph-css.

givankin avatar givankin commented on May 19, 2024

@phax, according to Specs, the entire rule should be dropped. See https://www.w3.org/TR/css3-selectors/#Conformance:

In the case of CSS, the entire rule in which the selector is used is dropped.

and https://www.w3.org/TR/CSS2/syndata.html#rule-sets:

...the whole statement should be ignored if there is an error anywhere in the selector...

from ph-css.

givankin avatar givankin commented on May 19, 2024

I've also created a simple test and all browsers seem to comply with the specs: https://jsfiddle.net/aqdtzcac/1/ (tried Chrome, FF, IE 9/10/11, Safari on iOS and some androids as well).

from ph-css.

phax avatar phax commented on May 19, 2024

Thanks for the clarification. I'm working on a solution that works for you when you enable "browser compliant mode".

from ph-css.

givankin avatar givankin commented on May 19, 2024

Thanks Philip, good to know =)
Will it work for invalid selectors only or more generally for any problem in rule parsing?

from ph-css.

phax avatar phax commented on May 19, 2024

For invalid selectors only. As the parser is grammar based I need to differentiate between recoverable and unrecoverable errors. Creating a completely lax parser is currently out of scope :)

from ph-css.

givankin avatar givankin commented on May 19, 2024

@phax just so I know, do you have an estimate for the fix?

from ph-css.

phax avatar phax commented on May 19, 2024

within this week - but after 6 weeks of vacation there is plenty to do :)

from ph-css.

phax avatar phax commented on May 19, 2024

I have it locally working but been struggeling with some tests....

from ph-css.

givankin avatar givankin commented on May 19, 2024

Hi Philip, it is working just fine! The only question is - if it is going to be released in 5.0 stream, it will be incompatible with Java 1.7, right? Any chance to include this into 4.0 stream? We can't drop support for Java 7 unfortunately now...

from ph-css.

givankin avatar givankin commented on May 19, 2024

If necessary, we can contribute - under your guidance. We highly value your project and depend on it heavily, so we would be glad to do that.

from ph-css.

phax avatar phax commented on May 19, 2024

Well I already created a 4.1 backport and I think I can do the same for this fix.
Let me check tonight, if a 4.1.1 can be done with reasonable effort.
A donation link can be found at http://peppol.helger.com/public :)

from ph-css.

phax avatar phax commented on May 19, 2024

Release 4.1.1 is on its way to Maven central

from ph-css.

pmouawad avatar pmouawad commented on May 19, 2024

@phax , it's not a big thing, but just to let you know I added a mention of you and your project in our changes.html#thanks section
: apache/jmeter@d607b3a

Apache JMeter 3.0 will be using your library.

from ph-css.

phax avatar phax commented on May 19, 2024

Thanks for the info and good luck for JMeter!! It's a great tool I'm also using!

from ph-css.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.