-
Notifications
You must be signed in to change notification settings - Fork 50
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
Selector element with "+" crash #37
Comments
Hi Alex, I see this working if I put on final app example project but, if I put on library css I get this: /Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/royale/JewelExample/Jewel-0.9.3-SNAPSHOT-js.swc:defaults.css(96): col: 2 Error: Type selector without namespace prefix requires a default namespace to be defined. input /Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/royale/JewelExample/Jewel-0.9.3-SNAPSHOT-js.swc:defaults.css(96): col: 2 Error: Type selector without namespace prefix requires a default namespace to be defined. input /Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/royale/JewelExample/Jewel-0.9.3-SNAPSHOT-js.swc:defaults.css(96): col: 2 Error: Type selector without namespace prefix requires a default namespace to be defined. input (I think something similar could be happening with #33) |
HTML Elements like "input" need to be in the "http://www.w3.org/1999/xhtml" namespace |
I have this two in the css:
|
Maybe I need to add some prefix?
|
The code that emits this error should be CSSSemanticAnalyzer in the resolveSelectors method where it creates a CSSUnknownDefaultNamespaceProblem. Add some debugging output around that code and see why. It looks like it thinks that the CSS file doesn't have a @namespace without a prefix that specifies the default namespace. Maybe dump the SWC and see what defaults.css is actually in the SWC. |
Does placing the default namespace first make a difference? |
If I have this a element + .classname rule like this
The final App crashes in the following way:
/Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/royale/JewelExample/JewelTheme-0.9.3-SNAPSHOT-js.swc:defaults.css(1): col: 1 Error: CSSTree.g: node from line 0:0 required (...)+ loop did not match anything at input 'dialog'
/Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/royale/JewelExample/JewelTheme-0.9.3-SNAPSHOT-js.swc:defaults.css(1): col: 1 Error: CSSTree.g: node from line 0:0 required (...)+ loop did not match anything at input 'dialog +'
/Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/royale/JewelExample/JewelTheme-0.9.3-SNAPSHOT-js.swc:defaults.css(57): col: 8 Error: JewelTheme-0.9.3-SNAPSHOT-js.swc:defaults.css line 56:7 no viable alternative at input '+'
The text was updated successfully, but these errors were encountered: